Corrected player pos to be centered not top left
This commit is contained in:
+2
-2
@@ -55,8 +55,8 @@ renderer_draw_player :: proc(player: ^Player) {
|
||||
}
|
||||
|
||||
dst_rect := rl.Rectangle{
|
||||
x = player.pos.x,
|
||||
y = player.pos.y,
|
||||
x = player.pos.x - f32(clip.frame_width) / 2,
|
||||
y = player.pos.y - f32(clip.frame_height) / 2,
|
||||
width = f32(clip.frame_width),
|
||||
height = f32(clip.frame_height),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user