Skip to content

Commit

Permalink
pixel perfect camera shake
Browse files Browse the repository at this point in the history
  • Loading branch information
ninjamuffin99 committed Jul 11, 2024
1 parent 7802c3f commit a1f44cc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ class PlayState extends FlxState
_distText.width = 80;
add(_distText);

FlxG.camera.pixelPerfectShake = true;
FlxG.camera.shake(0.01, 3, null, true, Y);
FlxG.sound.play("assets/sounds/crumble" + Main.SOUND_EXT + "");

Expand Down

0 comments on commit a1f44cc

Please sign in to comment.