ahandrewh teaches IAT-165game design and development

E4: Acting on command (due February 4)

This is old content

Andrew is not currently teaching IAT-165. This material is left online for reference only.

Instructions

This exercise has you exploring capturing and responding to user input.

Please complete the following:

  1. Continuing from the file built in the code tutorial on user input, create a change in state if the user jumps again while not on the ground. This condition should:
    • Detect when the user has pressed the button again if not on the ground.
    • Output a message to the console using console.log().
    • Provide some visual feedback to the user that they have jumped again, this could be:
      • Jumping higher still.
      • Falling faster to the ground.
      • Altering the character to suggest the keypress was detected.
      • Another option you would like to explore.
  2. Run the sketch using the play symbol to ensure the output is as you expect.
  3. Save the sketch to your computer.

Submission

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

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: