Please enable JavaScript to use CodeHS

Chapter 3

Animation and Games

3.1 Timers

What is Animation?

Draw

Wait and Move

Introducing Timers

Moving Ball

Magic 8 Ball

Check Your Understanding

  1. Incorrect Correct No Answer was selected Invalid Answer

Exercise: Wild Square

Vocabulary

Term Definition
Start Function This is the function that is called when you click run.
JavaScript Documentation Documentation for the syntax and objects in Javascript that we use on CodeHS.
Canvas The screen in which our graphics programs are drawn.
Timer Timers are used to used perform repeated action in a program
Coordinate system A coordinate system uses numbers as coordinates to place objects in a geometric space.
Animation Showing several still images one after another very quickly, to give the illusion of animated movement.
Callback Function A function passed as a parameter to another function in order to be called later.