Added basic enemy textures.
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 944 B |
Binary file not shown.
|
After Width: | Height: | Size: 1.2 KiB |
@@ -42,11 +42,11 @@ init_player_assets :: proc(clip_array: ^[Player_State]AnimationClip) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
init_enemy_assets :: proc(clip_array: ^[Enemy_State]AnimationClip) {
|
init_enemy_assets :: proc(clip_array: ^[Enemy_State]AnimationClip) {
|
||||||
idle_tex := rl.LoadTexture("assets/textures/enemy/player_idle.png")
|
idle_tex := rl.LoadTexture("assets/textures/enemy/enemy_idle.png")
|
||||||
walk_tex := rl.LoadTexture("assets/textures/enemy/player_walk.png")
|
walk_tex := rl.LoadTexture("assets/textures/enemy/enemy_walk.png")
|
||||||
|
|
||||||
clip_array[.IDLE] = AnimationClip {
|
clip_array[.IDLE] = AnimationClip {
|
||||||
texture = idle_tex, frame_count = 6, frame_width = 32, frame_height = 32, frame_time = 0.14, looping = true,
|
texture = idle_tex, frame_count = 6, frame_width = 32, frame_height = 32, frame_time = 0.10, looping = true,
|
||||||
}
|
}
|
||||||
clip_array[.WALK] = AnimationClip {
|
clip_array[.WALK] = AnimationClip {
|
||||||
texture = walk_tex, frame_count = 8, frame_width = 32, frame_height = 32, frame_time = 0.14, looping = true,
|
texture = walk_tex, frame_count = 8, frame_width = 32, frame_height = 32, frame_time = 0.14, looping = true,
|
||||||
|
|||||||
Reference in New Issue
Block a user