{ .path = "sound/ui_ding.ogg" },
};
+audio_clip audio_challenge[] = {
+ { .path = "sound/objective0.ogg" },
+ { .path = "sound/objective1.ogg" },
+ { .path = "sound/objective_win.ogg" },
+ { .path = "sound/ui_good.ogg" },
+ { .path = "sound/ui_inf.ogg" },
+ { .path = "sound/ui_ok.ogg" },
+ { .path = "sound/objective_fail.ogg" }
+};
+
VG_STATIC void audio_init(void)
{
audio_clip_loadn( audio_board, vg_list_size(audio_board), NULL );
vg_list_size(audio_footsteps_wood), NULL );
audio_clip_loadn( audio_rewind, vg_list_size(audio_rewind), NULL );
audio_clip_loadn( audio_ui, vg_list_size(audio_ui), NULL );
+ audio_clip_loadn( audio_challenge, vg_list_size(audio_challenge), NULL );
audio_lock();
audio_set_lfo_wave( 0, k_lfo_polynomial_bipolar, 80.0f );
#include "entity.h"
#include "input.h"
#include "gui.h"
+#include "audio.h"
VG_STATIC void ent_challenge_call( world_instance *world, ent_call *call ){
u32 index = mdl_entity_id_id( call->id );
next = objective->id_next;
v3_fill( objective->transform.s, 1.0f );
}
+ audio_oneshot( &audio_challenge[5], 1.0f, 0.0f );
return;
}
}
if( button_down( k_srbind_mback ) ){
world_static.challenge_target = NULL;
world_entity_unfocus();
+ audio_oneshot( &audio_challenge[4], 1.0f, 0.0f );
return;
}
}
#include "world.h"
#include "world_load.h"
#include "entity.h"
+#include "audio.h"
VG_STATIC void ent_objective_pass( world_instance *world,
ent_objective *objective ){
if( next->filter & k_ent_objective_filter_passthrough )
ent_objective_pass( world, next );
- else
+ else{
vg_info( "pass challenge point\n" );
+ audio_oneshot_3d( &audio_challenge[0], localplayer.rb.co,
+ 30.0f, 1.0f );
+ }
}
else {
- vg_success( "NYU Film school graduate SUCKAH\n" );
+ vg_success( "challenge win\n" );
+ audio_oneshot( &audio_challenge[2], 1.0f, 0.0f );
world_static.challenge_target = NULL;
world_static.challenge_timer = 0.0f;
ent_objective_pass( world, objective );
}
else {
- vg_error( "womp womp\n" );
+ audio_oneshot_3d( &audio_challenge[6], localplayer.rb.co,
+ 30.0f, 1.0f );
+ vg_error( "challenge fialed\n" );
world_static.challenge_target = NULL;
world_static.challenge_timer = 0.0f;
}