aboutsummaryrefslogtreecommitdiff
path: root/objects.lua
diff options
context:
space:
mode:
Diffstat (limited to 'objects.lua')
-rw-r--r--objects.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/objects.lua b/objects.lua
index 2fc11d3..ccfd052 100644
--- a/objects.lua
+++ b/objects.lua
@@ -27,6 +27,7 @@ function updateobjs()
foreach(players, function(obj) obj:update() end)
foreach(enemies, function(obj) obj:update() end)
foreach(obj, function(obj) obj:update() end)
+ despawnallbullets = false
end
function drawobjs()
@@ -34,4 +35,8 @@ function drawobjs()
foreach(enemies, function(obj) obj:draw() end)
clip() --for the final boss
foreach(players, function(obj) obj:draw() end)
+end
+
+function lerp(start, destination, amount)
+ return start + amount * (destination - start);
end \ No newline at end of file