From 1ebeadbad7f7ee757096320d9c5daf3b55373f6a Mon Sep 17 00:00:00 2001 From: iamcheeseman <[hidden email]> Date: Thu, 15 Jan 2026 12:13:41 -0500 Subject: Bullets! And buncha physics fixes! And more! --- src/platform.odin | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/platform.odin') diff --git a/src/platform.odin b/src/platform.odin index b155905..a974811 100644 --- a/src/platform.odin +++ b/src/platform.odin @@ -8,16 +8,16 @@ Platform :: struct { } make_platform :: proc(rect: Rect) -> (Entity_Handle, ^Platform) { - handle, body := phys.make_body(transmute(phys.Rect)rect) - return make_entity(&state.platform_list, Platform{body = handle}) + body := phys.make_body(transmute(phys.Rect)rect) + return make_entity(&state.platform_list, Platform{body = body}) } draw_platforms :: proc() { iter := iter_entity_list(state.platform_list) renderer.tint = {1, 0, 0, 0.25} for p in entity_list_iter(&iter) { - body := phys.get_body(p.body) - draw_rect(cast(Rect)body.rect) + rect := phys.get_rect(p.body) + draw_rect(cast(Rect)rect) } renderer.tint = {1, 1, 1, 1} } -- cgit v1.3-2-g0d8e