1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Bring back cool guy as another .x smoke test

This commit is contained in:
Lars Mueller 2024-11-06 13:11:19 +01:00
parent 6892a5e332
commit 0e457bd78b
4 changed files with 22 additions and 1 deletions

View file

@ -12,4 +12,10 @@ Jordach (CC BY-SA 3.0):
Zeg9 (CC BY-SA 3.0): Zeg9 (CC BY-SA 3.0):
testentities_lava_flan.x testentities_lava_flan.x
testentities_lava_flan.png testentities_lava_flan.png
"Cool Guy":
Irrlicht authors (refer to irr/LICENSE):
testentities_cool_guy.x
testentities_cool_guy.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

File diff suppressed because one or more lines are too long

View file

@ -102,6 +102,19 @@ core.register_entity("testentities:lava_flan", {
end, end,
}) })
core.register_entity("testentities:cool_guy", {
initial_properties = {
visual = "mesh",
mesh = "testentities_cool_guy.x",
textures = {
"testentities_cool_guy.png"
},
},
on_activate = function(self)
self.object:set_animation({x = 0, y = 29}, 30, 0, true)
end,
})
-- Advanced visual tests -- Advanced visual tests
-- An entity for testing animated and yaw-modulated sprites -- An entity for testing animated and yaw-modulated sprites