Add bouncer, cushion and spikes

master
Wuzzy 2015-10-03 12:50:59 +02:00
parent 2937b4baf5
commit 092497c9ee
7 changed files with 37 additions and 1 deletions

View File

@ -19,7 +19,7 @@ At the moment unusable. Just trow in the code we need.
Fly by default
Additional features (nice to have - later):
Special blocks: spices, jump pads, cushions
Special blocks: jump pads
Background music and sound effects
Creative mode:
Ingame switching

View File

@ -34,3 +34,9 @@ kaadmy (CC0):
uforun_spikes.png
uforun_startline.png
uforun_ufo.png
Wuzzy (WTFPL):
uforun_bouncer.png
uforun_cushion_top.png
uforun_cushion_side.png
uforun_cushion_bottom.png

View File

@ -90,3 +90,33 @@ minetest.register_node(
tiles = {"uforun_ice.png", "uforun_dirt.png", "uforun_ice_side"},
groups = {crumbly=3},
})
minetest.register_node(
"uforun:spikes",
{
description = "spikes",
drawtype = "plantlike",
tiles = {"uforun_spikes.png"},
inventory_image = "uforun_spikes.png",
sunlight_propagates = true,
walkable = false,
paramtype = "light",
damage_per_second = 2,
groups = {crumbly=3},
})
minetest.register_node(
"uforun:cushion",
{
description = "cushion",
tiles = {"uforun_cushion_top.png", "uforun_cushion_bottom.png", "uforun_cushion_side.png"},
groups = {crumbly=3, fall_damage_add_percent=-100},
})
minetest.register_node(
"uforun:bouncer",
{
description = "bouncer",
tiles = {"uforun_bouncer.png"},
groups = {crumbly=3, bouncy=75, fall_damage_add_percent=-50},
})

Binary file not shown.

After

Width:  |  Height:  |  Size: 150 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 122 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 141 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 176 B