aboutsummaryrefslogtreecommitdiff
path: root/src/main.odin
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.odin')
-rw-r--r--src/main.odin13
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)