From a1f44cc39275474b644cea63b30a553c71f235fc Mon Sep 17 00:00:00 2001 From: Cameron Taylor Date: Thu, 11 Jul 2024 15:10:29 -0400 Subject: [PATCH] pixel perfect camera shake --- source/PlayState.hx | 1 + 1 file changed, 1 insertion(+) diff --git a/source/PlayState.hx b/source/PlayState.hx index 5d3b35d..54d5f74 100644 --- a/source/PlayState.hx +++ b/source/PlayState.hx @@ -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 + "");