diff options
author | DonBatman <serfdon@gmail.com> | 2015-10-26 16:33:48 -0700 |
---|---|---|
committer | DonBatman <serfdon@gmail.com> | 2015-10-26 16:33:48 -0700 |
commit | ff0c1eef4b5e4e06b02b164509590c18e7b450b9 (patch) | |
tree | ef0852788832607dab0540a62ae2255b7e4dcf33 /mario/init.lua | |
parent | 551b77b9dc7da84299c39f333314eaa36e699981 (diff) |
added sound files to mario
fixed portal issue
updated schematic
started on turtles and gamestate
Diffstat (limited to 'mario/init.lua')
-rw-r--r-- | mario/init.lua | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/mario/init.lua b/mario/init.lua index 51b1b64..2538dc1 100644 --- a/mario/init.lua +++ b/mario/init.lua @@ -1,8 +1,11 @@ +mario = {} dofile(minetest.get_modpath("mario").."/pipes.lua") dofile(minetest.get_modpath("mario").."/blocks.lua") dofile(minetest.get_modpath("mario").."/portal.lua") dofile(minetest.get_modpath("mario").."/turtle.lua") +dofile(minetest.get_modpath("mario").."/gamestate.lua") + minetest.register_node("mario:placer",{ description = "Reset", @@ -23,8 +26,9 @@ 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) - minetest.add_entity({x=pos.x+3,y=pos.y+12,z=pos.z+1}, "mario:1") - minetest.add_entity({x=pos.x+30,y=pos.y+12,z=pos.z+1}, "mario:1") + 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") + minetest.sound_play("mario-game-start", {pos = pos,max_hear_distance = 40,gain = 10.0,}) end, }) minetest.register_node("mario:placer2",{ |