diff options
Diffstat (limited to 'xml/entities.xml')
-rw-r--r-- | xml/entities.xml | 35 |
1 files changed, 32 insertions, 3 deletions
diff --git a/xml/entities.xml b/xml/entities.xml index edee471..fda45b4 100644 --- a/xml/entities.xml +++ b/xml/entities.xml @@ -57,7 +57,6 @@ if (countdown == 0) then countdown = math.random(4000, 6000) velx = math.random(-1, 1) * 0.004 - vely = .1 end countdown = countdown - 1 end @@ -79,7 +78,6 @@ <Name value="SKIRL" /> <Wander> countdown = 0 - velx = 0 update = function() if (countdown == 0) then @@ -87,7 +85,6 @@ velx = math.random(-1, 1) * 0.005 end countdown = countdown - 1 - return velx end </Wander> <!--<Aggro arena="arena.xml" /> @@ -97,6 +94,38 @@ </Drop> </skirl> +<birb> + <Position value="000.0,300.0" /> + <Visible value="0.2" /> + <Sprite> + <frame> + <src limb="0" offset="0,0" size="12,12" drawOffset="0,0">assets/robin.png</src> + </frame> + </Sprite> + <Direction /> + <Solid /> + <Physics /> + <Name value="birb" /> + <Wander> + countdown = 0 + + update = function() + if (countdown == 0) then + countdown = math.random(3000, 5000) + if (velx >= 0) then + velx = -0.01 + else + velx = 0.01 + end + end + if (vely <= -0.05) then + vely = 0.05 + end + countdown = countdown - 1 + end + </Wander> +</birb> + <structure> <Position value="0.0,100.0" /> <Visible value="0.25" /> |