Programming with Processing 105

10 Jul, 2010 by adam in Processing, Tutorials
Tags: , , ,

This is a part of a beginning Processing tutorial series. If you’re new to Processing, start at the beginning!

As we continue our series on the basics of programming with Processing, we’ll look at extending the “Ball” class we created in the last set to include a user-controlled “Puck” object that can be used to turn this little app into a kind of air-hockey game. Fun stuff!

The beauty of working with object-oriented code is that we can extend the functionality of our code incredibly simply.

In this case, we’ll be creating a new type of Ball object called a “Puck”. All of the variables and methods that are defined in the Ball class will be available to our Puck class, but we’ll be able to add and tweak functionality as needed.

To download the full code on openProcessing.org!

about adam:
Adam O'Hern is an industrial design consultant specializing in visual brand languages, and has designed products ranging from laptops to power tools, classroom toys to bathroom fixtures, and robots to lint rollers. He has published with 3DWorld Magazine, CGTuts+, and Luxology, and works with Josh Mings of SolidSmack.com on EngineerVsDesigner.com.

Leave a Reply

You must be logged in to post a comment.