Small cleanup, config var change and debug binds

This commit is contained in:
2026-07-31 07:13:41 +02:00
parent 7c41e69dda
commit c4e5cdc9e6
4 changed files with 9 additions and 6 deletions
+7 -3
View File
@@ -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
}
}
}
-1
View File
@@ -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
}
+1 -1
View File
@@ -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) {
+1 -1
View File
@@ -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