The Pinball Game
Ian Parberry's "Introduction to Game Physics"
The Pinball Game

This is a rudimentary pinball machine designed to put the Shapes library we developed for the Collision Math Toy to good use. The aim of the game is to get as high a score as you can. In addition to being a minigame that you can actually play, the Pinball Game allows the player to change the draw mode from the normal "sprites only" mode in which the game will be shipped (below left), a "sprites and lines" mode in which the shapes are drawn in black over the sprites so that you can check that the sprites actually align with the shapes (below, middle), and "lines only" mode (below right) because it looks cool. The game can be played in any of the three draw modes.

Keyboard Controls

Key
Action
F1 Help (this document)
F2 Toggle draw mode from "sprites only", to "sprites and lines", to "lines only"
Space Load a ball (first press) and launch it (second press)
Left shift Left flipper up while key is down
Right shift Right flipper up while key is down
PrtScr (hold down) Save screenshot to a PNG file

The LARC Engine

This code uses the LARC Engine and is part of the LARC Code Base.