Add animation for fire
authorPilzAdam <adam-k@outlook.com>
Sun, 25 Nov 2012 13:18:06 +0000 (14:18 +0100)
committerPilzAdam <adam-k@outlook.com>
Sun, 25 Nov 2012 19:11:29 +0000 (20:11 +0100)
mods/fire/README.txt
mods/fire/init.lua
mods/fire/textures/fire_basic_flame_animated.png [new file with mode: 0644]

index 564d4a2a0ff262331515a638e4091271f88ebe0e..fdbce15fa1d8ec3e8f349aa6f001fd87b0b7c224 100644 (file)
@@ -28,3 +28,5 @@ fire_small.ogg sampled from:
 fire_large.ogg sampled from:
   http://www.freesound.org/people/Dynamicell/sounds/17548/
 
+fire_basic_flame_animated.png:
+  Muadtralk
index 846a2d34cbc19f73c03d31db9bf0c41b7b6ad323..3480fcb333774147e95c56a2fdadd270645e8970 100644 (file)
@@ -2,8 +2,12 @@
 
 minetest.register_node("fire:basic_flame", {
        description = "Fire",
-       drawtype = "glasslike",
-       tiles = {"fire_basic_flame.png"},
+       drawtype = "plantlike",
+       tiles = {{
+               name="fire_basic_flame_animated.png",
+               animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=1},
+       }},
+       inventory_image = "fire_basic_flame.png",
        light_source = 14,
        groups = {igniter=2,dig_immediate=3},
        drop = '',
diff --git a/mods/fire/textures/fire_basic_flame_animated.png b/mods/fire/textures/fire_basic_flame_animated.png
new file mode 100644 (file)
index 0000000..f044470
Binary files /dev/null and b/mods/fire/textures/fire_basic_flame_animated.png differ