Actionscript 3 Pinball Tutorial for Mobile Devices or Browser-Play
This tutorial covers every step in programming the pinball Flash game above. Use the mouse and click either the left or right side of the screen to move the flippers at regular speed OR use the arrow keys (left, right, or up and down) to toggle between regular and faster speeds. Spacebar or clicking the launch zone will also send a new ball into play.
This tutorial teaches Object Oriented Programming, beginning with the basics and progressively getting more advanced while still staying easy enough for everyone!
Lesson 1: Create the Pinball Class and have it collide/slide down ramps
Lesson 2: Add Bumpers, curved boundaries, and invisible boundaries
Lesson 3: Add Flippers of multiple raising speeds (fast and slow)
Lesson 4: Add curving / looping ramps of any size or shape
Lesson 5: Create the launch ramp, multiball mode, score board, sounds and finishing touches
And of course you can adjust anything you like! The physics are incredibly easy to change. You can slow down or speed up the gravity, change the way the ball bounces off different objects, alter the roll speed for different objects, and so on. The code is yours to change!
As always, all source files are included for Flash CS5 (or higher), Flash CS4 or Flash CS3