- [NEW] Só del logo

- [NEW] Só de quan mor
- [NEW] Só de quan agafa trastos
- [NEW] Só de quan desapareix un bloc
- [FIX] Ruido en una habitació
This commit is contained in:
JailDoctor committed 2024-10-03 17:40:14 +02:00
1 parent 1251ef5110
commit 3919281080
11 files changed
+10 -6

No files matched your search

-4
View File
@@ -19,7 +19,6 @@ actor{
pos: 8 0 0 pos: 8 0 0
size: 8 8 4 size: 8 8 4
orient: ZP orient: ZP
flags: MOVING
movement: Z movement: Z
} }
@@ -31,7 +30,6 @@ actor{
pos: 8 56 0 pos: 8 56 0
size: 8 8 4 size: 8 8 4
orient: ZP orient: ZP
flags: MOVING
movement: Z movement: Z
} }
@@ -43,7 +41,6 @@ actor{
pos: 40 56 0 pos: 40 56 0
size: 8 8 4 size: 8 8 4
orient: ZP orient: ZP
flags: MOVING
movement: Z movement: Z
} }
@@ -55,7 +52,6 @@ actor{
pos: 24 0 0 pos: 24 0 0
size: 8 8 4 size: 8 8 4
orient: ZP orient: ZP
flags: MOVING
movement: Z movement: Z
} }
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
+6
View File
@@ -632,6 +632,7 @@ namespace actor
} }
if ((source->flags & FLAG_HERO) && (act->flags & FLAG_DISAPPEAR)) if ((source->flags & FLAG_HERO) && (act->flags & FLAG_DISAPPEAR))
{ {
audio::playSound("snd_disappear.wav", SOUND_BASIC);
act = actor::replaceWithTemplate(act, "EXPLOSION"); act = actor::replaceWithTemplate(act, "EXPLOSION");
act->name[0] = '_'; act->name[0] = '_';
} }
@@ -652,15 +653,18 @@ namespace actor
else if (act->name[0] == 'S') else if (act->name[0] == 'S')
{ // Es un skill { // Es un skill
hero::giveSkill(&act->name[2]); hero::giveSkill(&act->name[2]);
audio::playSound("snd_boost.wav", SOUND_BASIC);
} }
else if (act->name[0] == 'P') else if (act->name[0] == 'P')
{ {
if (hero::getSkills() & SKILL_BAG) if (hero::getSkills() & SKILL_BAG)
{ // Es una part { // Es una part
hero::pickPart(&act->name[2]); hero::pickPart(&act->name[2]);
audio::playSound("snd_pick.wav", SOUND_BASIC);
} }
else else
{ {
audio::playSound("snd_push.wav", SOUND_BASIC);
return result; return result;
} }
} }
@@ -1016,6 +1020,8 @@ namespace actor
stats::loseLive(); stats::loseLive();
} }
// [TODO] If lives == 0 anar a la pantalla de game-over o cat's life // [TODO] If lives == 0 anar a la pantalla de game-over o cat's life
audio::pauseChannel(walk_channel);
audio::playSound("snd_dead.wav", SOUND_BASIC);
actor_t *act = actor::find("HERO"); actor_t *act = actor::find("HERO");
act = actor::replaceWithTemplate(act, "EXPLOSION"); act = actor::replaceWithTemplate(act, "EXPLOSION");
actor_t *act2 = actor::createFromTemplate("EXPLOSION"); actor_t *act2 = actor::createFromTemplate("EXPLOSION");
+1 -1
View File
@@ -52,7 +52,7 @@ namespace modules
num_pixels++; num_pixels++;
} }
audio::playMusic("mus_logo.ogg"); audio::playSound("snd_logo.wav", SOUND_BASIC);
} }
int steps=0; int steps=0;
+3 -1
View File
@@ -92,12 +92,14 @@ void game::init()
draw::init("The Pool", 320, 240, zoom, fullscreen); draw::init("The Pool", 320, 240, zoom, fullscreen);
console::init(); console::init();
audio::loadSound("snd_logo.wav");
audio::loadSound("snd_walk.wav"); audio::loadSound("snd_walk.wav");
audio::loadSound("snd_push.wav"); audio::loadSound("snd_push.wav");
audio::loadSound("snd_pick.wav"); audio::loadSound("snd_pick.wav");
audio::loadSound("snd_jump.wav"); audio::loadSound("snd_jump.wav");
audio::loadSound("snd_disappear.wav"); audio::loadSound("snd_disappear.wav");
audio::loadSound("snd_fall.wav"); audio::loadSound("snd_dead.wav");
audio::loadSound("snd_boost.wav");
} }
draw::loadPalette("test.gif"); draw::loadPalette("test.gif");