Please enable JavaScript to use CodeHS

Illinois Introduction to Computer Science

Description

In this lesson, students will be introduced to the concept of using timers to animate their graphics.

Objective

Students will be able to:

  • Explain in their own words how animation works
  • Create animation in programs using the setTimer function
  • Explain what a callback function is
Description

In this lesson, students will get more time practicing with timers as they learn how to stop their timers when a specific condition is met.

Objective

Students will be able to:

  • Create programs with timers to create increasingly challenging animations
  • Stop animation timers when a condition is met using stopTimer() function
Description

In this lesson, students learn about the logic required to implement their own collision detection functionality in their graphics animations.

Objective

Students will be able to:

  • Understand when objects “collide” with the canvas walls and other objects.
  • Write their own collision detection logic.
Description

In this lesson, students learn how to detect and take action upon a mouse click event.

Objective

Students will be able to:

  • Describe how events are different than timers
  • Use mouse click events to create programs that respond to user clicks
Description

In this lesson, students learn how to extend mouse events to make interactive animations using the movement and dragging motion of the mouse.

Objective

Students will be able to:

  • Explain how events are different from timers.
  • Create interactive programs that use events to respond to the mouse moving
Description

In this lesson, students will learn how to use keyboard keys to control events. Keyboard events capture when the user presses keys on the keyboard. This allows students to write programs that take input from the keyboard to change what is happening in the program.

Objective

Students will be able to:

  • Explain how events are different from timers.
  • Create interactive programs that use events to respond to the keyboard input.
Description

In this lesson, students review content with a 25 question End-of-Unit Quiz.

Objective

Students will be able to:

  • Prove their knowledge of various concepts in animation through a multiple choice quiz