- 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 is missing with the background.
- Check the 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.
- Look at the condition inside the "when a pressed" block. Compare it with the correct example.
- Check the location of the Hunter sprite in the "make new sprite at" block. Compare it with the correct example.
- Look at the block that sets the Hunter sprite size. Compare the size value with the correct example.
- Inspect the "set countdown to" block. Compare the countdown value with the correct example.
- Check for any missing function calls inside the "when a pressed" block. Compare it with the correct example.
- Compare all the initial variable blocks in the "when a pressed" section with the correct example to find what else is missing.
Fix the Timer Logic
The timer isn't working correctly. Let's fix the countdown and game over logic.
- Look at the first "if" condition in the "at 1 seconds" block. Compare the value type with the correct example.
- Check the variable name used in the second "if" condition. Compare it carefully with the correct example.
- Look inside the "if countdown = 0" block. Compare the actions with the correct example to see 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 value with the correct example.
- Check the sprite costume selected for the bullet in the "when space pressed" code. Compare it with the correct example.
- Open and inspect the "shootBullet" behavior. 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 in the "when touches" header and the remove block. Compare the bullet sprite with the correct example.
- Check the block that changes sprite size. Compare which sprite is being resized with the correct example.
- Look at the variable name in the block that changes countdown. Compare it with the correct example.
- Inspect the block that updates the score when orenBirdHp reaches 0. Compare the operation with the correct example.
- Check the condition for spawning the green bird. Compare the boolean check 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 when the bullet touches the green bird. 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 bottom of the "if greenBirdHp = 0" block for spawning the next bird. Compare it with the correct example.
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 in the black bird collision event. Compare it with the correct example.
- Check for the logic that handles when the black bird is defeated. Compare it with the correct example.
Fix the Movement Controls
The player cannot move left or right. Let's rebuild the movement events.
- Look for the movement event blocks for moving left and right. Compare your workspace with the correct example and rebuild the missing 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