Add animation for water 21/head
authorPilzAdam <adam-k@outlook.com>
Fri, 2 Nov 2012 17:24:25 +0000 (18:24 +0100)
committerPilzAdam <adam-k@outlook.com>
Fri, 2 Nov 2012 17:24:25 +0000 (18:24 +0100)
mods/default/README.txt
mods/default/init.lua
mods/default/textures/default_water_flowing_animated.png [new file with mode: 0644]
mods/default/textures/default_water_source_animated.png [new file with mode: 0644]

index 23e6aad64c09199ed53a43829e5aa911a88abe28..6f318d4fbd502a2ec043952e29e60de929487891 100644 (file)
@@ -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
index ee11b8fcd68148fdb31b187009b381d772a8a760..2ee1dd9113f143ce03685a653012754d2b6d98af 100644 (file)
@@ -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 (file)
index 0000000..ac35b2a
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 (file)
index 0000000..26de7ba
Binary files /dev/null and b/mods/default/textures/default_water_source_animated.png differ