Phillip Trelford's Array

POKE 36879,255


While working on another game idea I bumped into a collision detection sample using the Processing language where you can draw walls for a ball to bounce off. It reminded me of SoundDrop on iOS. Here’s my own mashup using the collision detection code, Tomas Petricek’s reactive rectangles sample for the lines and a generated tremolo sound effect.

Along the way I found a “Chrome Experiment” version in JavaScript called BallsDropping and a very cute multi-level puzzle version created with Unity called drop.

I’ve put the code up on Bitbucket:

You can also edit and run the code as a script online in the Tsunami Cloud IDE:

Tsunami Balls 

Simply click the picture above to launch the Tsunami IDE with the script. Once loaded press CTRL+A to select the code, then hit the big green run button which will launch a window titled “Drawing”. You can then drag the drawing window out and dock it to the right or left of the code.

If you’re interested in learning more about games programming why not pop down to the F#unctional Londoners meetup this Thursday for a talk on building a game in a day.

Comments (1) -

  • Art Scott

    8/26/2013 7:22:37 AM |

    What FUN! Thanks.

Pingbacks and trackbacks (2)+

Comments are closed