From cb94946e1e596b42b21d7e73213f59feb8e76f92 Mon Sep 17 00:00:00 2001 From: DonBatman Date: Sat, 24 Oct 2015 21:34:06 -0700 Subject: alligned score board added pacmini board --- pacmine/gamestate.lua | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'pacmine/gamestate.lua') 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 -- cgit v1.2.3