more tweaks
[carveJwlIkooP6JGAAIwe30JlM.git] / skaterift.c
index 1d8e564359ef810e34532e131a876b568f417454..c036a50188582ff0805abe0ea6ba52c4587d5505 100644 (file)
@@ -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<vg_list_size(vg_input.controller_axises); i++ )
-      {
-         snprintf( buf, 40, "%.2f", vg_input.controller_axises[i] );
-         ui_text( (ui_px [2]){ 0, (i+3)*20 }, buf, 1, k_text_align_left );
-      }
-   }
-   else
-   {
-      ui_text( (ui_px [2]){ 0, 60 }, 
-            "Gamepad not ready", 1, k_text_align_left );
-   }
-#endif
 }