Small cleanup, config var change and debug binds
This commit is contained in:
+7
-3
@@ -65,17 +65,21 @@ debug_camera_update :: proc(debug: ^Debug) {
|
|||||||
debug.camera.target -= ((mouse_move * sensitivity) / debug.camera.zoom)
|
debug.camera.target -= ((mouse_move * sensitivity) / debug.camera.zoom)
|
||||||
}
|
}
|
||||||
|
|
||||||
if rl.IsKeyPressed(.F1) {
|
if rl.IsKeyPressed(.ONE) {
|
||||||
debug.camera_active = !debug.camera_active
|
debug.camera_active = !debug.camera_active
|
||||||
}
|
}
|
||||||
|
|
||||||
if rl.IsKeyPressed(.F2) {
|
if rl.IsKeyPressed(.TWO) {
|
||||||
debug.bounds_active = !debug.bounds_active
|
debug.bounds_active = !debug.bounds_active
|
||||||
}
|
}
|
||||||
|
|
||||||
if rl.IsKeyPressed(.F3) {
|
if rl.IsKeyPressed(.THREE) {
|
||||||
debug.grid_active = !debug.grid_active
|
debug.grid_active = !debug.grid_active
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if rl.IsKeyPressed(.FOUR) {
|
||||||
|
debug.flow_field_active = !debug.flow_field_active
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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_point := rand.int_range(0, len(enemy_spawn_points))
|
||||||
rand_pos := enemy_spawn_points[rand_point]
|
rand_pos := enemy_spawn_points[rand_point]
|
||||||
|
|
||||||
return rand_pos
|
return rand_pos
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,6 @@
|
|||||||
package game
|
package game
|
||||||
|
|
||||||
|
import "core:fmt"
|
||||||
import "core:strings"
|
import "core:strings"
|
||||||
import rl "vendor:raylib"
|
import rl "vendor:raylib"
|
||||||
|
|
||||||
@@ -69,7 +70,6 @@ game_update :: proc(game: ^Game) {
|
|||||||
|
|
||||||
// @ DEBUG
|
// @ DEBUG
|
||||||
debug_camera_update(&game.debug)
|
debug_camera_update(&game.debug)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
game_draw :: proc(game: ^Game) {
|
game_draw :: proc(game: ^Game) {
|
||||||
|
|||||||
+1
-1
@@ -12,7 +12,7 @@ WINDOW_WIDTH :: 1920
|
|||||||
WINDOW_HEIGHT :: 1080
|
WINDOW_HEIGHT :: 1080
|
||||||
GAME_WIDTH :: 480
|
GAME_WIDTH :: 480
|
||||||
GAME_HEIGHT :: 270
|
GAME_HEIGHT :: 270
|
||||||
MAX_ENEMIES :: 10
|
MAX_ENEMIES :: 300
|
||||||
MAX_PROPS :: 64
|
MAX_PROPS :: 64
|
||||||
TILE_SIZE :: 32
|
TILE_SIZE :: 32
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user