Please enable JavaScript to use CodeHS

Introduction to Game Design with p5play

Description

In this lesson, students will kick off their projectiles project and create the basic structure of their game.

Objective

Students will be able to:

  • Understand what the projectiles project entails
  • Decompose the larger, complex project into smaller parts
  • Set up the project’s structure, canvas, and the scene’s ground sprite
Description

In this lesson, students are going to create a cannon that players can move and rotate on the canvas.

Objective

Students will be able to:

  • Use an image as the appearance of a sprite
  • Use the scale property to adjust the size of the image
  • Allow the player move and rotate the cannon with key presses
Description

In this lesson, students will learn about p5play Groups and Tiles, two features that make it easy to create and manage many sprites in a p5play program.

Objective

Students will be able to:

  • Define p5play Groups
  • Explain the benefits of using a Group
  • Create a Group and a sprite in that group
  • Explain the benefits of p5play Tiles
  • Create and customize a Tile system
Description

In this lesson, students will apply their knowledge of p5play Groups to create cannonballs that fire from the cannon.

Objective

Students will be able to:

  • Create a group of cannonballs
  • Allow the user to fire a cannonball with a key press
Description

In this lesson, students apply their knowledge of the p5play Groups and Tile system to create the tower in their projectiles game.

Objective

Students will be able to:

  • Create two block groups with different physical properties
  • Modify the tile system to add blocks to their tower
Description

In this lesson, students will implement code that will remove the wood block tiles when struck by an incoming cannonball.

Objective

Students will be able to:

  • Use a prototype to test an algorithm
  • Implement a nested if statement
  • Understand the basics of for loops
  • Remove sprites from the canvas
  • Use a comparison operator to check the size of a sprite’s speed
Description

In this lesson, students will add a win condition and message to their game.

Objective

Students will be able to:

  • Create a win condition for their game
  • Add a UI element that conveys a message to the user
Description

In this final project lesson, students will design, plan, develop, and test a second custom level for their projectiles game.

Objective

Students will be able to:

  • Plan, design, develop, and test their own program