summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorFernando Carmona Varo <ferkiwi@gmail.com>2015-10-24 01:19:24 +0200
committerFernando Carmona Varo <ferkiwi@gmail.com>2015-10-24 01:19:24 +0200
commit6a55251a4526095fb691f5fca0a9d51c0d1cf7c0 (patch)
tree5c43ed7b9c281d59ef8321f858177962150269bb /init.lua
parent6b949da2c7610c55f2bb83c693520b9e77a9aebc (diff)
Moved and renamed to pacmine
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua99
1 files changed, 0 insertions, 99 deletions
diff --git a/init.lua b/init.lua
deleted file mode 100644
index 69c0df7..0000000
--- a/init.lua
+++ /dev/null
@@ -1,99 +0,0 @@
-
--- This variable will be exported to other mods when they "depend" on this mod
-mypacman = {}
-
-
-dofile(minetest.get_modpath("mypacman").."/craftitems.lua")
-dofile(minetest.get_modpath("mypacman").."/ghost.lua")
-dofile(minetest.get_modpath("mypacman").."/blocks.lua")
-dofile(minetest.get_modpath("mypacman").."/portals.lua")
-dofile(minetest.get_modpath("mypacman").."/gamestate.lua")
-dofile(minetest.get_modpath("mypacman").."/hud.lua")
-
-
---Yellow Pellets
-minetest.register_node("mypacman:pellet_1", {
- description = "Pellet 1",
- tiles = {"wool_yellow.png"},
- drawtype = "nodebox",
- paramtype = "light",
- paramtype2 = "facedir",
- walkable = false,
- light_source = 11,
- drop = "",
- groups = {dig_immediate = 3, not_in_creative_inventory = 0},
- node_box = {
- type = "fixed",
- fixed = {
- {-0.625, 0.25, -0.125, -0.375, 0.5, 0.125},
- }
- },
- on_destruct = function(pos)
- minetest.sound_play("mypacman_chomp", {
- pos = pos,
- max_hear_distance = 100,
- gain = 10.0,
- })
- end,
- after_dig_node = function(pos, oldnode, oldmetadata, digger)
- mypacman.on_player_got_pellet(digger)
- end,
-})
-
---Power Pellets. Need to make these do something
-minetest.register_node("mypacman:pellet_2", {
- description = "Pellet 2",
- tiles = {"wool_yellow.png^[colorize:white:140"},
- drawtype = "nodebox",
- paramtype = "light",
- paramtype2 = "facedir",
- walkable = false,
- light_source = 11,
- drop = {max_items = 1,items = {
- {items = {"mypacman:cherrys"},rarity = 4,},
- {items = {"mypacman:apple"},rarity = 4,},
- {items = {"mypacman:peach"},rarity = 4,},
- {items = {"mypacman:strawberry"},rarity = 4,},},
- },
- groups = {dig_immediate = 3, not_in_creative_inventory = 0},
- node_box = {
- type = "fixed",
- fixed = {
- {-0.625, -0.125, -0.25, -0.375, 0.125, 0.25},
- {-0.75, -0.125, -0.125, -0.25, 0.125, 0.125},
- {-0.625, -0.25, -0.125, -0.375, 0.25, 0.125},
- {-0.6875, -0.1875, -0.1875, -0.3125, 0.1875, 0.1875},
- }
- },
- after_dig_node = function(pos, oldnode, oldmetadata, digger)
- mypacman.on_player_got_power_pellet(digger)
-
- minetest.sound_play("mypacman_eatfruit", {
- pos = pos,
- max_hear_distance = 100,
- gain = 10.0,
- })
- end,
-})
-
---The placer block
-minetest.register_node("mypacman:block2",{
- description = "Pacman",
- inventory_image = "mypacman_1.png",
- tiles = {
- "mypacman_wallc.png",
- "mypacman_1.png",
- "mypacman_1.png",
- "mypacman_1.png",
- "mypacman_1.png",
- "mypacman_1.png",
- },
- drawtype = "normal",
- paramtype = "light",
- paramtype2 = "facedir",
- light_source = 8,
- groups = {cracky = 1},
- on_rightclick = function(pos, node, player, itemstack, pointed_thing)
- mypacman.game_start(pos, player)
- end,
-})