Skip to content

Commit

Permalink
(#10) shockey sounds and logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Difegue committed Feb 8, 2023
1 parent 2c4b63a commit 2a09f9e
Show file tree
Hide file tree
Showing 10 changed files with 223 additions and 42 deletions.
Binary file added LCDonald.Core/GameAssets/shockey/game_over.ogg
Binary file not shown.
Binary file not shown.
Binary file added LCDonald.Core/GameAssets/shockey/game_win.ogg
Binary file not shown.
Binary file added LCDonald.Core/GameAssets/shockey/hit.ogg
Binary file not shown.
Binary file added LCDonald.Core/GameAssets/shockey/level_up.ogg
Binary file not shown.
Binary file added LCDonald.Core/GameAssets/shockey/miss.ogg
Binary file not shown.
Binary file added LCDonald.Core/GameAssets/shockey/move.ogg
Binary file not shown.
Binary file added LCDonald.Core/GameAssets/shockey/score.ogg
Binary file not shown.
10 changes: 7 additions & 3 deletions LCDonald.Core/Games/ShadowBasketball.cs
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,9 @@ private void SetBallSlowdown(bool slowdown)
{
// This simulates a weird behavior in the OG game where the defenders move more slowly when a ball is out.
if (slowdown)
_customUpdateSpeed += 50;
_customUpdateSpeed += 150;
else
_customUpdateSpeed -= 50;
_customUpdateSpeed -= 150;
}

private bool _ballHalfStep = false;
Expand All @@ -229,7 +229,11 @@ protected override void UpdateCore()
{
QueueSound(new LCDGameSound("../common/hit.ogg"));
_goalsScored += 2;
_ballPosition = 0;

// hack to make the ball unshootable for 2 cycles
_ballPosition = -10;
_ballHalfStep = true;

SetBallSlowdown(false);
return;
}
Expand Down
Loading

0 comments on commit 2a09f9e

Please sign in to comment.