From d7bae41fab5570bdac547a46463974adb4723f96 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Mon, 25 Feb 2019 18:47:55 -0500 Subject: mem leak patches; world ground from image --- xml/!town.xml | 18 +----------------- xml/bobshouse.xml | 18 +----------------- 2 files changed, 2 insertions(+), 34 deletions(-) (limited to 'xml') diff --git a/xml/!town.xml b/xml/!town.xml index b2d96a5..1b1d527 100644 --- a/xml/!town.xml +++ b/xml/!town.xml @@ -12,22 +12,7 @@ - - x = 0 - - ground = function() - if (x == 320) then - height = -1 - else - height = 1 / math.pow(2, (x - 50) / 2) + 60 - end - x = x + 1 - end - - grass = function() - height = math.random(2, 7) - end - + assets/testground.png Sunny -300 @@ -37,7 +22,6 @@ - diff --git a/xml/bobshouse.xml b/xml/bobshouse.xml index 9160ef0..384af4f 100644 --- a/xml/bobshouse.xml +++ b/xml/bobshouse.xml @@ -13,23 +13,7 @@ - - x = 0 - - ground = function() - if (x == 320) then - height = -1 - else - height = 60 - end - - x = x + 1 - end - - grass = function() - height = 2 - end - + testground.png -- cgit v1.2.3