From 30a49954e4cb434a1c47503c839feb20558a202b Mon Sep 17 00:00:00 2001 From: iamcheeseman <[hidden email]> Date: Fri, 16 Jan 2026 14:08:51 -0500 Subject: Rename enums to use Ada_Case --- src/phys/world.odin | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/phys/world.odin') diff --git a/src/phys/world.odin b/src/phys/world.odin index aacc8bc..3dbd052 100644 --- a/src/phys/world.odin +++ b/src/phys/world.odin @@ -236,30 +236,30 @@ update_body :: proc(h: Body_Handle) { if aabb_hori(rect, c_rect) { if b.vel.y > 0 { res_pos.y = c_rect.start.y - b.rect.size.y - b.rect.start.y - b.collisions += {.DOWN} + b.collisions += {.Down} } else { res_pos.y = c_rect.start.y + c_rect.size.y - b.rect.start.y - b.collisions += {.UP} + b.collisions += {.Up} } - b.collisions += {.VERTICAL} + b.collisions += {.Vertical} } else if aabb_vert(rect, c.rect) { if b.vel.x > 0 { res_pos.x = c_rect.start.x - b.rect.size.x - b.rect.start.x - b.collisions += {.LEFT} + b.collisions += {.Left} } else { res_pos.x = c_rect.start.x + c_rect.size.x - b.rect.start.x - b.collisions += {.RIGHT} + b.collisions += {.Right} } - b.collisions += {.HORIZONTAL} + b.collisions += {.Horizontal} } } } } - if .HORIZONTAL in b.collisions { + if .Horizontal in b.collisions { b.vel.x = 0 } - if .VERTICAL in b.collisions { + if .Vertical in b.collisions { b.vel.y = 0 } -- cgit v1.3-2-g0d8e