#module
#deffunc quake int, val, int, int, int, int, int
mref id, 0 : mref area, 49 : mref dir, 2 : mref rep, 3 : mref size, 4 : mref sp, 5
i = 0, -size, 0, size
gcopy id, area.0, area.1, area.2, area.3
repeat rep * 4 + 1
redraw 0
count = cnt \ 4
gcopy id, (dir = 0) * i.count + area.0, (dir = 1) * i.count + area.1, area.2, area.3
redraw 1
wait 1
loop
return
#global
buffer 2
picload "sample/hspdx/hspdx.bmp"
area = 0, 0, winx, winy
gsel 0
quake 2, area, 0, 20, 10, 3 // 強さ10速度3で20回横揺れ
wait 100
quake 2, area, 1, 30, 5, 1 // 強さ5速度1で30回縦揺れ
stop
|