Skip to content

Commit

Permalink
wrap pitch
Browse files Browse the repository at this point in the history
  • Loading branch information
Geokureli authored Apr 5, 2024
1 parent 6f0c147 commit a8600aa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Arcade/FlxInvaders/source/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,9 @@ class PlayState extends FlxState
function stuffHitStuff(Object1:FlxObject, Object2:FlxObject):Void
{
var wallSound:FlxSound = FlxG.sound.play("assets/wall_break.wav");
#if FLX_PITCH
wallSound.pitch = FlxG.random.float(0.9, 1.1);
#end
Object1.kill();
Object2.kill();
}
Expand Down

0 comments on commit a8600aa

Please sign in to comment.