向きテスト

buffer 1,32,32
picload "tmp_walk.png"
gsel 0
pos 0,64
button "上",*up
button "右",*right
button "左",*left
button "下",*down
pos 0,0
color 0,255,0
boxf 0,0,64,64
stop
*down
pos 0,0
repeat
redraw 0
gsel 0
color 0,255,0
boxf 0,0,64,64
pos 0,0
gmode 2
gcopy 1,0,0,64,64
redraw 1
wait 100
redraw 0
gsel 0
color 0,255,0
boxf 0,0,64,64
pos 0,0
gmode 2
gcopy 1,0,64,64,64
redraw 1
wait 100
loop
*up
pos 0,0
repeat
redraw 0
gsel 0
color 0,255,0
boxf 0,0,64,64
pos 0,0
gmode 2
gcopy 1,64,0,64,64
redraw 1
wait 100
redraw 0
gsel 0
color 0,255,0
boxf 0,0,64,64
pos 0,0
gmode 2
gcopy 1,64,64,64,64
redraw 1
wait 100
loop
*right
pos 0,0
repeat
redraw 0
gsel 0
color 0,255,0
boxf 0,0,64,64
pos 0,0
gmode 2
gcopy 1,128,0,64,64
redraw 1
wait 100
redraw 0
gsel 0
color 0,255,0
boxf 0,0,64,64
pos 0,0
gmode 2
gcopy 1,128,64,64,64
redraw 1
wait 100
loop
*left
pos 0,0
repeat
redraw 0
gsel 0
color 0,255,0
boxf 0,0,64,64
pos 0,0
gmode 2
gcopy 1,192,0,64,64
redraw 1
wait 100
redraw 0
gsel 0
color 0,255,0
boxf 0,0,64,64
pos 0,0
gmode 2
gcopy 1,192,64,64,64
redraw 1
wait 100
loop

超手抜き素材添付w

tmp_walk.png

添付ファイル: filetmp_walk.png 150件 [詳細]