X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=skaterift.c;h=c036a50188582ff0805abe0ea6ba52c4587d5505;hb=cca3ca3a92572c77f34a99ffa2f3d9a69d029000;hp=1d8e564359ef810e34532e131a876b568f417454;hpb=249fe329869e43961d4e1d4e44f08c6225e195c7;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/skaterift.c b/skaterift.c index 1d8e564..c036a50 100644 --- a/skaterift.c +++ b/skaterift.c @@ -12,6 +12,7 @@ */ #define SR_NETWORKED +#define VG_DEVWINDOW #include "common.h" #include "conf.h" #include "steam.h" @@ -21,7 +22,6 @@ #include "font.h" - #include "player.h" static player_instance localplayer; VG_STATIC struct player_avatar localplayer_avatar; @@ -246,8 +246,8 @@ VG_STATIC void vg_load(void) /* 'systems' are completely loaded now */ /* load home world */ - //world_load( &world_global.worlds[0], "maps/mp_gridmap.mdl" ); - world_load( &world_global.worlds[0], "maps/mp_mtzero.mdl" ); + world_load( &world_global.worlds[0], "maps/mp_gridmap.mdl" ); + //world_load( &world_global.worlds[0], "maps/mp_mtzero.mdl" ); #if 0 world_load( &world_global.worlds[1], "maps/mp_gridmap.mdl" ); @@ -286,8 +286,7 @@ VG_STATIC void vg_update(void) player__pre_update( &localplayer ); world_update( get_active_world(), localplayer.rb.co ); - - audio_update(); + audio_ambient_sprites_update( get_active_world(), localplayer.rb.co ); } } @@ -605,42 +604,5 @@ VG_STATIC void vg_ui(void) world_instance *world = get_active_world(); menu_crap_ui(); - audio_debug_soundscapes(); render_view_framebuffer_ui(); - -#if 0 - player_physics_gui(); -#endif -} - -VG_STATIC void run_debug_info(void) -{ -#if 0 - char buf[40]; - - snprintf( buf, 40, "%.2fm/s", v3_length( player.rb.v ) ); - ui_text( (ui_px [2]){ 0, 0 }, buf, 1, k_text_align_left ); - - snprintf( buf, 40, "%.2f %.2f %.2f m/s", - player.phys.a[0], player.phys.a[1], player.phys.a[2] ); - ui_text( (ui_px [2]){ 0, 20 }, buf, 1, k_text_align_left ); - - snprintf( buf, 40, "pos %.2f %.2f %.2f", - player.phys.rb.co[0], player.phys.rb.co[1], player.phys.rb.co[2] ); - ui_text( (ui_px [2]){ 0, 40 }, buf, 1, k_text_align_left ); - - if( vg_input.controller_handle ) - { - for( int i=0; i