diff options
Diffstat (limited to 'mario/init.lua')
-rw-r--r-- | mario/init.lua | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/mario/init.lua b/mario/init.lua index 2538dc1..c435bf7 100644 --- a/mario/init.lua +++ b/mario/init.lua @@ -26,8 +26,13 @@ minetest.register_node("mario:placer",{ player:setpos({x=pos.x+16,y=pos.y+0.1,z=pos.z+1}) print(name) player:set_physics_override(1,1,0.3,true,false) + + -- Left Turtle minetest.add_entity({x=pos.x+3,y=pos.y+12,z=pos.z+1}, "mario:turtle1") - minetest.add_entity({x=pos.x+30,y=pos.y+12,z=pos.z+1}, "mario:turtle1") + -- Right Turtle + local turtler = minetest.add_entity({x=pos.x+30,y=pos.y+12,z=pos.z+1}, "mario:turtle1"):get_luaentity() + turtler.direction = {x=-1,y=0,z=0} + minetest.sound_play("mario-game-start", {pos = pos,max_hear_distance = 40,gain = 10.0,}) end, }) |