From d2788c63bd7fae301d995a3eaef4c36fda8d0864 Mon Sep 17 00:00:00 2001 From: DonBatman Date: Sat, 24 Oct 2015 08:42:19 -0700 Subject: fixed portals made new schematic --- pacmine/aliases.lua | 2 +- pacmine/gamestate.lua | 4 +- pacmine/init.lua | 2 +- pacmine/models/pacmine_strawberry.obj | 196 ++++++++++++++++++++++++++++++++++ pacmine/schems/pacmine.mts | Bin 0 -> 1144 bytes pacmine/textures/pacmine_portal.png | Bin 144 -> 144 bytes 6 files changed, 200 insertions(+), 4 deletions(-) create mode 100644 pacmine/models/pacmine_strawberry.obj create mode 100644 pacmine/schems/pacmine.mts (limited to 'pacmine') diff --git a/pacmine/aliases.lua b/pacmine/aliases.lua index 236901c..dfdd4aa 100755 --- a/pacmine/aliases.lua +++ b/pacmine/aliases.lua @@ -3,7 +3,7 @@ local nodes = { "wall", "floor", "wallc", "walle", "walk_wall","glass","glassw", "cherrys","apple","orange","strawberry", - "pellet_1","pellet_2","block2", + "pellet_1","pellet_2","block2","portalr","portall" } for _,itm in pairs(nodes) do diff --git a/pacmine/gamestate.lua b/pacmine/gamestate.lua index 6c27d04..207435a 100755 --- a/pacmine/gamestate.lua +++ b/pacmine/gamestate.lua @@ -39,7 +39,7 @@ function pacmine.game_start(pos, player) minetest.log("action","New pacmine game started at " .. id .. " by " .. gamestate.player_name) -- place schematic - local schem = minetest.get_modpath("pacmine").."/schems/pacmine_3.mts" + local schem = minetest.get_modpath("pacmine").."/schems/pacmine.mts" minetest.place_schematic({x=pos.x,y=pos.y-1,z=pos.z-2},schem,0, "air", true) -- Set start positions @@ -138,7 +138,7 @@ function pacmine.on_player_got_pellet(player) minetest.after(3.0, function() minetest.chat_send_player(name, "Starting Level "..gamestate.level) -- place schematic - local schem = minetest.get_modpath("pacmine").."/schems/pacmine_3.mts" + local schem = minetest.get_modpath("pacmine").."/schems/pacmine.mts" minetest.place_schematic(vector.add(gamestate.pos, {x=0,y=-1,z=-2}),schem,0, "air", true) -- Set start positions diff --git a/pacmine/init.lua b/pacmine/init.lua index 6689cc7..4d4db2a 100644 --- a/pacmine/init.lua +++ b/pacmine/init.lua @@ -8,7 +8,7 @@ dofile(minetest.get_modpath("pacmine").."/blocks.lua") dofile(minetest.get_modpath("pacmine").."/portals.lua") dofile(minetest.get_modpath("pacmine").."/gamestate.lua") dofile(minetest.get_modpath("pacmine").."/hud.lua") -dofile(minetest.get_modpath("pacmine").."/aliases.lua") +--dofile(minetest.get_modpath("pacmine").."/aliases.lua") diff --git a/pacmine/models/pacmine_strawberry.obj b/pacmine/models/pacmine_strawberry.obj new file mode 100644 index 0000000..768a9a5 --- /dev/null +++ b/pacmine/models/pacmine_strawberry.obj @@ -0,0 +1,196 @@ +# Blender v2.75 (sub 0) OBJ File: '' +# www.blender.org +o Strawberry_Plane.004 +v 0.562500 0.125000 -0.050000 +v 0.500000 0.125000 -0.050000 +v 0.687500 0.187500 -0.050000 +v 0.625000 0.187500 -0.050000 +v 0.562500 0.187500 -0.050000 +v 0.500000 0.187500 -0.050000 +v 0.437500 0.187500 -0.050000 +v 0.375000 0.187500 -0.050000 +v 0.750000 0.250000 -0.050000 +v 0.687500 0.250000 -0.050000 +v 0.500000 0.187500 0.050000 +v 0.250000 0.312500 0.050000 +v 0.312500 0.312500 0.050000 +v 0.562500 0.187500 0.050000 +v 0.375000 0.250000 -0.050000 +v 0.312500 0.250000 -0.050000 +v 0.812500 0.312500 -0.050000 +v 0.750000 0.312500 -0.050000 +v 0.625000 0.187500 0.050000 +v 0.750000 0.312500 0.050000 +v 0.750000 0.750000 0.050000 +v 0.812500 0.750000 0.050000 +v 0.812500 0.312500 0.050000 +v 0.687500 0.187500 0.050000 +v 0.312500 0.312500 -0.050000 +v 0.250000 0.312500 -0.050000 +v 0.812500 0.375000 -0.050000 +v 0.500000 0.125000 0.050000 +v 0.312500 0.250000 0.050000 +v 0.187500 0.687500 0.050000 +v 0.312500 0.812500 0.050000 +v 0.375000 0.812500 0.050000 +v 0.250000 0.687500 0.050000 +v 0.375000 0.250000 0.050000 +v 0.562500 0.125000 0.050000 +v 0.250000 0.375000 -0.050000 +v 0.875000 0.437500 -0.050000 +v 0.812500 0.437500 -0.050000 +v 0.687500 0.250000 0.050000 +v 0.812500 0.687500 0.050000 +v 0.437500 0.812500 0.050000 +v 0.875000 0.500000 0.050000 +v 0.187500 0.500000 0.050000 +v 0.500000 0.812500 0.050000 +v 0.875000 0.687500 0.050000 +v 0.750000 0.250000 0.050000 +v 0.250000 0.437500 -0.050000 +v 0.187500 0.437500 -0.050000 +v 0.875000 0.500000 -0.050000 +v 0.375000 0.187500 0.050000 +v 0.187500 0.437500 0.050000 +v 0.562500 0.812500 0.050000 +v 0.875000 0.562500 0.050000 +v 0.187500 0.562500 0.050000 +v 0.625000 0.812500 0.050000 +v 0.250000 0.437500 0.050000 +v 0.437500 0.187500 0.050000 +v 0.187500 0.500000 -0.050000 +v 0.875000 0.562500 -0.050000 +v 0.812500 0.437500 0.050000 +v 0.687500 0.812500 0.050000 +v 0.875000 0.625000 0.050000 +v 0.187500 0.625000 0.050000 +v 0.750000 0.812500 0.050000 +v 0.875000 0.437500 0.050000 +v 0.187500 0.562500 -0.050000 +v 0.875000 0.625000 -0.050000 +v 0.250000 0.750000 0.050000 +v 0.500000 0.875000 0.050000 +v 0.562500 0.875000 0.050000 +v 0.312500 0.750000 0.050000 +v 0.187500 0.625000 -0.050000 +v 0.875000 0.687500 -0.050000 +v 0.812500 0.687500 -0.050000 +v 0.812500 0.375000 0.050000 +v 0.250000 0.375000 0.050000 +v 0.250000 0.687500 -0.050000 +v 0.187500 0.687500 -0.050000 +v 0.812500 0.750000 -0.050000 +v 0.750000 0.750000 -0.050000 +v 0.312500 0.750000 -0.050000 +v 0.250000 0.750000 -0.050000 +v 0.750000 0.812500 -0.050000 +v 0.687500 0.812500 -0.050000 +v 0.625000 0.812500 -0.050000 +v 0.562500 0.812500 -0.050000 +v 0.500000 0.812500 -0.050000 +v 0.437500 0.812500 -0.050000 +v 0.375000 0.812500 -0.050000 +v 0.312500 0.812500 -0.050000 +v 0.562500 0.875000 -0.050000 +v 0.500000 0.875000 -0.050000 +vt 0.812500 0.375000 +vt 0.812500 0.437500 +vt 0.187500 0.562500 +vt 0.187500 0.500000 +vt 0.500000 0.125000 +vt 0.562500 0.125000 +vt 0.437500 0.187500 +vt 0.500000 0.187500 +vt 0.687500 0.187500 +vt 0.687500 0.250000 +vt 0.750000 0.250000 +vt 0.250000 0.750000 +vt 0.250000 0.687500 +vt 0.562500 0.187500 +vt 0.625000 0.187500 +vt 0.750000 0.750000 +vt 0.750000 0.812500 +vt 0.875000 0.437500 +vt 0.750000 0.312500 +vt 0.812500 0.312500 +vt 0.187500 0.687500 +vt 0.187500 0.625000 +vt 0.437500 0.812500 +vt 0.375000 0.812500 +vt 0.500000 0.875000 +vt 0.500000 0.812500 +vt 0.687500 0.812500 +vt 0.625000 0.812500 +vt 0.562500 0.812500 +vt 0.375000 0.187500 +vt 0.375000 0.250000 +vt 0.312500 0.250000 +vt 0.312500 0.750000 +vt 0.875000 0.500000 +vt 0.875000 0.562500 +vt 0.250000 0.437500 +vt 0.250000 0.375000 +vt 0.187500 0.437500 +vt 0.562500 0.875000 +vt 0.312500 0.812500 +vt 0.250000 0.312500 +vt 0.312500 0.312500 +vt 0.875000 0.625000 +vt 0.875000 0.687500 +vt 0.812500 0.687500 +vt 0.812500 0.750000 +vn 1.000000 -0.000000 0.000000 +vn -1.000000 0.000000 0.000000 +vn 0.000000 -1.000000 0.000000 +vn 0.000000 1.000000 0.000000 +vn 0.000000 0.000000 1.000000 +vn 0.000000 -0.000000 -1.000000 +s off +f 27/1/1 38/2/1 60/2/1 75/1/1 +f 66/3/2 58/4/2 43/4/2 54/3/2 +f 2/5/3 1/6/3 35/6/3 28/5/3 +f 7/7/3 6/8/3 11/8/3 57/7/3 +f 3/9/1 10/10/1 39/10/1 24/9/1 +f 10/10/3 9/11/3 46/11/3 39/10/3 +f 82/12/2 77/13/2 33/13/2 68/12/2 +f 5/14/3 4/15/3 19/15/3 14/14/3 +f 80/16/1 83/17/1 64/17/1 21/16/1 +f 38/2/3 37/18/3 65/18/3 60/2/3 +f 18/19/3 17/20/3 23/20/3 20/19/3 +f 78/21/2 72/22/2 63/22/2 30/21/2 +f 88/23/4 89/24/4 32/24/4 41/23/4 +f 92/25/2 87/26/2 44/26/2 69/25/2 +f 83/17/4 84/27/4 61/27/4 64/17/4 +f 85/28/4 86/29/4 52/29/4 55/28/4 +f 8/30/3 7/7/3 57/7/3 50/30/3 +f 6/8/2 2/5/2 28/5/2 11/8/2 +f 15/31/2 8/30/2 50/30/2 34/31/2 +f 16/32/3 15/31/3 34/31/3 29/32/3 +f 81/33/4 82/12/4 68/12/4 71/33/4 +f 49/34/1 59/35/1 53/35/1 42/34/1 +f 17/20/1 27/1/1 75/1/1 23/20/1 +f 47/36/2 36/37/2 76/37/2 56/36/2 +f 58/4/2 48/38/2 51/38/2 43/4/2 +f 86/29/1 91/39/1 70/39/1 52/29/1 +f 89/24/4 90/40/4 31/40/4 32/24/4 +f 52/29/5 70/39/5 69/25/5 44/26/5 41/23/5 32/24/5 31/40/5 71/33/5 68/12/5 33/13/5 30/21/5 63/22/5 54/3/5 43/4/5 51/38/5 56/36/5 76/37/5 12/41/5 13/42/5 29/32/5 34/31/5 50/30/5 57/7/5 11/8/5 28/5/5 35/6/5 14/14/5 19/15/5 24/9/5 39/10/5 46/11/5 20/19/5 23/20/5 75/1/5 60/2/5 65/18/5 42/34/5 53/35/5 62/43/5 45/44/5 40/45/5 22/46/5 21/16/5 64/17/5 61/27/5 55/28/5 +f 67/43/1 73/44/1 45/44/1 62/43/1 +f 72/22/2 66/3/2 54/3/2 63/22/2 +f 9/11/1 18/19/1 20/19/1 46/11/1 +f 1/6/1 5/14/1 14/14/1 35/6/1 +f 84/27/4 85/28/4 55/28/4 61/27/4 +f 79/46/4 80/16/4 21/16/4 22/46/4 +f 25/42/2 16/32/2 29/32/2 13/42/2 +f 87/26/4 88/23/4 41/23/4 44/26/4 +f 74/45/1 79/46/1 22/46/1 40/45/1 +f 26/41/3 25/42/3 13/42/3 12/41/3 +f 37/18/1 49/34/1 42/34/1 65/18/1 +f 4/15/3 3/9/3 24/9/3 19/15/3 +f 48/38/3 47/36/3 56/36/3 51/38/3 +f 90/40/2 81/33/2 71/33/2 31/40/2 +f 91/39/4 92/25/4 69/25/4 70/39/4 +f 36/37/2 26/41/2 12/41/2 76/37/2 +f 73/44/4 74/45/4 40/45/4 45/44/4 +f 59/35/1 67/43/1 62/43/1 53/35/1 +f 77/13/4 78/21/4 30/21/4 33/13/4 +f 86/29/6 85/28/6 84/27/6 83/17/6 80/16/6 79/46/6 74/45/6 73/44/6 67/43/6 59/35/6 49/34/6 37/18/6 38/2/6 27/1/6 17/20/6 18/19/6 9/11/6 10/10/6 3/9/6 4/15/6 5/14/6 1/6/6 2/5/6 6/8/6 7/7/6 8/30/6 15/31/6 16/32/6 25/42/6 26/41/6 36/37/6 47/36/6 48/38/6 58/4/6 66/3/6 72/22/6 78/21/6 77/13/6 82/12/6 81/33/6 90/40/6 89/24/6 88/23/6 87/26/6 92/25/6 91/39/6 diff --git a/pacmine/schems/pacmine.mts b/pacmine/schems/pacmine.mts new file mode 100644 index 0000000..98fe69b Binary files /dev/null and b/pacmine/schems/pacmine.mts differ diff --git a/pacmine/textures/pacmine_portal.png b/pacmine/textures/pacmine_portal.png index e491268..04bdc13 100644 Binary files a/pacmine/textures/pacmine_portal.png and b/pacmine/textures/pacmine_portal.png differ -- cgit v1.2.3