sdlhm520 发表于 2004-4-17 12:51:07

[推荐]HSP游戏编程大师ver2.61β版

最新更新日期:2004-04-04
因为是日语不知道更新了什么要找别人翻译了!~~


有需要的朋友请到下面了解:
http://www.onionsoft.net/hsp/hsp2beta.html
   
   
和NScripter的使用方法差不多!~~
在编辑窗口直接输入脚本!~再运行
我给大家几个简单的例子吧!~~

先运行"hsed2.exe"这个文件!~然后在黑色的编辑框内粘贴下面的脚本!~

; 第一个例子
cls 4
color 215,115,15
boxf 0,90,640,100
boxf 0,0,640,40
font "simsun",30,17
pos 20,8

color 250,250,255
mes "HSP ver2.61β 字体测试"

font "simsun",25,17
color 255,255,255
pos 40,60
mes "没有平滑处理的"
pos 360,60
mes "平滑处理的"

color 255,255,255
text 60
pos 20,100:opt=0
gosub *mesput
pos 340,100:opt=16
gosub *mesput

goto *exit

*mesput
font "Arial",60,0+opt
mes "Normal"
font "Arial",60,1+opt
mes "Bold"
font "Arial",60,2+opt
mes "Italic "
font "Arial",60,4+opt
mes "Underline"
font "Arial",60,8+opt
mes "StrikeOut"

return

*exit
dialog "是否退出游戏?",2,"退出提示"
if stat=7 : stop
   
   
; 第2个例子
randomize
screen 0,320,240,0
cls 4
buffer 3,320,240,0
cls 4
font "Arial",40,1
buffer 4,,,0
cls 0
*main
gsel 3
gmode 0,320,240
pos 5,5:gzoom 310,230,0
gmode 6,320,240,2
pos 0,0:gcopy 4,0,0
rnd x,320:x-=20:rnd y,240:y-=20
rnd r,256:rnd g,256:rnd b,256
color r,g,b:pos x,y:mes "@"

gsel 0
gmode 3,320,240,64
pos 0,0:gcopy 3,0,0
await 20
goto *main

stop

   
; 第3个例子
title "grect"
screen 0,640,480,0
cls 2:gfini
font "Arial",14
m="HSP2.61β简单实例 "

x=320:y=320:px=4:py=4
repeat
redraw 0
hsvcolor cnt/2,255,255
gmode 0,200,200
grect x,y,cnt*16
gfdec 4,4,4

pos 502,422:color 0,0,0:mes m
pos 500,420:color 255,255,255:mes m

await 12
redraw 1

x+=px:if (x=100)|(x=540) : px=-px
y+=py:if (y=100)|(y=380) : py=-py
loop
stop

   
; 第4个例子
title "grotate"
buffer 3,256,256,0
cls 4
repeat 16
hsvcolor cnt*16,192,192
x=cnt*16
boxf x,0,x+7,256
boxf 0,x,256,x+7
loop

screen 0,640,480,0
cls 2
font "Arial",14
m="HSP2.61 HspExt\nSample 2004"

size=0:psize=2
repeat
redraw 0
pos 320,240
color 255,255,255
gmode 3,128,128,8
grotate 3,0,0,cnt*16,400+size,400+size
size+=psize
if (size=0)|(size=400) : psize=-psize
pos 502,422:color 0,0,0:mes m
pos 500,420:color 255,255,255:mes m
redraw 1
await 12
loop

stop

yoxola 发表于 2006-1-25 04:12:32

http://www.hsp.tv/

HSP3以後的官方首頁,是這裡了,
雖然HSP3是日文軟件...不過亂碼的影響較少,部分支持Unicode了
页: [1]
查看完整版本: [推荐]HSP游戏编程大师ver2.61β版