X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=fishladder.c;h=e024fca71987265a050db88d2a0be6b4f99317de;hb=f8e80fde4a84a6b990ec17c067b2a95847ae744c;hp=ac1efcfc19045eec2175c81e72359e0385b43d3e;hpb=75e990f8ee2499b86106a2634eb6f30db773cbc0;p=fishladder.git diff --git a/fishladder.c b/fishladder.c index ac1efcf..e024fca 100644 --- a/fishladder.c +++ b/fishladder.c @@ -597,6 +597,7 @@ void vg_update(void) else world.selected = -1; } + else world.selected = -1; // Simulation stop/start if( vg_get_button_down("go") ) @@ -611,6 +612,8 @@ void vg_update(void) world.io[i].recv_count = 0; vg_info( "Stopping simulation!\n" ); + + sfx_system_fadeout( &audio_system_balls_rolling, 44100 ); } else { @@ -638,7 +641,8 @@ void vg_update(void) { while( world.sim_frame < (int)((vg_time-world.sim_start)*2.0f) ) { - vg_info( "frame: %u\n", world.sim_frame ); + //vg_info( "frame: %u\n", world.sim_frame ); + sfx_set_playrnd( &audio_random, &audio_system_balls_switching, 0, 9 ); for( int i = 0; i < arrlen( world.io ); i ++ ) { @@ -1098,4 +1102,5 @@ void vg_render(void) void vg_ui(void) { //ui_test(); + sfx_internal_debug_overlay(); }