diff options
| author | Xander Swan <no email> | 2025-12-17 18:38:21 -0500 |
|---|---|---|
| committer | Xander Swan <no email> | 2025-12-17 18:38:21 -0500 |
| commit | ce4d64bd41937d7dff18ca607122188dc338d696 (patch) | |
| tree | ad5f7cbdffcc1478883cbca0ea7b8365b2108d0a /src/platform.odin | |
| parent | 87a7a010ecbe2cb99fedf44d0cac31e2efae86d5 (diff) | |
switch to raylib, update some structure
Diffstat (limited to 'src/platform.odin')
| -rw-r--r-- | src/platform.odin | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/platform.odin b/src/platform.odin index 150d96c..674e1a3 100644 --- a/src/platform.odin +++ b/src/platform.odin @@ -9,7 +9,7 @@ Platform :: struct { } make_platform :: proc(rect: Rect) -> (Entity_Handle, ^Platform) { - handle, body := phys.make_body(&state.physics_world, transmute(phys.Rect)rect) + handle, body := phys.make_body(transmute(phys.Rect)rect) return make_entity(&state.platform_list, Platform { body = handle, }) @@ -18,7 +18,7 @@ make_platform :: proc(rect: Rect) -> (Entity_Handle, ^Platform) { draw_platforms :: proc() { iter := iter_entity_list(state.platform_list) for p in entity_list_iter(&iter) { - body := phys.get_body(state.physics_world, p.body) - draw.rect(&state.renderer, cast(draw.Rect)body.rect) + body := phys.get_body(p.body) + draw.rect(cast(draw.Rect)body.rect) } } |
