diff --git a/src/debug.odin b/src/debug.odin index 59ef601..942d5ce 100644 --- a/src/debug.odin +++ b/src/debug.odin @@ -65,17 +65,21 @@ debug_camera_update :: proc(debug: ^Debug) { debug.camera.target -= ((mouse_move * sensitivity) / debug.camera.zoom) } - if rl.IsKeyPressed(.F1) { + if rl.IsKeyPressed(.ONE) { debug.camera_active = !debug.camera_active } - if rl.IsKeyPressed(.F2) { + if rl.IsKeyPressed(.TWO) { debug.bounds_active = !debug.bounds_active } - if rl.IsKeyPressed(.F3) { + if rl.IsKeyPressed(.THREE) { debug.grid_active = !debug.grid_active } + + if rl.IsKeyPressed(.FOUR) { + debug.flow_field_active = !debug.flow_field_active + } } } diff --git a/src/enemy.odin b/src/enemy.odin index 9d78e7b..9a62357 100644 --- a/src/enemy.odin +++ b/src/enemy.odin @@ -60,7 +60,6 @@ get_spawn_rect :: proc(max_x, max_y: f32) -> rl.Rectangle { rand_point := rand.int_range(0, len(enemy_spawn_points)) rand_pos := enemy_spawn_points[rand_point] - return rand_pos } diff --git a/src/game.odin b/src/game.odin index bef2f7d..d5982de 100644 --- a/src/game.odin +++ b/src/game.odin @@ -1,5 +1,6 @@ package game +import "core:fmt" import "core:strings" import rl "vendor:raylib" @@ -69,7 +70,6 @@ game_update :: proc(game: ^Game) { // @ DEBUG debug_camera_update(&game.debug) - } game_draw :: proc(game: ^Game) { diff --git a/src/main.odin b/src/main.odin index bbe379d..85b868f 100644 --- a/src/main.odin +++ b/src/main.odin @@ -12,7 +12,7 @@ WINDOW_WIDTH :: 1920 WINDOW_HEIGHT :: 1080 GAME_WIDTH :: 480 GAME_HEIGHT :: 270 -MAX_ENEMIES :: 10 +MAX_ENEMIES :: 300 MAX_PROPS :: 64 TILE_SIZE :: 32