Arkanoid
By Jaime Limon
Arkanoid
is a video game in which the object of the game is to make all the blocks
disappear by hitting them with a sphere.
The sphere is controlled by hitting
it with a paddle that can only be moved horizontally.
The game is over when the sphere is
either lost, or after all the blocks have been hit and
have disappeared.
I implemented a simple version of this game
with two levels. A light is in motion
and highlights the blocks until playing begins in each level.
The reflection is computed using R
= -L + 2*(L dot N)*N.
Collision is used by checking the
center of the sphere against the boundaries of all the blocks, paddle, and
walls.
Users guide:
mouse
moves the paddle: with the left mouse
button pressed, move the mouse in the
direction you want the paddle to go. While the game has not begun (i.e., the
sphere is
not in free motion),
you can position the sphere to a starting point by moving the
paddle.
s button
starts the game.
p button
pauses the game
r button
resets the game and starts it over
Level 1 has a block pattern similar
to level 1 in the original Arkanoid game.
When a block is hit with the
sphere, a small explosion effect appears.
Once all the blocks in level 1 have
been hit the game moves on to level 2 automatically.
Level 2 has a block pattern in the image of a
joker.
The game is played the same as in
level 1.
Once all the blocks have been hit in level 2, the
sphere stops moving.
You can either reset the game and
start again, or close the window to quit the game.