examples/plateformer: add assets for the player
This commit is contained in:
parent
f321703260
commit
977f427893
2 changed files with 51 additions and 0 deletions
51
examples/gameplay/plateform/assets/monkey_lad.lua
Normal file
51
examples/gameplay/plateform/assets/monkey_lad.lua
Normal file
|
@ -0,0 +1,51 @@
|
|||
return {
|
||||
metadata = {
|
||||
height = 24,
|
||||
width = 32,
|
||||
defaultAnim = "idle"
|
||||
},
|
||||
animations = {
|
||||
["idle"] = {
|
||||
startAt = 1,
|
||||
endAt = 1,
|
||||
loop = 1,
|
||||
speed = 0,
|
||||
pauseAtEnd = false,
|
||||
},
|
||||
["walk"] = {
|
||||
startAt = 2,
|
||||
endAt = 6,
|
||||
loop = 1,
|
||||
speed = -1,
|
||||
pauseAtEnd = false,
|
||||
},
|
||||
["jump"] = {
|
||||
startAt = 2,
|
||||
endAt = 2,
|
||||
loop = 1,
|
||||
speed = 0,
|
||||
pauseAtEnd = false,
|
||||
},
|
||||
["brake"] = {
|
||||
startAt = 7,
|
||||
endAt = 7,
|
||||
loop = 1,
|
||||
speed = 0,
|
||||
pauseAtEnd = false,
|
||||
},
|
||||
["climb"] = {
|
||||
startAt = 8,
|
||||
endAt = 9,
|
||||
loop = 1,
|
||||
speed = -1,
|
||||
pauseAtEnd = false,
|
||||
},
|
||||
["punch"] = {
|
||||
startAt = 10,
|
||||
endAt = 10,
|
||||
loop = 1,
|
||||
speed = 0,
|
||||
pauseAtEnd = false,
|
||||
},
|
||||
}
|
||||
}
|
BIN
examples/gameplay/plateform/assets/monkey_lad.png
Normal file
BIN
examples/gameplay/plateform/assets/monkey_lad.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.7 KiB |
Loading…
Reference in a new issue