diff --git a/assets/images/button.png b/assets/images/button.png index e131bf3..d5f54a9 100644 Binary files a/assets/images/button.png and b/assets/images/button.png differ diff --git a/assets/images/yellow-button.png b/assets/images/yellow-button.png index 8dbc739..5d7547c 100644 Binary files a/assets/images/yellow-button.png and b/assets/images/yellow-button.png differ diff --git a/source/HitButton.hx b/source/HitButton.hx index ca34192..9081553 100644 --- a/source/HitButton.hx +++ b/source/HitButton.hx @@ -20,12 +20,10 @@ class HitButton extends FlxSprite { super(x, y); trace('timer ' + timer); if (timer == 0) { - loadGraphic("assets/images/yellow-button.png", true, 32, 20); + loadGraphic("assets/images/yellow-button.png", true, 64, 40); } else { - loadGraphic("assets/images/button.png", true, 32, 20); + loadGraphic("assets/images/button.png", true, 64, 40); } - this.scale.set(2, 2); - this.updateHitbox(); this.animation.add("unpressed", [0], 0, false); this.animation.add("pressed", [1], 0, false); this.animation.play("unpressed"); diff --git a/source/Level.hx b/source/Level.hx index 93345d7..0a8ec4c 100644 --- a/source/Level.hx +++ b/source/Level.hx @@ -120,7 +120,7 @@ class Level { // stage 1 [[500-50, 70]], // stage 2 - [[-9, cast(FlxG.height / 2, Int) - 30]], + [[-6, cast(FlxG.height / 2, Int) -30]], // stage 3 [[cast(FlxG.width / 2, Int) - 30, 5], [-9, cast(FlxG.height / 2, Int) - 30], [cast(FlxG.width / 2, Int) - 30, FlxG.height - 43]] ]; diff --git a/source/PlayState.hx b/source/PlayState.hx index 276fa10..4c00772 100644 --- a/source/PlayState.hx +++ b/source/PlayState.hx @@ -513,9 +513,7 @@ class PlayState extends FlxState } } for (button in activeButtons) { - trace ("button present in stage " + this.curStage); if (FlxG.pixelPerfectOverlap(knife, button, 0)) { - trace("hit detected"); unstuckKnives.remove(knife); knife.stuck = true; knife.body.type = BodyType.STATIC;