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 +++++++++++++++++++++++++++++ myhighscore/textures/myhighscore_back.png | Bin 0 -> 409 bytes myhighscore/textures/myhighscore_front.png | Bin 0 -> 503 bytes myhighscore/textures/myhighscore_side.png | Bin 0 -> 424 bytes myhighscore/textures/myhighscore_top.png | Bin 0 -> 572 bytes 5 files changed, 30 insertions(+) create mode 100644 myhighscore/init.lua create mode 100644 myhighscore/textures/myhighscore_back.png create mode 100644 myhighscore/textures/myhighscore_front.png create mode 100644 myhighscore/textures/myhighscore_side.png create mode 100644 myhighscore/textures/myhighscore_top.png (limited to 'myhighscore') 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, + +}) diff --git a/myhighscore/textures/myhighscore_back.png b/myhighscore/textures/myhighscore_back.png new file mode 100644 index 0000000..fb51dcf Binary files /dev/null and b/myhighscore/textures/myhighscore_back.png differ diff --git a/myhighscore/textures/myhighscore_front.png b/myhighscore/textures/myhighscore_front.png new file mode 100644 index 0000000..a3106b3 Binary files /dev/null and b/myhighscore/textures/myhighscore_front.png differ diff --git a/myhighscore/textures/myhighscore_side.png b/myhighscore/textures/myhighscore_side.png new file mode 100644 index 0000000..f6b340c Binary files /dev/null and b/myhighscore/textures/myhighscore_side.png differ diff --git a/myhighscore/textures/myhighscore_top.png b/myhighscore/textures/myhighscore_top.png new file mode 100644 index 0000000..a2460c3 Binary files /dev/null and b/myhighscore/textures/myhighscore_top.png differ -- cgit v1.2.3