diff options
Diffstat (limited to 'src/main.odin')
| -rw-r--r-- | src/main.odin | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main.odin b/src/main.odin index 506256c..6b7fe26 100644 --- a/src/main.odin +++ b/src/main.odin @@ -4,6 +4,7 @@ import "base:runtime" import "core:fmt" import "core:log" +import "core:math/rand" import "core:mem" import hm "core:container/handle_map" @@ -22,7 +23,7 @@ state: struct { camera_target: Vec2, camera_pos: Vec2, last_fixed_update: f64, - + enemy_list: [dynamic]^Enemy, bullet_list: hm.Dynamic_Handle_Map(Bullet, Handle), platform_list: hm.Dynamic_Handle_Map(Platform, Handle), @@ -31,6 +32,7 @@ state: struct { wiggle_prop_list: hm.Dynamic_Handle_Map(Wiggle_Prop, Handle), } +rng: rand.Generator logger: log.Logger init :: proc() { @@ -41,6 +43,8 @@ init :: proc() { renderer_backend = .OpenGL, }) + context.random_generator = rand.xoshiro256_random_generator() + init_keybinds() init_player() open_room(.Carrabassett0) |
