Please enable JavaScript to use CodeHS

Curso mixto de secundaria

Lesson 8.9 Datos del teclado

Description

Esta lección enseña a los estudiantes cómo desarrollar bocetos interactivos que respondan a las entradas del usuario desde el teclado. Los estudiantes también exploran cómo se utilizan los códigos clave para representar las teclas físicas en el teclado y usarlas en sus bocetos.


Objective

Students will be able to:

  • use the keyIsPressed system variable to create interactive p5.js sketches that respond to any pressed key
  • use keyIsDown() function to create interactive p5.js sketches that respond to a specific key being pressed
  • Represent a physical key on the keyboard digitally using key code
  • Include text in a p5.js sketch