From 4a68126a2b52a3920033fe09898a24d37b419681 Mon Sep 17 00:00:00 2001 From: PilzAdam Date: Fri, 2 Nov 2012 18:24:25 +0100 Subject: [PATCH] Add animation for water --- mods/default/README.txt | 3 +++ mods/default/init.lua | 16 +++++++++++++--- .../textures/default_water_flowing_animated.png | Bin 0 -> 5972 bytes .../textures/default_water_source_animated.png | Bin 0 -> 5170 bytes 4 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 mods/default/textures/default_water_flowing_animated.png create mode 100644 mods/default/textures/default_water_source_animated.png 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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0P0~u7hv7@>iwMtejgWDqnusz#T zWbbQ1N@_;hw65&1{?`w-ZROJMOi7o;nvSY-zYiUX?q2Bpwv&)#Ryp->xh{b~r@^r2 zNOTyfAgFDV-YiK5Nf|PS6V!-3S0ZnO8>(;PeIhMLCkjGd^$o%eSQ~N`9qNmkvH-}e zqx#yPVB6X}A6y9rRX?})a?)ItK1AKTCF5LV*qlgAn@aFL07Et zT=bW~{t$2zoazg4V6F1XRFg|2Fh?j*lkb7n)>j)%-d=a{n$9k0E& zoYfpp$sxSi4xEd&8Rt=J+nk5n0z2X(Qa6Fll&grHm!bTRWVyxLw?B?2fnmB+*YTJ~ z7}5J@*8BZQ6CFW>l<=1M+AR$?_f)k#VsoI*{=nk!o{4+-60yhspFwh_p_NuQ7APH-YuH$kSOjgnq-Z@KH*Q@@3^*41Bv|d%Zwqm zgTkMrZKNb$XyjbB%%=-&mp(1fE_!K~Ax{u?mZ-MKm~=oLsQ!ZFtFmAY#DBv(W#|`T4n0QfU#gEp6k~dv1hGiaDf zMIeR%I8N~vn*x-v`F9YA9s0Cq5yg_z4vX{1LB!kz_#G=gV1G)qO=&R@|4yctE z|C97_rc!cW>LnltAVZ(4$}$AjySqXlrk#TPn|sh1Vz3G zI5Pvj<^XTVYCFiTLi;ZyCi=7 z?mH7Z+eSC&Bl}1f%VEsYIK*ayrb&rwn*m%Q@P3tX*1!Sa&)5ckY5SCsmK+?=AW7&i zFrYnTD)S+=UK!xDEj=}WMb`xYAHwdhGl2z}IS?D#?q>re0cHr{*kw2boWBU^GzY|9 ze<&KQHvem)&@e=XQZb{K33JjEt2m!tneD-12w#L1ADv&aKmU3ZF_gIb;5pT`k4m ckQ4O=!p-U9i`&nDm*5~hgn@Rsrft;!0L#I7-2eap literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..26de7baaec5224e62128ab1096ea2ffdb1bbba2d GIT binary patch literal 5170 zcm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