diff options
author | sfan5 <sfan5@live.de> | 2020-07-30 17:39:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-30 17:39:57 +0200 |
commit | 9bba52c4000a06043f5100dbb0ef66d869707ffc (patch) | |
tree | 36d5ac4a64a03a72f17192821611d3045fa50d33 /games/devtest | |
parent | e5725dfb8e476a5a6f63f020a23a53ca3ef610e9 (diff) | |
download | minetest-9bba52c4000a06043f5100dbb0ef66d869707ffc.tar.gz minetest-9bba52c4000a06043f5100dbb0ef66d869707ffc.tar.bz2 minetest-9bba52c4000a06043f5100dbb0ef66d869707ffc.zip |
content_cao: Support texture animation for upright_sprite (#10020)
Diffstat (limited to 'games/devtest')
-rw-r--r-- | games/devtest/mods/testentities/visuals.lua | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/games/devtest/mods/testentities/visuals.lua b/games/devtest/mods/testentities/visuals.lua index 83f361f16..8848ba49f 100644 --- a/games/devtest/mods/testentities/visuals.lua +++ b/games/devtest/mods/testentities/visuals.lua @@ -68,7 +68,7 @@ minetest.register_entity("testentities:mesh_unshaded", { -- Advanced visual tests --- A test entity for testing animated and yaw-modulated sprites +-- An entity for testing animated and yaw-modulated sprites minetest.register_entity("testentities:yawsprite", { initial_properties = { selectionbox = {-0.3, -0.5, -0.3, 0.3, 0.3, 0.3}, @@ -79,6 +79,18 @@ minetest.register_entity("testentities:yawsprite", { initial_sprite_basepos = {x=0, y=0}, }, on_activate = function(self, staticdata) - self.object:set_sprite({x=0, y=0}, 1, 0, true) + self.object:set_sprite({x=0, y=0}, 3, 0.5, true) + end, +}) + +-- An entity for testing animated upright sprites +minetest.register_entity("testentities:upright_animated", { + initial_properties = { + visual = "upright_sprite", + textures = {"testnodes_anim.png"}, + spritediv = {x = 1, y = 4}, + }, + on_activate = function(self) + self.object:set_sprite({x=0, y=0}, 4, 1.0, false) end, }) |