diff options
| author | aura <nw@moneybot.cc> | 2026-02-25 08:58:39 +0100 |
|---|---|---|
| committer | aura <nw@moneybot.cc> | 2026-02-25 08:58:39 +0100 |
| commit | 3e5e15a4923c752be703d7afb1214d5e5a767fad (patch) | |
| tree | d76049a556bd0fff581a018408faa6bed23b74eb /src/game.cpp | |
| parent | 25da8e01a0499c273357cb2feb2825b53e86795b (diff) | |
finish wall collisions (clipvelocity), some utils
Diffstat (limited to 'src/game.cpp')
| -rw-r--r-- | src/game.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/game.cpp b/src/game.cpp index 285f288..6202145 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -1,6 +1,8 @@ #include <unistd.h> #include "game.h" +#include "game/physics/movement.h" +#include "game/world/bsp.h" #include "game/world/draw.h" #include "render/gl_2d.h" #include "render/gl_3d.h" @@ -35,6 +37,8 @@ GAME_DATA* game_init( GL_DATA* gl ) { varl = vars_init(); objl = objl_init(); + gmove_init( game ); + #if IS_EDITOR game->editor = editor_create( game ); #else @@ -88,6 +92,7 @@ WORLD_MAP* game_load_map( GAME_DATA* game, const char* mapname ) { return 0; } + bsp_build_map( m ); objl_load_world( game, m ); game->state.map = m; return m; @@ -102,7 +107,8 @@ void game_unload_map( GAME_DATA* game ) { void game_draw( GAME_DATA* game ) { if( !objl->pl || !objl->world ) { - game_load_map( game, "../assets/maps/test.hmap" ); + dlog( "game_draw() : no world" ); + return; } VEC2 window = { 270.f, 25.f }; |
