- Game Loops
- Collision Detection
- Win/Loss Conditions
16 Programming Activities
1. What Are Game Loops?
Learn about the structure of a simple game loop, including the update and draw methods and how to choose a desired framerate.
2. Game Setup and Concept
Find out about the game you'll be making and start by setting up the game loop.
3. Game Obstacle
Create a sprite object that will be an obstacle/enemy in the game and program its behavior.
4. Game Hero
Create a sprite object to represent the player's character in the game.
5. What Is Collision Detection?
6. First Contact
Add collision detection to the game to detect if the hero is touching the obstacle.
7. Finders Keepers
Add collision detection to the game to make the treasure collectible by the hero.
8. How to Keep Score?
Find out how to use variables to keep track of a game score.
9. Score Keeper
Add score tracking to your game and display the score on the screen with canvas text drawing.
10. What Are Win/Loss Conditions?
Discover the basic principles of a win/loss condition, and it affects the overall game loop.
11. Losing It
Program your game to handle a loss condition when the hero collides with the enemy/obstacle.
Add a win condition to your game.
13. What Are Credits?
Find out what ending credits are and how to implement them.
14. Roll Credits
Add ending credits to your game. Tell the world what you've accomplished.
Review all the important concepts you learned in this lesson.
Test your knowledge.