2. Controls
(Based on the "Platform Behavior" in your code)
Move Left/Right: Arrow Keys (or A / D)
Jump: Up Arrow (or Spacebar / W)
Attack: (Note: Your code handles enemy death when HP <= 0, usually implying a collision or attack button you set up elsewhere).
3. Your Interface (HUD)
Look at the screen to track your status:
❤️ Health Bar: This shows your current life (Hp). If it runs out, you die!
💰 Coins: Shows how many coins you have collected versus the goal (e.g., 7 / 10).
🏆 Score: You earn points for every enemy you defeat. Try to get the high score!
4. Game Mechanics
🚩 Checkpoints
Don't worry about dying!
Look for Checkpoints (Flags/Markers) in the level.
Touch them to save your progress.
If you fall or lose all HP, you will respawn at the last Checkpoint you touched, not at the very beginning.