summaryrefslogtreecommitdiff
path: root/pacmine/gamestate.lua
diff options
context:
space:
mode:
authorDonBatman <serfdon@gmail.com>2015-10-24 21:34:06 -0700
committerDonBatman <serfdon@gmail.com>2015-10-24 21:34:06 -0700
commitcb94946e1e596b42b21d7e73213f59feb8e76f92 (patch)
tree3b850035aab669fb1dfda692f5c5f711c72efacb /pacmine/gamestate.lua
parent4a9d35295a47539ebf9a525f14702f8f73f0776d (diff)
alligned score board
added pacmini board
Diffstat (limited to 'pacmine/gamestate.lua')
-rwxr-xr-xpacmine/gamestate.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/pacmine/gamestate.lua b/pacmine/gamestate.lua
index 7bbc0af..6d507b2 100755
--- a/pacmine/gamestate.lua
+++ b/pacmine/gamestate.lua
@@ -145,15 +145,20 @@ function pacmine.add_fruit(id)
-- Different fruit will be used depending on the level
if gamestate.level == 1 then
node.name = "pacmine:cherrys"
+ node.param2 = 3
elseif gamestate.level == 2 then
node.name = "pacmine:strawberry"
+ node.param2 = 3
elseif gamestate.level < 5 then
node.name = "pacmine:orange"
+ node.param2 = 3
else
node.name = "pacmine:apple"
+ node.param2 = 3
end
local pos = vector.add(gamestate.start,{x=0,y=-1,z=0})
minetest.set_node(pos, node)
+ print(node.param2)
-- Set the timer for the fruit to disappear
minetest.get_node_timer(pos):start(math.random(20, 30))
end