From 59624313e01ef4269f2ca27babe522d407e200b0 Mon Sep 17 00:00:00 2001 From: Colin Noga Date: Fri, 9 Mar 2012 01:40:14 -0600 Subject: Redid all the boss and custom sprite junk, effect list, saved 25 kb - but bosses break --- src/effectvideo.cpp | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) (limited to 'src/effectvideo.cpp') diff --git a/src/effectvideo.cpp b/src/effectvideo.cpp index 3aa43fb..6264142 100644 --- a/src/effectvideo.cpp +++ b/src/effectvideo.cpp @@ -1,12 +1,11 @@ #include #include #include -#include "player.h" -#include "effects.h" #include extern "C" void *PlaySoundAsync(dEn_c *, int soundID); +extern "C" bool SpawnEffect(const char*, int, Vec*, S16Vec*, Vec*); class EffectVideo : public dEn_c { @@ -76,7 +75,28 @@ int EffectVideo::onExecute() { } else { // Plays an Effect - CreateEffect(&this->pos, &(S16Vec){0,0,0}, &(Vec){this->scale, this->scale, this->scale}, this->effect); + + switch (this->effect) { + + case 43: + SpawnEffect("Wm_ob_cmnspark", 0, &this->pos, &(S16Vec){0,0,0}, &(Vec){this->scale, this->scale, this->scale}); + break; + + case 177: + SpawnEffect("Wm_ob_greencoinkira_b", 0, &this->pos, &(S16Vec){0,0,0}, &(Vec){this->scale, this->scale, this->scale}); + break; + + case 193: + SpawnEffect("Wm_mr_electricshock_biri01_s", 0, &this->pos, &(S16Vec){0,0,0}, &(Vec){this->scale, this->scale, this->scale}); + break; + + case 365: + SpawnEffect("Wm_en_kuribobigsplit", 0, &this->pos, &(S16Vec){0,0,0}, &(Vec){this->scale, this->scale, this->scale}); + break; + + default: + break; + } } this->timer = 0; -- cgit v1.2.3