aboutsummaryrefslogtreecommitdiff
path: root/src/main.odin
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.odin')
-rw-r--r--src/main.odin11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/main.odin b/src/main.odin
index 8bd1a77..05daf35 100644
--- a/src/main.odin
+++ b/src/main.odin
@@ -70,8 +70,9 @@ frame :: proc() {
dt := rl.GetFrameTime()
- update_player(dt)
- update_bullets(dt)
+ for cb in update_callbacks {
+ cb(dt)
+ }
state.camera.target = linalg.lerp(
state.camera.target,
@@ -92,9 +93,11 @@ frame :: proc() {
})
renderer.tint = {1, 1, 1, 1}
- draw_player()
+ for cb in draw_callbacks {
+ cb()
+ }
+
draw_room(current_room.id)
- draw_bullets()
rl.DrawRectangleGradientH(
0,