From b59eefaa974a295c4d332545c7ed91b740ba1479 Mon Sep 17 00:00:00 2001 From: DonBatman Date: Sat, 24 Oct 2015 08:47:22 -0700 Subject: Added high score. No formspec yet --- myhighscore/init.lua | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 myhighscore/init.lua (limited to 'myhighscore/init.lua') diff --git a/myhighscore/init.lua b/myhighscore/init.lua new file mode 100644 index 0000000..4da6a0e --- /dev/null +++ b/myhighscore/init.lua @@ -0,0 +1,30 @@ +minetest.register_node("myhighscore:score_board", { + description = "Score Board", + tiles = { + "myhighscore_top.png", + "myhighscore_back.png", + "myhighscore_side.png^[transformFX", + "myhighscore_side.png", + "myhighscore_back.png", + "myhighscore_front.png", + }, + drawtype = "nodebox", + paramtype = "light", + paramtype2 = "facedir", + groups = {cracky = 1}, + node_box = { + type = "fixed", + fixed = { + {-0.375, -0.5, -0.5, 0.375, -0.1875, 0.5}, + {-0.375, -0.5, 0.1875, 0.375, 0.5, 0.5}, + {-0.1875, -0.5, -0.3125, -0.125, 0, -0.25}, + {-0.375, -0.5, 0, -0.3125, 0.5, 0.5}, + {0.3125, -0.5, 0, 0.375, 0.5, 0.5}, + {-0.375, 0.4375, 0, 0.375, 0.5, 0.5}, + } + }, + +on_rightclick = function(pos, node, player, itemstack, pointed_thing) +end, + +}) -- cgit v1.2.3