diff options
Diffstat (limited to 'xml/!town2.xml')
-rw-r--r-- | xml/!town2.xml | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/xml/!town2.xml b/xml/!town2.xml index fcdf507..cc1953f 100644 --- a/xml/!town2.xml +++ b/xml/!town2.xml @@ -10,7 +10,23 @@ <layer path="bg/dirt.png"/> <layer path="bg/grass.png"/> </style> - <generation width="1000"/> + <generation> + x = 0 + + ground = function() + if (x == 600) then + height = -1 + else + height = 60 + math.random(0,6) / 2 + end + + x = x + 1 + end + + grass = function() + height = math.random(2, 5) + end + </generation> <time>6000</time> <link left="!town.xml"/> </World> |