Sprites and Animations

This commit is contained in:
2026-02-15 16:55:22 -06:00
parent 997aa3f16b
commit 7b19fbcf53
4 changed files with 241 additions and 12 deletions

View File

@@ -14,12 +14,15 @@ main :: proc() {
player = {
position = {0, 0},
camera = {
zoom = 2,
zoom = 4,
offset = {f32(raylib.GetScreenWidth()) / 2, f32(raylib.GetScreenHeight()) / 2},
target = {player.position.x + (32 / 2), player.position.y + (32 / 2)},
},
sprite = load_sprite(PLAYER_SPRITE_PATH, PLAYER_WIDTH, PLAYER_HEIGHT),
}
player.state = .WALKING
for (!raylib.WindowShouldClose()) {
delta := raylib.GetFrameTime()