diff options
author | sfan5 <sfan5@live.de> | 2016-12-23 14:43:56 +0100 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2017-01-02 15:28:06 +0100 |
commit | a07b032245bef76a7695e139a9daca7cb646a73d (patch) | |
tree | b1c5117b19f8a00c396b75bef11925927b082995 /games | |
parent | 7057c196c442ff3484b53f48d940f4c9e0ffe23a (diff) | |
download | minetest-a07b032245bef76a7695e139a9daca7cb646a73d.tar.gz minetest-a07b032245bef76a7695e139a9daca7cb646a73d.tar.bz2 minetest-a07b032245bef76a7695e139a9daca7cb646a73d.zip |
Add 2D sheet animation for nodes
Diffstat (limited to 'games')
-rw-r--r-- | games/minimal/mods/default/init.lua | 7 | ||||
-rw-r--r-- | games/minimal/mods/default/textures/default_lava_source_animated.png | bin | 2902 -> 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 Binary files differindex 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 |