- [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:
2024-10-03 17:40:14 +02:00
parent 1251ef5110
commit 3919281080
11 changed files with 10 additions and 6 deletions

View File

@@ -19,7 +19,6 @@ actor{
pos: 8 0 0
size: 8 8 4
orient: ZP
flags: MOVING
movement: Z
}
@@ -31,7 +30,6 @@ actor{
pos: 8 56 0
size: 8 8 4
orient: ZP
flags: MOVING
movement: Z
}
@@ -43,7 +41,6 @@ actor{
pos: 40 56 0
size: 8 8 4
orient: ZP
flags: MOVING
movement: Z
}
@@ -55,7 +52,6 @@ actor{
pos: 24 0 0
size: 8 8 4
orient: ZP
flags: MOVING
movement: Z
}

BIN
data/snd_boost.wav Normal file

Binary file not shown.

BIN
data/snd_dead.wav Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
data/snd_logo.wav Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -632,6 +632,7 @@ namespace actor
}
if ((source->flags & FLAG_HERO) && (act->flags & FLAG_DISAPPEAR))
{
audio::playSound("snd_disappear.wav", SOUND_BASIC);
act = actor::replaceWithTemplate(act, "EXPLOSION");
act->name[0] = '_';
}
@@ -652,15 +653,18 @@ namespace actor
else if (act->name[0] == 'S')
{ // Es un skill
hero::giveSkill(&act->name[2]);
audio::playSound("snd_boost.wav", SOUND_BASIC);
}
else if (act->name[0] == 'P')
{
if (hero::getSkills() & SKILL_BAG)
{ // Es una part
hero::pickPart(&act->name[2]);
audio::playSound("snd_pick.wav", SOUND_BASIC);
}
else
{
audio::playSound("snd_push.wav", SOUND_BASIC);
return result;
}
}
@@ -1016,6 +1020,8 @@ namespace actor
stats::loseLive();
}
// [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");
act = actor::replaceWithTemplate(act, "EXPLOSION");
actor_t *act2 = actor::createFromTemplate("EXPLOSION");

View File

@@ -52,7 +52,7 @@ namespace modules
num_pixels++;
}
audio::playMusic("mus_logo.ogg");
audio::playSound("snd_logo.wav", SOUND_BASIC);
}
int steps=0;

View File

@@ -92,12 +92,14 @@ void game::init()
draw::init("The Pool", 320, 240, zoom, fullscreen);
console::init();
audio::loadSound("snd_logo.wav");
audio::loadSound("snd_walk.wav");
audio::loadSound("snd_push.wav");
audio::loadSound("snd_pick.wav");
audio::loadSound("snd_jump.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");