aboutsummaryrefslogtreecommitdiff
path: root/games/minimal/mods/default
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2016-12-23 14:43:56 +0100
committersfan5 <sfan5@live.de>2017-01-02 15:28:06 +0100
commita07b032245bef76a7695e139a9daca7cb646a73d (patch)
treeb1c5117b19f8a00c396b75bef11925927b082995 /games/minimal/mods/default
parent7057c196c442ff3484b53f48d940f4c9e0ffe23a (diff)
downloadminetest-a07b032245bef76a7695e139a9daca7cb646a73d.tar.gz
minetest-a07b032245bef76a7695e139a9daca7cb646a73d.tar.bz2
minetest-a07b032245bef76a7695e139a9daca7cb646a73d.zip
Add 2D sheet animation for nodes
Diffstat (limited to 'games/minimal/mods/default')
-rw-r--r--games/minimal/mods/default/init.lua7
-rw-r--r--games/minimal/mods/default/textures/default_lava_source_animated.pngbin2902 -> 3145 bytes
2 files changed, 5 insertions, 2 deletions
diff --git a/games/minimal/mods/default/init.lua b/games/minimal/mods/default/init.lua
index f532e7193..2f73b53ef 100644
--- a/games/minimal/mods/default/init.lua
+++ b/games/minimal/mods/default/init.lua
@@ -1044,8 +1044,11 @@ minetest.register_node("default:lava_source", {
inventory_image = minetest.inventorycube("default_lava.png"),
drawtype = "liquid",
--tiles ={"default_lava.png"},
- tiles ={
- {name="default_lava_source_animated.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=3.0}}
+ tiles = {
+ {
+ name = "default_lava_source_animated.png",
+ animation = {type="sheet_2d", frames_w=3, frames_h=2, frame_length=0.5}
+ }
},
special_tiles = {
-- New-style lava source material (mostly unused)
diff --git a/games/minimal/mods/default/textures/default_lava_source_animated.png b/games/minimal/mods/default/textures/default_lava_source_animated.png
index aa9d57cf1..54f4c0ddd 100644
--- a/games/minimal/mods/default/textures/default_lava_source_animated.png
+++ b/games/minimal/mods/default/textures/default_lava_source_animated.png
Binary files differ