Please enable JavaScript to use CodeHS

Introduction to Game Design with p5play

Lesson 4.2 Mini Golf - Sprites

Description

In this lesson, students will add p5play sprites for their grass, hole, walls, ball, and putter. They also learn how to use a random number function in order to randomize where the hole sprite is placed.


Objective

Students will be able to:

  • Create sprites and set properties
  • Use the random() function to generate random numbers for their game
  • Use comments to document their code