Updated capital ship destruction.
This commit is contained in:
parent
b26a5cecd5
commit
1afc9e65f0
|
@ -23,6 +23,7 @@ CC BY-NC-SA 3.0, with the following attribution: Copyright 2015-2016, Stephen J
|
||||||
|
|
||||||
### SOUND
|
### SOUND
|
||||||
|
|
||||||
|
* 000000_large_explosion.ogg - created by combining https://freesound.org/people/dkmedic/sounds/104447/ and https://freesound.org/people/CGEffex/sounds/100772/
|
||||||
* 18380__inferno__hvrl.ogg - hvrl, by inferno - https://freesound.org/people/inferno/sounds/18380/
|
* 18380__inferno__hvrl.ogg - hvrl, by inferno - https://freesound.org/people/inferno/sounds/18380/
|
||||||
* 18382__inferno__hvylas.ogg - hvylas, by inferno - https://freesound.org/people/inferno/sounds/18382/
|
* 18382__inferno__hvylas.ogg - hvylas, by inferno - https://freesound.org/people/inferno/sounds/18382/
|
||||||
* 42106__marcuslee__laser-wrath-4.ogg - Laser Wrath 4, by marcusless - https://freesound.org/people/marcuslee/sounds/42106/
|
* 42106__marcuslee__laser-wrath-4.ogg - Laser Wrath 4, by marcusless - https://freesound.org/people/marcuslee/sounds/42106/
|
||||||
|
|
Binary file not shown.
|
@ -302,6 +302,8 @@ static void die(void)
|
||||||
Entity *e;
|
Entity *e;
|
||||||
|
|
||||||
self->alive = ALIVE_DEAD;
|
self->alive = ALIVE_DEAD;
|
||||||
|
|
||||||
|
playBattleSound(SND_CAP_DEATH, self->x, self->y);
|
||||||
|
|
||||||
addLargeExplosion();
|
addLargeExplosion();
|
||||||
|
|
||||||
|
|
|
@ -366,6 +366,26 @@ void addLargeExplosion(void)
|
||||||
e->x -= e->size / 2;
|
e->x -= e->size / 2;
|
||||||
e->y -= e->size / 2;
|
e->y -= e->size / 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
e = malloc(sizeof(Effect));
|
||||||
|
|
||||||
|
memset(e, 0, sizeof(Effect));
|
||||||
|
battle.effectTail->next = e;
|
||||||
|
battle.effectTail = e;
|
||||||
|
|
||||||
|
e->type = EFFECT_HALO;
|
||||||
|
e->x = self->x;
|
||||||
|
e->y = self->y;
|
||||||
|
e->size = 256;
|
||||||
|
e->scaleAmount = 4;
|
||||||
|
e->texture = haloTexture;
|
||||||
|
|
||||||
|
e->r = 255;
|
||||||
|
e->g = 255;
|
||||||
|
e->b = 255;
|
||||||
|
e->a = 255;
|
||||||
|
|
||||||
|
e->health = 255;
|
||||||
}
|
}
|
||||||
|
|
||||||
void addMissileExplosion(Bullet *b)
|
void addMissileExplosion(Bullet *b)
|
||||||
|
|
|
@ -244,6 +244,7 @@ enum
|
||||||
SND_TROPHY,
|
SND_TROPHY,
|
||||||
SND_MINE_WARNING,
|
SND_MINE_WARNING,
|
||||||
SND_TIME_WARNING,
|
SND_TIME_WARNING,
|
||||||
|
SND_CAP_DEATH,
|
||||||
SND_GUI_CLICK,
|
SND_GUI_CLICK,
|
||||||
SND_GUI_SELECT,
|
SND_GUI_SELECT,
|
||||||
SND_GUI_CLOSE,
|
SND_GUI_CLOSE,
|
||||||
|
|
|
@ -121,6 +121,7 @@ static void loadSounds(void)
|
||||||
sounds[SND_TROPHY] = loadSound("sound/278142__ricemaster__effect-notify.ogg");
|
sounds[SND_TROPHY] = loadSound("sound/278142__ricemaster__effect-notify.ogg");
|
||||||
sounds[SND_MINE_WARNING] = loadSound("sound/254174__kwahmah-02__s.ogg");
|
sounds[SND_MINE_WARNING] = loadSound("sound/254174__kwahmah-02__s.ogg");
|
||||||
sounds[SND_TIME_WARNING] = loadSound("sound/320181__dland__hint.ogg");
|
sounds[SND_TIME_WARNING] = loadSound("sound/320181__dland__hint.ogg");
|
||||||
|
sounds[SND_CAP_DEATH] = loadSound("sound/000000_large_explosion.ogg");
|
||||||
|
|
||||||
sounds[SND_GUI_CLICK] = loadSound("sound/257786__xtrgamr__mouse-click.ogg");
|
sounds[SND_GUI_CLICK] = loadSound("sound/257786__xtrgamr__mouse-click.ogg");
|
||||||
sounds[SND_GUI_SELECT] = loadSound("sound/321104__nsstudios__blip2.ogg");
|
sounds[SND_GUI_SELECT] = loadSound("sound/321104__nsstudios__blip2.ogg");
|
||||||
|
|
Loading…
Reference in New Issue