diff --git a/.gitignore b/.gitignore index e660fd93d3196215552065b1e63bf6a2f393ed86..822a90b331d3bcbe3d80be91475b702d8b9fda83 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ bin/ +autosave/ diff --git a/game.c b/game.c index db04ff71cefe28deeafae492882b6673da814b59..7166c70e54dce3af40b572c01e9c28bc11320e74 100644 --- a/game.c +++ b/game.c @@ -221,8 +221,8 @@ game.world_model_count = 0; 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 bcacb478ece4a74efaa67ba70a50eb22b5005de4..4566a4f689e210812be998637249b73e54898489 100644 --- a/main.c +++ b/main.c @@ -4,7 +4,7 @@ #define VFS_IMPLEMENTATION #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 e2e286f145b3a008c4d9b2943510406e63127ced..f7f73f7d196294aaface85b3e1b502d4517548d7 100644 --- a/maps/demo1.map +++ b/maps/demo1.map @@ -32,16 +32,17 @@ ( -16 112 16 ) ( -16 112 17 ) ( -16 113 16 ) environment/planks_012 16 0 0 1 1 } // 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" }