Corrected player pos to be centered not top left

This commit is contained in:
2026-07-15 08:19:52 +02:00
parent 8149b19d4a
commit 843d4a8bfc
+2 -2
View File
@@ -55,8 +55,8 @@ renderer_draw_player :: proc(player: ^Player) {
} }
dst_rect := rl.Rectangle{ dst_rect := rl.Rectangle{
x = player.pos.x, x = player.pos.x - f32(clip.frame_width) / 2,
y = player.pos.y, y = player.pos.y - f32(clip.frame_height) / 2,
width = f32(clip.frame_width), width = f32(clip.frame_width),
height = f32(clip.frame_height), height = f32(clip.frame_height),
} }