diff options
| author | iamcheeseman <[email protected]> | 2026-03-03 18:47:08 -0500 |
|---|---|---|
| committer | iamcheeseman <[email protected]> | 2026-03-03 18:47:08 -0500 |
| commit | 423b35bf0537c3bfaea28e6d6d9b1ce59838306f (patch) | |
| tree | 24ad60908cae05868422b7cfda13fd9c52a0c85d /src/main.odin | |
| parent | 2a6e3157df8d0865d518a610bc4aa565a28e59c3 (diff) | |
Add the muntik
Diffstat (limited to 'src/main.odin')
| -rw-r--r-- | src/main.odin | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/main.odin b/src/main.odin index e1b13d5..4a059ad 100644 --- a/src/main.odin +++ b/src/main.odin @@ -31,11 +31,13 @@ state: struct { camera_target: Vec2, camera_pos: Vec2, last_fixed_update: f64, - prop_list: hm.Dynamic_Handle_Map(Prop, Handle), - wiggle_prop_list: hm.Dynamic_Handle_Map(Wiggle_Prop, Handle), - platform_list: hm.Dynamic_Handle_Map(Platform, Handle), + bullet_list: hm.Dynamic_Handle_Map(Bullet, Handle), + muntik_list: hm.Dynamic_Handle_Map(Muntik, Handle), + platform_list: hm.Dynamic_Handle_Map(Platform, Handle), + prop_list: hm.Dynamic_Handle_Map(Prop, Handle), rope_list: hm.Dynamic_Handle_Map(Rope, Handle), + wiggle_prop_list: hm.Dynamic_Handle_Map(Wiggle_Prop, Handle), } logger: log.Logger @@ -51,6 +53,8 @@ init :: proc() { init_keybinds() init_player() open_room(.Carrabassett0) + + make_muntik({300, 150}, 1) } frame :: proc() { @@ -154,8 +158,9 @@ frame :: proc() { cleanup :: proc() { deinit_player() - hm.dynamic_destroy(&state.platform_list) hm.dynamic_destroy(&state.bullet_list) + hm.dynamic_destroy(&state.muntik_list) + hm.dynamic_destroy(&state.platform_list) hm.dynamic_destroy(&state.prop_list) hm.dynamic_destroy(&state.wiggle_prop_list) |
