ahandrewh teaches IAT-165game design and development

E5: Pause and play (due February 11)

Instructions

This exercise helps you practice building different states for your games.

Please complete the following:

  1. Continuing from the file built in the code tutorial on user input, create a game 'start' screen. This screen should:
    • Detect when the user has pressed a button to start the game, or;
    • Start the game after a duration of time has passed.
  2. Make sure the start screen provides some indication of when or how to start the game. You will likely want to explore the text() function in p5.js.
  3. Run the sketch using the play symbol to ensure the output is as you expect.
  4. Save the sketch to your computer.

Submission

Once done please submit a ZIP of your exercise to Canvas before class on February 11.

You are allowed to use this exercise as part of your projects if useful.

Grading rubric

This code exercise is worth 1% (1 point) of your final grade for completing the exercise steps.

Exercise rules

Please note the rules for exercises in this course: