diff options
| author | iamcheeseman <[hidden email]> | 2026-01-15 12:13:41 -0500 |
|---|---|---|
| committer | iamcheeseman <[hidden email]> | 2026-01-15 12:13:41 -0500 |
| commit | 1ebeadbad7f7ee757096320d9c5daf3b55373f6a (patch) | |
| tree | ffa9ce9d9df6f93970c488441f0a74c8bfcc9022 /src/platform.odin | |
| parent | d6f276be6bc1214c88cfc5346ceb7a5bea610638 (diff) | |
Bullets! And buncha physics fixes! And more!
Diffstat (limited to 'src/platform.odin')
| -rw-r--r-- | src/platform.odin | 8 |
1 files changed, 4 insertions, 4 deletions
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} } |
