- Click this link to remix the template: Remix Template
Remix the Template
Initialize the Game
The game doesn't start correctly. Let's fix the initialization code.
- 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.
- Now look at the "set gameStarted to" block. Compare it with the correct example and see if the value is correct.
- Look at the "show title screen" block. Compare it with the correct example and check if the title and subtitle text match.
Fix the Start Game Logic
The game doesn't start when pressing A. Let's fix the logic.
- 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.
- Look at the Hunter sprite creation. Compare it with the correct example and check if the location and size are correct.
- Look for the "set countdown to" block. Compare it with the correct example and check if the value is correct.
- Look for the "spawnOrenBird" block. Compare it with the correct example and check if it's present.
Fix the Timer Logic
The timer isn't working correctly. Let's fix the countdown logic.
- Look at the "if countdown > 0" block. Compare it with the correct example and check if the comparison is correct.
- Look at the "if countdown = 0" block. Compare it with the correct example and check if the variable name is correct.
- Look for the "reset timer" block. Compare it with the correct example and check if it's present in the right place.
Fix the Shooting Mechanism
The shooting mechanism isn't working correctly. Let's fix the space key logic.
- 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.
- Look at the bullet sprite creation. Compare it with the correct example and check if the sprite and its properties are correct.
Fix the Oren Bird Collision
The Oren bird collision isn't working correctly. Let's fix the collision logic.
- 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.
- Look at the size change block. Compare it with the correct example and check if it's changing the right sprite size.
- Look at the "change coundown by 2" block. Compare it with the correct example and check if the variable name and operation are correct.
- Look at the "set score to 1" block. Compare it with the correct example and check if it's using the correct operation.
- Look at the "if hasGreenBird = true" block. Compare it with the correct example and check if the logic is correct.
Fix the Green Bird Collision
The green bird collision isn't working correctly. Let's fix the collision logic.
- 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.
- Look at the "set score to 1" block. Compare it with the correct example and check if it's using the correct operation.
- Look for the logic that spawns the black bird. Compare it with the correct example and check if the condition is correct.
Fix the Black Bird Collision
The black bird collision isn't working correctly. Let's fix the collision logic.
- 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.
- Look for the "if black bird hp = 0" block. Compare it with the correct example and check if it's present and correct.
Fix the Movement Controls
The movement controls aren't working. Let's rebuild them based on the correct example.
- 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.
🎉 Congratulations!
Next challenge!
- Add a high score system that saves the player's best score
- Create different difficulty levels with varying bird speeds
- Add power-ups that temporarily increase the player's shooting speed
- Implement a lives system where the player loses a life when a bird reaches the bottom