Archive for December, 2007

New Year’s Resolutions:

15:30:58 EST, 2007-12-25
  • teach myself Processing.
  • update my resume.
  • learn ActionScript.
  • find a job in the game industry.
  • blog more often.

Happy Holidays to all, and Happy New Years, as well. I’m off to Italy tomorrow for vacation; see you all in 2008.

processingObjective.002: collision & reaction

14:37:39 EST, 2007-12-10

Working with the code used in objective001, add a second object to the space. Program the ball to detect collisions with that object, and react accordingly.

Update: Objective complete.

Notes:

  • The image above does not reflect the final version of the sketch.
  • Though not stipulated by the original objective, the second object (or “paddle”) is interactive, and can be controlled with the mouse cursor.
  • Once the applet loads, click it to allow the mouse to interact.
  • Because of the speed at which the cursor moves the paddle, it was possible for the ball to accidentally pass through the paddle while the paddle was in motion, rather than colliding and bouncing off. To circumvent this issue, I instructed the ball to only interact with the paddle while the paddle was black. Moving the paddle now causes it to turn white, and once the paddle has stopped moving it must “cool down” in order to interact with the ball again. A practical solution, but one that has interesting design potential.
  • Additionally, the paddle had to be instructed to remain white while the ball was passing through it, to prevent a bug where the ball would bounce in the interior of the paddle.
  • The background colors are controlled by the position of the paddle, using the same RGB-calculation code written for objective001. This was done to add a little color to the sketch, which was otherwise a bit boring to look at and play with.

processingObjective.001: movement & boundaries

15:53:48 EST, 2007-12-09

Create a space, and a circular object (“ball). Program the ball to move within the space, rebounding off its boundaries when necessary.

Update: Objective complete.

Notes:

  • The x and y positions of the ball determine its RGB values: The x position determines the red value, the y position the green value, and the sum of x and y determines the blue value. Scaling was used to keep values in the range of 0 – 255, and values had to be converted from floating point to integer data types.

  • The pattern created by the ball’s movement is achieved by never redrawing the background during each frame of animation. Had the background color been declared during the draw() function, each frame would have wiped the background clean, showing only the ball’s current position — practical, but less interesting to look at.

It makes me giggle, then cry a little.

16:16:14 EST, 2007-12-07

I’m blogging about it because it told me to.

I did more stuff.

12:17:49 EST, 2007-12-01

I’m falling behind on the blogging again. Need to not do that.

Two weeks ago I reviewed Zombie Fluxx for Joystiq. It’s good, but it could be better. I’m still working on exactly how it could be better. More on that topic (hopefully) soon.

This past week, I reviewed Ticket to Ride, which is quite, quite, quite good. In fact, I’m recommending it. Consider it recommended. Now play it.

Also last week, The Escapist published 9am class, my dice game about falling asleep in early morning colleges courses. They did a phenomenal job with the piece, giving it a snazzy logo and even re-designing the game board to make it look less like I just threw it together in Photoshop. I tip my game designer hat to them.

December’s going to go by awful quick. Here’s hoping I can keep up.

Log in