X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;ds=sidebyside;f=skaterift.c;h=2152fb1e65269db3a1047ad104de9284ab612691;hb=2c38f7b8f422374c4c46c5b636a7275b61876192;hp=14529f67e0e3ea20bd447cad1c72124993e95304;hpb=60b814f700fb47b6730d603dd85a5affad67272e;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/skaterift.c b/skaterift.c index 14529f6..2152fb1 100644 --- a/skaterift.c +++ b/skaterift.c @@ -57,6 +57,7 @@ #include "vg/vg_audio_dsp.h" #include "world_routes_ui.c" #include "particle.c" +#include "player_effects.c" static int k_tools_mode = 0; @@ -195,7 +196,7 @@ static void vg_load(void){ skaterift.replay.size = bytes; replay_clear( &skaterift.replay ); - particle_init( &particles_grind, 300 ); + particle_alloc( &particles_grind, 300 ); player_load_animation_reference( "models/ch_none.mdl" ); player_model_load( &localplayer.fallback_model, "models/ch_none.mdl" ); @@ -479,15 +480,16 @@ static void render_scene(void){ world_instance *view_world = get_view_world(); render_world( view_world, &skaterift.cam, 0, 0, 1, 1 ); +#if 0 particle_spawn( &particles_grind, localplayer.rb.co, (v3f){vg_randf64()*2.0f,vg_randf64()*3.0f,vg_randf64()*2.0f}, vg_randf64(), 0xff0000ff ); +#endif particle_system_update( &particles_grind, vg.time_delta ); //particle_system_debug( &particles_grind ); particle_system_prerender( &particles_grind ); particle_system_render( &particles_grind, &skaterift.cam ); - /* * render transition */