aboutsummaryrefslogtreecommitdiff
path: root/pickups.lua
diff options
context:
space:
mode:
authorChris Bradley <1029chris@gmail.com>2022-02-19 13:40:34 -0800
committerChris Bradley <1029chris@gmail.com>2022-02-19 13:40:34 -0800
commit4f3bfa57d582d1f8a20da0c34cc7c94563570008 (patch)
tree40b909149599b732ab5501c867b3bb6993e7d543 /pickups.lua
parent86fdddc12397f45af95cd85729b12f88edd33dc5 (diff)
added back local variables, some more tokens gained
target player now changes every second
Diffstat (limited to 'pickups.lua')
-rw-r--r--pickups.lua5
1 files changed, 2 insertions, 3 deletions
diff --git a/pickups.lua b/pickups.lua
index 41fa66c..cd0de85 100644
--- a/pickups.lua
+++ b/pickups.lua
@@ -15,8 +15,7 @@
function addpickup(x, y, type)
local pickup = {}
- x = x
- y = y
+ --x,y = x,y
type = type or rnd({"fastshoot", "3shoot"})
function pickup.draw(pickup)
@@ -38,7 +37,7 @@ function addpickup(x, y, type)
end
function pickup:affect(player)
- pickupcolor = 8 --health
+ local pickupcolor = 8 --health
if type == "fastshoot" then
player.shootspeed = 0.17
pickupcolor = 12