hsf<主角-Create>
globalvar gjl;
gjl = 10;
hsf<主角-Shop>
var tox,toy;
tox=0;toy=0;
if keyboard_check(ord("A")) tox-=1
if keyboard_check(ord("D")) tox+=1
if keyboard_check(ord("W")) toy-=1
if keyboard_check(ord("S")) toy+=1
x+=tox
y+=toy
gw<敌人-Create>
globalvar aaa;
aaa = true;
fyl = 2;
hp = 100000;
gw<敌人-Step>
globalvar kx;
kx = gjl-fyl;
{
if(place_meeting(x,y,hsf)
if(aaa)
hp-=kx;
aaa=false;
}
else
aaa=true;