diff options
| author | Chris Bradley <1029chris@gmail.com> | 2022-02-18 19:07:27 -0800 |
|---|---|---|
| committer | Chris Bradley <1029chris@gmail.com> | 2022-02-18 19:07:27 -0800 |
| commit | 0f74449ed091ed8a93bfbe75ede12f86e869bc62 (patch) | |
| tree | 98aad24d2ec8321d0a66ea032f4f1ee99e4c1c65 /objects.lua | |
| parent | 4399396b397ce36c2c35eae5eb870627a36cf555 (diff) | |
More final boss stuff, token hunting
Diffstat (limited to 'objects.lua')
| -rw-r--r-- | objects.lua | 5 |
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 |
