mirror of
https://github.com/minetest/minetest_game.git
synced 2024-11-10 01:33:52 +01:00
Updated texture from Jordach, and fix the licensing confusion
I forgot frame range definitions need to be per-model, since each model could have its own animations. Specify current ones as being player.x's Add death animation, and correct many mesh issues I didn't notice last time
This commit is contained in:
parent
abaf4c5121
commit
b97400d71d
@ -86,5 +86,5 @@ Calinou's improved default textures (CC BY-SA):
|
|||||||
MirceaKitsune (WTFPL):
|
MirceaKitsune (WTFPL):
|
||||||
character.x
|
character.x
|
||||||
|
|
||||||
Jordach (CC BY-SA 3.0 given specific permission):
|
Jordach (CC BY-SA 3.0):
|
||||||
character.png
|
character.png
|
||||||
|
Binary file not shown.
Binary file not shown.
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB |
File diff suppressed because it is too large
Load Diff
@ -10,18 +10,21 @@ animation_speed = 30
|
|||||||
animation_blend = 0
|
animation_blend = 0
|
||||||
|
|
||||||
-- Animations frame ranges:
|
-- Animations frame ranges:
|
||||||
animation_stand_START = 0
|
-- For player.x:
|
||||||
animation_stand_END = 79
|
animation_player_stand_START = 0
|
||||||
animation_walk_forward_START = 81
|
animation_player_stand_END = 79
|
||||||
animation_walk_forward_END = 100
|
animation_player_walk_forward_START = 81
|
||||||
animation_walk_backward_START = 102
|
animation_player_walk_forward_END = 100
|
||||||
animation_walk_backward_END = 121
|
animation_player_walk_backward_START = 102
|
||||||
animation_walk_right_START = 123
|
animation_player_walk_backward_END = 121
|
||||||
animation_walk_right_END = 142
|
animation_player_walk_right_START = 123
|
||||||
animation_walk_left_START = 144
|
animation_player_walk_right_END = 142
|
||||||
animation_walk_left_END = 163
|
animation_player_walk_left_START = 144
|
||||||
animation_mine_START = 165
|
animation_player_walk_left_END = 163
|
||||||
animation_mine_END = 179
|
animation_player_mine_START = 165
|
||||||
|
animation_player_mine_END = 179
|
||||||
|
animation_player_death_START = 181
|
||||||
|
animation_player_death_END = 200
|
||||||
|
|
||||||
-- Set mesh for all players
|
-- Set mesh for all players
|
||||||
function switch_player_visual()
|
function switch_player_visual()
|
||||||
@ -34,7 +37,7 @@ function switch_player_visual()
|
|||||||
|
|
||||||
for _, obj in pairs(minetest.get_connected_players()) do
|
for _, obj in pairs(minetest.get_connected_players()) do
|
||||||
obj:set_properties(prop)
|
obj:set_properties(prop)
|
||||||
obj:set_animation({x=animation_stand_START, y=animation_stand_END}, animation_speed, animation_blend)
|
obj:set_animation({x=animation_player_death_START, y=animation_player_death_END}, animation_speed, animation_blend)
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.after(10.0, switch_player_visual)
|
minetest.after(10.0, switch_player_visual)
|
||||||
|
Loading…
Reference in New Issue
Block a user