• Sign in
  • Home
  • Online Classes
  • Instructors
  • Tutorials
☰
  • Register
  • Sign in
  • Online Classes
  • Instructors
  • Tutorials
1. Create your castle sprite 2. Create your ground sprite 3. Pick an enemy sprite 4. Adjust the size and placement of your sprites 5. Create enemy army 6. Create a castle health variable 7. Group Discussion - Understanding Your Code (c) 8. Enemies take away Castle Health 9. Add Video Sensing extension 10. Test motion detection 11. Use video sensing to push away enemies 12. Show damage to castle 13. End game when castle health gets to 0 14. Play your game! 15. Save your project!

Project 441: Protect The Castle

13. End game when castle health gets to 0

Once the Castle Health reaches 0, stop all the code to end the game.
Starting point file for this challenge

Your goal

Hint: show steps

Steps

1. Wait until Castle Health is at 0

Hint: show details
Using the same blocks you used in step 12, wait until Castle Health is less than 1.
Hint: show image

2. Stop all code

Hint: show details
End the game with a "stop all" block in the "Control" tab.
Hint: show image

zoomed challenge step image

Provide your email address for immediate project access

Check your email for instructions on how to create a full DA account

Contact

[email protected]

Programs

  • Online Classes
  • Schools and Partnerships
  • Curriculum

About

  • Instruction
  • Terms & Conditions
  • Team
  • Careers
  • Company

Other links

  • Register
  • Blog
  • Press

Tools

  • Computer coding language selector for kids
© Copyright 2015-2020 Digital Education Adventures, Inc. All rights reserved.
Facebook Yelp Youtube Instagram Pinterest Twitter