From efca4291d76a79638d62751fe9bc5d516d3d6e6a Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Tue, 28 Apr 2026 09:32:11 +0200 Subject: On run release cursor --- .gitignore | 1 + game.c | 4 ++-- main.c | 2 +- maps/demo1.map | 13 +++++++------ 4 files changed, 11 insertions(+), 9 deletions(-) diff --git a/.gitignore b/.gitignore index e660fd9..822a90b 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ bin/ +autosave/ diff --git a/game.c b/game.c index db04ff7..7166c70 100644 --- a/game.c +++ b/game.c @@ -221,8 +221,8 @@ void InitGame(void) { LoadMap("maps/demo1.map"); - game.cursor_captured = true; - DisableCursor(); + game.cursor_captured = false; + EnableCursor(); } void UpdateGame(void) { diff --git a/main.c b/main.c index bcacb47..4566a4f 100644 --- a/main.c +++ b/main.c @@ -4,7 +4,7 @@ #include "all.h" int main(void) { - SetConfigFlags(FLAG_VSYNC_HINT); + SetConfigFlags(FLAG_VSYNC_HINT | FLAG_WINDOW_RESIZABLE); InitWindow(1920, 1080, "Stalag"); SetTargetFPS(GetMonitorRefreshRate(GetCurrentMonitor())); diff --git a/maps/demo1.map b/maps/demo1.map index e2e286f..f7f73f7 100644 --- a/maps/demo1.map +++ b/maps/demo1.map @@ -32,16 +32,17 @@ } // brush 3 { -( -16 272 0 ) ( -16 273 0 ) ( -16 272 1 ) environment/planks_012 0 0 0 1 1 -( -16 272 0 ) ( -16 272 1 ) ( -15 272 0 ) environment/planks_012 0 0 0 1 1 -( -16 272 0 ) ( -15 272 0 ) ( -16 273 0 ) environment/planks_012 0 0 0 1 1 -( 80 336 64 ) ( 80 337 64 ) ( 81 336 64 ) environment/planks_012 0 0 0 1 1 -( 80 336 16 ) ( 81 336 16 ) ( 80 336 17 ) environment/planks_012 0 0 0 1 1 -( 80 336 16 ) ( 80 336 17 ) ( 80 337 16 ) environment/planks_012 0 0 0 1 1 +( -32 336 112 ) ( -32 272 112 ) ( -32 272 16 ) environment/paintedwood_008a 0 16 0 1 1 +( -32 272 112 ) ( 64 272 112 ) ( 64 272 16 ) environment/paintedwood_008a 16 16 0 1 1 +( 64 272 16 ) ( 64 336 16 ) ( -32 336 16 ) environment/paintedwood_008a 16 0 0 1 1 +( -32 336 112 ) ( 64 336 112 ) ( 64 272 112 ) environment/paintedwood_008a 16 0 0 1 1 +( 64 336 16 ) ( 64 336 112 ) ( -32 336 112 ) environment/paintedwood_008a 16 16 0 1 1 +( 64 272 112 ) ( 64 336 112 ) ( 64 336 16 ) environment/paintedwood_008a 0 16 0 1 1 } } // entity 1 { "classname" "info_player_start" "origin" "-112 -16 40" +"angle" "180" } -- cgit v1.2.3