feat: add basic textures for railguns (#19)

This commit is contained in:
Kiëd Llaentenn 2023-05-31 11:32:45 -04:00 committed by GitHub
parent 4ab6284534
commit 05a2494638
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 29 additions and 11 deletions

@ -98,20 +98,22 @@ local register_spacecannon = function(def)
end end
}) })
minetest.register_node("spacecannon:cannon_" .. def.color, {
description = def.name .. " (" .. def.desc .. ")",
-- top, bottom -- top, bottom
tiles = { local textures = {
"cannon_blank.png" .. cable_entry, "cannon_blank.png" .. cable_entry,
"cannon_front_" .. def.color .. ".png", "cannon_front_" .. def.color .. ".png",
"cannon_blank.png" .. cable_entry, "cannon_blank.png" .. cable_entry,
"cannon_blank.png" .. cable_entry, "cannon_blank.png" .. cable_entry,
"cannon_blank.png" .. cable_entry, "cannon_blank.png" .. cable_entry,
"cannon_blank.png" .. cable_entry "cannon_blank.png" .. cable_entry
}, }
if def.textures then
textures = def.textures
end
minetest.register_node("spacecannon:cannon_" .. def.color, {
description = def.name .. " (" .. def.desc .. ")",
tiles = textures,
groups = {cracky=3,oddly_breakable_by_hand=3,technic_machine = 1, technic_hv = 1}, groups = {cracky=3,oddly_breakable_by_hand=3,technic_machine = 1, technic_hv = 1},
drop = "spacecannon:cannon_" .. def.color, drop = "spacecannon:cannon_" .. def.color,
@ -286,6 +288,14 @@ register_spacecannon({
color = "blue", color = "blue",
name = "Railgun cannon", name = "Railgun cannon",
desc = "fast, 2x penetrating damage", desc = "fast, 2x penetrating damage",
textures = {
"railgun_blank.png" .. cable_entry,
"railgun_front.png",
"railgun_blank.png" .. cable_entry,
"railgun_blank.png" .. cable_entry,
"railgun_top_bottom.png",
"railgun_top_bottom.png",
},
is_th = false, is_th = false,
range = 0, range = 0,
storage_require_mod = 1, storage_require_mod = 1,
@ -302,6 +312,14 @@ register_spacecannon({
color = "purple", color = "purple",
name = "Helical railgun cannon", name = "Helical railgun cannon",
desc = "fast, 4x penetrating damage", desc = "fast, 4x penetrating damage",
textures = {
"railgun_blank.png" .. cable_entry,
"helical_railgun_front.png",
"railgun_blank.png" .. cable_entry,
"railgun_blank.png" .. cable_entry,
"helical_railgun_top_bottom.png",
"helical_railgun_top_bottom.png",
},
is_th = false, is_th = false,
range = 0, range = 0,
storage_require_mod = 1.5, storage_require_mod = 1.5,

Binary file not shown.

After

Width:  |  Height:  |  Size: 617 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 552 B

BIN
textures/railgun_blank.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 429 B

BIN
textures/railgun_front.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 605 B

BIN
textures/railgun_top_bottom.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 568 B