Once I got hit by an enemy and was sent to the flashing-state, my character clipped inside a wall and got stuck. Does the wounded flashing state remove some wall collisions or use a different sprite that has a different origin point, which makes the player go inside walls? I got hit again and something flashed by and I was sent to the main menu. So no game over screen?? Or if there is, you should put a timer on it that disables input for a few seconds so that the player doesn't accidentially skip the screen. Cool game otherwise. Would be easy to transform it into a Zelda-like RPG. Keep learning! :)