黒いところに入るとはじめの場所に戻るという、
いらいら棒みたいなゲームを作ろうと思ったのですが、
うまく動きません。
#uselib "user32"(ESCキーで終了できます)
#func ClipCursor "ClipCursor" int sute=2 onexit *owari *start cls if sute=2 : mox=ginfo_wx2-530 : moy=ginfo_wy2-480 mouse mox,moy *mainloop gsel 0,2 limit_=ginfo_wx1+2,ginfo_wy1-2,ginfo_wx2+2,ginfo_wy2-2 ClipCursor varptr(limit_) redraw 0 color 0,0,0 boxf if sute=2 : color 255,255,255 : boxf 100,0,200,100 : boxf 150,100,250,200 : boxf 100,200,350,230 pget mousex,mousex if ginfo_r=0 : if ginfo_g=0 : if ginfo_b=0 : mouse mox,moy stick key if key&128 : end await 16 redraw 1 goto *mainloop *owari ClipCursor 0 end
どうしてうまく動かないのかがわからないので教えてください。