Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
chosencharacters committed Dec 1, 2024
2 parents 036c245 + 1e95d8e commit 4ee2484
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Binary file added assets/sounds/present-open.ogg
Binary file not shown.
Binary file added assets/sounds/present_open.mp3
Binary file not shown.
6 changes: 3 additions & 3 deletions source/entities/Present.hx
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,9 @@ class Present extends Interactable
if (state != "OPENED")
{
sstate(OPENING);
new FlxTimer().start(1, function(tmr:FlxTimer)
new FlxTimer().start(0.24, (tmr:FlxTimer) -> SoundPlayer.sound(Paths.get('present-open.ogg')));
new FlxTimer().start(1.2, function(tmr:FlxTimer)
{
// TODO: sound effect
sstate(OPENED);
thumbnail.sstate("OPEN");
PlayState.self.openSubState(comic ? new ComicSubstate(content, true) : new ArtSubstate(content));
Expand All @@ -145,7 +145,7 @@ class Present extends Interactable
}
else
{
// TODO: sound effect
SoundPlayer.sound(Paths.get('present-open.ogg'));
PlayState.self.openSubState(comic ? new ComicSubstate(content, false) : new ArtSubstate(content));
}
}
Expand Down

0 comments on commit 4ee2484

Please sign in to comment.