aboutsummaryrefslogtreecommitdiffstats
path: root/xml/wavy.xml
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2017-10-21 19:56:48 -0400
committerClyne Sullivan <tullivan99@gmail.com>2017-10-21 19:56:48 -0400
commitb64aa31b4dc0c5e050c4978bae7bd43a040a368b (patch)
tree4c16f9d1eb3bac11f74508c241e76cfddabc7a19 /xml/wavy.xml
parent7644b740e87053838f3c7a80e88ad192fcf1a5e2 (diff)
lua scriptable world gen
Diffstat (limited to 'xml/wavy.xml')
-rw-r--r--xml/wavy.xml28
1 files changed, 28 insertions, 0 deletions
diff --git a/xml/wavy.xml b/xml/wavy.xml
new file mode 100644
index 0000000..3f0c187
--- /dev/null
+++ b/xml/wavy.xml
@@ -0,0 +1,28 @@
+<?xml version="1.0"?>
+
+<World>
+ <style bgm="assets/music/town.ogg" folder="assets/style/winter/">
+ <layer path="bg/bg.png"/>
+ <layer path="bg/bgFarMountain.png"/>
+ <layer path="bg/dirt.png"/>
+ <layer path="bg/grass.png"/>
+ </style>
+ <generation>
+ x = 0
+ ground = function()
+ if (x == 600) then
+ height = -1
+ else
+ height = math.sin(x * 3.14 / 90) * 50 + 60
+ end
+ x = x + 1
+ end
+
+ grass = function()
+ height = math.random(2, 4)
+ end
+ </generation>
+ <weather>Rainy</weather>
+ <time>10000</time>
+</World>
+