From 3e5e15a4923c752be703d7afb1214d5e5a767fad Mon Sep 17 00:00:00 2001 From: aura Date: Wed, 25 Feb 2026 08:58:39 +0100 Subject: finish wall collisions (clipvelocity), some utils --- src/game.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/game.cpp') 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 #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 }; -- cgit v1.2.3