- Click this link to remix the template: Remix Template
Remix the Template
Initialize the Game
The game doesn't start correctly. Compare your code with the example to fix the initialization.
- Look at the "when run" code block. Compare it with the correct example and see if you can spot what is missing with the background.
- Check the remaining initialization blocks under "when run". Compare them with the correct example to make sure the game state is set up properly.
Fix the Start Game Logic
The game doesn't start properly when pressing A. Let's fix the logic and variable setups.
- Look at the condition inside the "when a pressed" block. Compare it with the correct example and check the variable comparison.
- Check the position coordinates in the Hunter sprite creation block. Compare it with the correct example.
- Look at the block setting the Hunter sprite's size. Compare the size value with the correct example.
- Inspect the "set countdown to" block. Compare the countdown number with the correct example.
- Look for any missing bird spawning functions in the "when a pressed" block. Compare it with the correct example.
- Compare the variable initialization blocks at the bottom of the "when a pressed" block with the correct example.
Fix the Timer Logic
The timer isn't working correctly. Let's fix the countdown and game over sequence.
- Look at the first "if" condition inside the "at 1 seconds" block. Compare the value type with the correct example.
- Inspect the variable name used in the second "if" condition. Compare it carefully with the correct example.
- Check inside the "if countdown = 0" block. Compare the game over actions with the correct example to find what is missing.
Fix the Shooting Mechanism
The shooting mechanism isn't working correctly. Let's fix the space key event and the shoot behavior.
- Look at the condition inside the "when space pressed" block. Compare the variable and its value with the correct example.
- Check the sprite costume selected for the bullet in the "when space pressed" event. Compare it with the correct example.
- Open and inspect the "shootBullet" behavior definition. Compare the blocks inside it with the correct example.
Fix the Oren Bird Collision
The orange bird collision isn't behaving correctly. Let's fix the collision event.
- Look at the sprite selected for the bullet in the collision event and remove block. Compare it with the correct example.
- Check the block that modifies the sprite size on impact. Compare which sprite is being changed with the correct example.
- Inspect the logic handling what happens when the bird runs out of health. Compare it with the correct example.
Fix the Green Bird Collision
The green bird collision isn't behaving correctly. Let's fix the collision logic.
- Look at the variable being changed right after the collision sound. Compare it with the correct example.
- Inspect the block that updates the score inside the "if greenBirdHp = 0" block. Compare the operation with the correct example.
- Check the logic at the end of the green bird defeat sequence. Compare it with the correct example to see how the next bird is spawned.
Fix the Black Bird Collision
The black bird collision isn't behaving correctly. Let's fix the collision logic.
- Look at the speed reduction condition when the black bird is hit. Compare it with the correct example.
- Check for the code handling the black bird's defeat. Compare your blocks with the correct example to find what is missing.
Fix the Movement Controls
The player cannot move left or right. Let's rebuild the movement events.
- Look for the player movement controls in your workspace. Compare with the correct example and rebuild the missing movement blocks.
🎉 Congratulations!
Next challenge!
- Add a new type of golden bird that gives extra bonus points and bonus time
- Create a high-score display that persists between rounds
- Implement a power-up system where players can collect temporary speed boosts or multi-shot abilities