diff options
author | DonBatman <serfdon@gmail.com> | 2015-10-22 09:25:40 -0700 |
---|---|---|
committer | DonBatman <serfdon@gmail.com> | 2015-10-22 09:25:40 -0700 |
commit | f8e75176876652333b376398d982ad06ac26b66f (patch) | |
tree | 5dc85a8e0640c685507e7ff761a5132029f1c2d9 /ghost.lua | |
parent | 834797777bbd6c2510742885a192987fdbfb3d79 (diff) |
Added score to table. Changed craft items to nodes. Changed sounds. Changed blocks to immortal
Diffstat (limited to 'ghost.lua')
-rw-r--r-- | ghost.lua | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -28,7 +28,8 @@ for i in ipairs(ghosts) do }, groups = {immortal = 1}, velocity = {x=math.random(-1,1), y=0, z=math.random(-1,1)}, - collisionbox = {-0.25, -1.0, -0.25, 0.25, 0.48, 0.25}, + collisionbox = {-0.01, -0.5, -0.01, 0.01, -0.49, 0.01}, + --collisionbox = {-0.25, -1.0, -0.25, 0.25, 0.48, 0.25}, is_visible = true, automatic_rotate = true, automatic_face_movement_dir = -90, -- set yaw direction in degrees, false to disable @@ -96,6 +97,7 @@ for i in ipairs(ghosts) do minetest.chat_send_player(gamestate.player_name,"Game Over") player:moveto(vector.add(gamestate.pos,{x=0.5,y=0.5,z=-1.5})) mypacman.game_end(self.gameid) + minetest.sound_play("mypacman_death", {pos = boardcenter,max_hear_distance = 20, object=player, loop=false}) elseif gamestate.lives == 1 then minetest.chat_send_player(gamestate.player_name,"This is your last life") |