On run release cursor

Author Mitja Felicijan <mitja.felicijan@gmail.com> 2026-04-28 09:32:11 +0200
Committer Mitja Felicijan <mitja.felicijan@gmail.com> 2026-04-28 09:32:11 +0200
Commit efca4291d76a79638d62751fe9bc5d516d3d6e6a (patch)
-rw-r--r-- .gitignore 1
-rw-r--r-- game.c 4
-rw-r--r-- main.c 2
-rw-r--r-- maps/demo1.map 13
4 files changed, 11 insertions, 9 deletions
diff --git a/.gitignore b/.gitignore
1
bin/
1
bin/
  
2
autosave/
diff --git a/game.c b/game.c
...
221
    
221
    
222
    LoadMap("maps/demo1.map");
222
    LoadMap("maps/demo1.map");
223
  
223
  
224
    game.cursor_captured = true;
224
    game.cursor_captured = false;
225
    DisableCursor();
225
    EnableCursor();
226
}
226
}
227
  
227
  
228
void UpdateGame(void) {
228
void UpdateGame(void) {
...
diff --git a/main.c b/main.c
...
4
#include "all.h"
4
#include "all.h"
5
  
5
  
6
int main(void) {
6
int main(void) {
7
    SetConfigFlags(FLAG_VSYNC_HINT);
7
    SetConfigFlags(FLAG_VSYNC_HINT | FLAG_WINDOW_RESIZABLE);
8
    InitWindow(1920, 1080, "Stalag");
8
    InitWindow(1920, 1080, "Stalag");
9
    SetTargetFPS(GetMonitorRefreshRate(GetCurrentMonitor()));
9
    SetTargetFPS(GetMonitorRefreshRate(GetCurrentMonitor()));
10
  
10
  
...
diff --git a/maps/demo1.map b/maps/demo1.map
...
32
}
32
}
33
// brush 3
33
// brush 3
34
{
34
{
35
( -16 272 0 ) ( -16 273 0 ) ( -16 272 1 ) environment/planks_012 0 0 0 1 1
35
( -32 336 112 ) ( -32 272 112 ) ( -32 272 16 ) environment/paintedwood_008a 0 16 0 1 1
36
( -16 272 0 ) ( -16 272 1 ) ( -15 272 0 ) environment/planks_012 0 0 0 1 1
36
( -32 272 112 ) ( 64 272 112 ) ( 64 272 16 ) environment/paintedwood_008a 16 16 0 1 1
37
( -16 272 0 ) ( -15 272 0 ) ( -16 273 0 ) environment/planks_012 0 0 0 1 1
37
( 64 272 16 ) ( 64 336 16 ) ( -32 336 16 ) environment/paintedwood_008a 16 0 0 1 1
38
( 80 336 64 ) ( 80 337 64 ) ( 81 336 64 ) environment/planks_012 0 0 0 1 1
38
( -32 336 112 ) ( 64 336 112 ) ( 64 272 112 ) environment/paintedwood_008a 16 0 0 1 1
39
( 80 336 16 ) ( 81 336 16 ) ( 80 336 17 ) environment/planks_012 0 0 0 1 1
39
( 64 336 16 ) ( 64 336 112 ) ( -32 336 112 ) environment/paintedwood_008a 16 16 0 1 1
40
( 80 336 16 ) ( 80 336 17 ) ( 80 337 16 ) environment/planks_012 0 0 0 1 1
40
( 64 272 112 ) ( 64 336 112 ) ( 64 336 16 ) environment/paintedwood_008a 0 16 0 1 1
41
}
41
}
42
}
42
}
43
// entity 1
43
// entity 1
44
{
44
{
45
"classname" "info_player_start"
45
"classname" "info_player_start"
46
"origin" "-112 -16 40"
46
"origin" "-112 -16 40"
  
47
"angle" "180"
47
}
48
}