diff options
| author | iamcheeseman <[hidden email]> | 2026-01-14 19:21:33 -0500 |
|---|---|---|
| committer | iamcheeseman <[hidden email]> | 2026-01-14 19:21:33 -0500 |
| commit | d6f276be6bc1214c88cfc5346ceb7a5bea610638 (patch) | |
| tree | 9b1f4d1aa4a02f2855c14dea2bf440f58343cc0e /src/platform.odin | |
| parent | 1b8553bf96017795dcf081b78371c3b2a8d5ecc5 (diff) | |
i HATE physics bugs (i haven't fixed them yet)
Diffstat (limited to 'src/platform.odin')
| -rw-r--r-- | src/platform.odin | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/platform.odin b/src/platform.odin index fc50923..b155905 100644 --- a/src/platform.odin +++ b/src/platform.odin @@ -1,6 +1,5 @@ package demonchime -import "draw" import "phys" Platform :: struct { @@ -15,12 +14,12 @@ make_platform :: proc(rect: Rect) -> (Entity_Handle, ^Platform) { draw_platforms :: proc() { iter := iter_entity_list(state.platform_list) - draw.renderer.tint = {1, 0, 0, 0.25} + renderer.tint = {1, 0, 0, 0.25} for p in entity_list_iter(&iter) { body := phys.get_body(p.body) - draw.rect(cast(draw.Rect)body.rect) + draw_rect(cast(Rect)body.rect) } - draw.renderer.tint = {1, 1, 1, 1} + renderer.tint = {1, 1, 1, 1} } clear_platforms :: proc() { |
