Remix the Template

Goal: Create a copy of the template project to start debugging.
  1. Click this link to remix the template: Remix Template

Initialize the Game

Goal: Fix the startup code to properly initialize the game

The game doesn't start correctly. Let's fix the initialization code.

  1. Look at the "when run" code block. Compare it with the correct example and see if you can spot what's wrong with the background setting.
  2. Now look at the "set gameStarted to" block. Compare it with the correct example and see if the value is correct.
  3. Look at the "show title screen" block. Compare it with the correct example and check if the title and subtitle text match.
Initialize Game

Fix the Start Game Logic

Goal: Correct the "when A pressed" code to start the game properly

The game doesn't start when pressing A. Let's fix the logic.

  1. Look at the "when A pressed" code block. Compare it with the correct example and see if you can spot what's wrong with the gameStarted variable.
  2. Look at the Hunter sprite creation. Compare it with the correct example and check if the location and size are correct.
  3. Look for the "set countdown to" block. Compare it with the correct example and check if the value is correct.
  4. Look for the "spawnOrenBird" block. Compare it with the correct example and check if it's present.
Start Game Logic

Fix the Timer Logic

Goal: Correct the timer logic to count down properly

The timer isn't working correctly. Let's fix the countdown logic.

  1. Look at the "if countdown > 0" block. Compare it with the correct example and check if the comparison is correct.
  2. Look at the "if countdown = 0" block. Compare it with the correct example and check if the variable name is correct.
  3. Look for the "reset timer" block. Compare it with the correct example and check if it's present in the right place.
Timer Logic

Fix the Shooting Mechanism

Goal: Correct the space key logic to shoot bullets properly

The shooting mechanism isn't working correctly. Let's fix the space key logic.

  1. Look at the "when space pressed" code block. Compare it with the correct example and see if you can spot what's wrong with the hasGameStarted variable.
  2. Look at the bullet sprite creation. Compare it with the correct example and check if the sprite and its properties are correct.
Shooting Mechanism

Fix the Oren Bird Collision

Goal: Correct the collision logic for the Oren bird

The Oren bird collision isn't working correctly. Let's fix the collision logic.

  1. Look at the "when bullet touches orenBird" code block. Compare it with the correct example and see if you can spot what's wrong with the bullet sprite.
  2. Look at the size change block. Compare it with the correct example and check if it's changing the right sprite size.
  3. Look at the "change coundown by 2" block. Compare it with the correct example and check if the variable name and operation are correct.
  4. Look at the "set score to 1" block. Compare it with the correct example and check if it's using the correct operation.
  5. Look at the "if hasGreenBird = true" block. Compare it with the correct example and check if the logic is correct.
Oren Bird Collision

Fix the Green Bird Collision

Goal: Correct the collision logic for the green bird

The green bird collision isn't working correctly. Let's fix the collision logic.

  1. Look at the "when bullet touches greenBird" code block. Compare it with the correct example and see if you can spot what's wrong with the hp change operation.
  2. Look at the "set score to 1" block. Compare it with the correct example and check if it's using the correct operation.
  3. Look for the logic that spawns the black bird. Compare it with the correct example and check if the condition is correct.
Green Bird Collision

Fix the Black Bird Collision

Goal: Correct the collision logic for the black bird

The black bird collision isn't working correctly. Let's fix the collision logic.

  1. Look at the "when bullet touches blackBird" code block. Compare it with the correct example and see if you can spot what's wrong with the speed reduction logic.
  2. Look for the "if black bird hp = 0" block. Compare it with the correct example and check if it's present and correct.
Black Bird Collision

Fix the Movement Controls

Goal: Rebuild the left and right movement controls

The movement controls aren't working. Let's rebuild them based on the correct example.

  1. Look for the "when left pressed" and "when right pressed" code blocks. Compare them with the correct example and check if they're present and correct.
Movement Controls

🎉 Congratulations!

Great job! You've fixed all the issues in the Bird Hunter game. The game should now work correctly!
🏆

Next challenge!

  1. Add a high score system that saves the player's best score
  2. Create different difficulty levels with varying bird speeds
  3. Add power-ups that temporarily increase the player's shooting speed
  4. Implement a lives system where the player loses a life when a bird reaches the bottom
🚀
×
Zoomed view