HTML and CSS Reference
In-Depth Information
rocks
tempRock
.
x
+=
tempRock
.
dx
*
frameRateCounter
.
step
;
tempRock
.
y
+=
tempRock
.
dy
*
frameRateCounter
.
step
;
saucers
tempSaucer
.
x
+=
tempSaucer
.
dx
*
frameRateCounter
.
step
;
tempSaucer
.
y
+=
tempSaucer
.
dy
*
frameRateCounter
.
step
;
saucerMissiles
tempSaucerMissile
.
x
+=
tempSaucerMissile
.
dx
*
frameRateCounter
.
step
;
tempSaucerMissile
.
y
+=
tempSaucerMissile
.
dy
*
frameRateCounter
.
step
;
particles
tempParticle
.
x
+=
tempParticle
.
dx
*
frameRateCounter
.
step
;
tempParticle
.
y
+=
tempParticle
.
dy
*
frameRateCounter
.
step
;
We have now covered all the major changes to turn
Geo Blaster Basic
into
Geo Blaster Ex-
tended
. Take a look at
Example A-2
, which has the entire code for the final game.