Sprites and Animations
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user