diff options
author | DonBatman <serfdon@gmail.com> | 2015-10-24 08:47:22 -0700 |
---|---|---|
committer | DonBatman <serfdon@gmail.com> | 2015-10-24 08:47:22 -0700 |
commit | b59eefaa974a295c4d332545c7ed91b740ba1479 (patch) | |
tree | 874469cb7ef3fbe30447bebd9338b81ccde23b22 | |
parent | d2788c63bd7fae301d995a3eaef4c36fda8d0864 (diff) |
Added high score. No formspec yet
-rw-r--r-- | myhighscore/init.lua | 30 | ||||
-rw-r--r-- | myhighscore/textures/myhighscore_back.png | bin | 0 -> 409 bytes | |||
-rw-r--r-- | myhighscore/textures/myhighscore_front.png | bin | 0 -> 503 bytes | |||
-rw-r--r-- | myhighscore/textures/myhighscore_side.png | bin | 0 -> 424 bytes | |||
-rw-r--r-- | myhighscore/textures/myhighscore_top.png | bin | 0 -> 572 bytes |
5 files changed, 30 insertions, 0 deletions
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 Binary files differnew file mode 100644 index 0000000..fb51dcf --- /dev/null +++ b/myhighscore/textures/myhighscore_back.png diff --git a/myhighscore/textures/myhighscore_front.png b/myhighscore/textures/myhighscore_front.png Binary files differnew file mode 100644 index 0000000..a3106b3 --- /dev/null +++ b/myhighscore/textures/myhighscore_front.png diff --git a/myhighscore/textures/myhighscore_side.png b/myhighscore/textures/myhighscore_side.png Binary files differnew file mode 100644 index 0000000..f6b340c --- /dev/null +++ b/myhighscore/textures/myhighscore_side.png diff --git a/myhighscore/textures/myhighscore_top.png b/myhighscore/textures/myhighscore_top.png Binary files differnew file mode 100644 index 0000000..a2460c3 --- /dev/null +++ b/myhighscore/textures/myhighscore_top.png |