diff options
| author | iamcheeseman <[hidden email]> | 2026-01-17 13:10:38 -0500 |
|---|---|---|
| committer | iamcheeseman <[hidden email]> | 2026-01-17 13:10:47 -0500 |
| commit | eee06361048e34f6ca21348e8776636da95ef3f8 (patch) | |
| tree | 7db94de6a1adeac5baf462c963ba53e6fcc31856 /src/main.odin | |
| parent | f60ae3ed7160a4f3c523b2f56ad06dfc8319aca4 (diff) | |
add props
Diffstat (limited to 'src/main.odin')
| -rw-r--r-- | src/main.odin | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main.odin b/src/main.odin index 6e299c8..1d3de1a 100644 --- a/src/main.odin +++ b/src/main.odin @@ -26,6 +26,8 @@ state: struct { debug_mode: bool, camera_target: Vec2, camera: rl.Camera2D, + prop_list: Entity_List(Prop), + wiggle_prop_list: Entity_List(Wiggle_Prop), platform_list: Entity_List(Platform), bullet_list: Entity_List(Bullet), } @@ -86,7 +88,7 @@ frame :: proc() { cam.target = linalg.round(cam.target) rl.BeginMode2D(cam) - renderer.tint = {0.2, 0.2, 0.2, 1} + renderer.tint = get_room(current_room.id).background_color draw_rect({ {0, 0}, {f32(current_room.width), f32(current_room.height)}, @@ -96,7 +98,6 @@ frame :: proc() { for cb in draw_callbacks { cb() } - draw_room(current_room.id) rl.DrawRectangleGradientH( @@ -165,6 +166,8 @@ cleanup :: proc() { deinit_player() delete_entity_list(state.platform_list) delete_entity_list(state.bullet_list) + delete_entity_list(state.prop_list) + delete_entity_list(state.wiggle_prop_list) phys.destroy_world() } |
