mirror of
https://github.com/minetest/minetest_game.git
synced 2024-11-05 15:23:51 +01:00
Merge pull request #21 from PilzAdam/animated_water
Add animation for water
This commit is contained in:
commit
5497db98de
@ -68,3 +68,6 @@ VanessaE's animated torches (WTFPL):
|
|||||||
default_torch_on_floor_animated.png
|
default_torch_on_floor_animated.png
|
||||||
default_torch_on_floor.png
|
default_torch_on_floor.png
|
||||||
|
|
||||||
|
RealBadAngel's animated water (WTFPL):
|
||||||
|
default_water_source_animated.png
|
||||||
|
default_water_flowing_animated.png
|
||||||
|
@ -997,8 +997,16 @@ minetest.register_node("default:water_flowing", {
|
|||||||
drawtype = "flowingliquid",
|
drawtype = "flowingliquid",
|
||||||
tiles = {"default_water.png"},
|
tiles = {"default_water.png"},
|
||||||
special_tiles = {
|
special_tiles = {
|
||||||
{name="default_water.png", backface_culling=false},
|
{
|
||||||
{name="default_water.png", backface_culling=true},
|
image="default_water_flowing_animated.png",
|
||||||
|
backface_culling=false,
|
||||||
|
animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=0.8}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
image="default_water_flowing_animated.png",
|
||||||
|
backface_culling=true,
|
||||||
|
animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=0.8}
|
||||||
|
},
|
||||||
},
|
},
|
||||||
alpha = WATER_ALPHA,
|
alpha = WATER_ALPHA,
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
@ -1018,7 +1026,9 @@ minetest.register_node("default:water_source", {
|
|||||||
description = "Water Source",
|
description = "Water Source",
|
||||||
inventory_image = minetest.inventorycube("default_water.png"),
|
inventory_image = minetest.inventorycube("default_water.png"),
|
||||||
drawtype = "liquid",
|
drawtype = "liquid",
|
||||||
tiles = {"default_water.png"},
|
tiles = {
|
||||||
|
{name="default_water_source_animated.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=2.0}}
|
||||||
|
},
|
||||||
special_tiles = {
|
special_tiles = {
|
||||||
-- New-style water source material (mostly unused)
|
-- New-style water source material (mostly unused)
|
||||||
{name="default_water.png", backface_culling=false},
|
{name="default_water.png", backface_culling=false},
|
||||||
|
BIN
mods/default/textures/default_water_flowing_animated.png
Normal file
BIN
mods/default/textures/default_water_flowing_animated.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.8 KiB |
BIN
mods/default/textures/default_water_source_animated.png
Normal file
BIN
mods/default/textures/default_water_source_animated.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.0 KiB |
Loading…
Reference in New Issue
Block a user