diff options
Diffstat (limited to 'xml/fight.xml')
-rw-r--r-- | xml/fight.xml | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/xml/fight.xml b/xml/fight.xml new file mode 100644 index 0000000..aaf30cd --- /dev/null +++ b/xml/fight.xml @@ -0,0 +1,37 @@ +<include file="entities.xml" /> +<World> + <style bgm="assets/music/fight.ogg" folder="assets/style/classic/"> + <layer path="bg/bg.png"/> + <layer path="bg/bgFarMountain.png"/> + <layer path="bg/forestTileFar.png"/> + <layer path="bg/forestTileBack.png"/> + <layer path="bg/forestTileMid.png"/> + <layer path="bg/forestTileFront.png"/> + <layer path="bg/dirt.png"/> + <layer path="bg/grass.png"/> + </style> + <generation> + x = 0 + + ground = function() + if (x == 240) then + height = -1 + else + height = 1 / math.cos((x / 1.19 - 100) * 3.14 / 180) + if (height < 0 or height > 800) then + height = 800 + else + height = height + 60 + end + end + + x = x + 1 + end + + grass = function() + height = math.random(2, 5) + end + </generation> + <time>6000</time> + <skirl /> +</World> |