Skip to content

Commit d83f720

Browse files
authored
Added example for animation states (#129)
* Added example for animation states - a simple finite state machine for 2D character controller. * Fixed flipping sprite after turn animation is finished.
1 parent af2892e commit d83f720

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+1063
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
path_settings {
2+
path: "**"
3+
profile: "Default"
4+
}
5+
profiles {
6+
name: "Default"
7+
platforms {
8+
os: OS_ID_GENERIC
9+
formats {
10+
format: TEXTURE_FORMAT_RGBA
11+
compression_level: BEST
12+
compression_type: COMPRESSION_TYPE_DEFAULT
13+
}
14+
mipmaps: false
15+
max_texture_size: 0
16+
premultiply_alpha: true
17+
}
18+
}
75.5 KB
146 KB
Binary file not shown.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
key_trigger {
2+
input: KEY_SPACE
3+
action: "jump"
4+
}
5+
key_trigger {
6+
input: KEY_C
7+
action: "crouch"
8+
}
9+
key_trigger {
10+
input: KEY_X
11+
action: "attack"
12+
}
13+
key_trigger {
14+
input: KEY_RIGHT
15+
action: "right"
16+
}
17+
key_trigger {
18+
input: KEY_LEFT
19+
action: "left"
20+
}
1.03 KB
1.07 KB
1.3 KB
1.11 KB
1.11 KB
1.1 KB

0 commit comments

Comments
 (0)