From: PilzAdam Date: Fri, 2 Nov 2012 17:24:25 +0000 (+0100) Subject: Add animation for water X-Git-Tag: 0.4.4~37^2 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=refs%2Fpull%2F21%2Fhead;p=oweals%2Fminetest_game.git Add animation for water --- diff --git a/mods/default/README.txt b/mods/default/README.txt index 23e6aad6..6f318d4f 100644 --- a/mods/default/README.txt +++ b/mods/default/README.txt @@ -68,3 +68,6 @@ VanessaE's animated torches (WTFPL): default_torch_on_floor_animated.png default_torch_on_floor.png +RealBadAngel's animated water (WTFPL): + default_water_source_animated.png + default_water_flowing_animated.png diff --git a/mods/default/init.lua b/mods/default/init.lua index ee11b8fc..2ee1dd91 100644 --- a/mods/default/init.lua +++ b/mods/default/init.lua @@ -997,8 +997,16 @@ minetest.register_node("default:water_flowing", { drawtype = "flowingliquid", tiles = {"default_water.png"}, 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, paramtype = "light", @@ -1018,7 +1026,9 @@ minetest.register_node("default:water_source", { description = "Water Source", inventory_image = minetest.inventorycube("default_water.png"), 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 = { -- New-style water source material (mostly unused) {name="default_water.png", backface_culling=false}, diff --git a/mods/default/textures/default_water_flowing_animated.png b/mods/default/textures/default_water_flowing_animated.png new file mode 100644 index 00000000..ac35b2ac Binary files /dev/null and b/mods/default/textures/default_water_flowing_animated.png differ diff --git a/mods/default/textures/default_water_source_animated.png b/mods/default/textures/default_water_source_animated.png new file mode 100644 index 00000000..26de7baa Binary files /dev/null and b/mods/default/textures/default_water_source_animated.png differ