the.cubing.preview
2006-03-02 21:41:05
This techdemo/scratchpad project is preparing me for building a serious example game for the cmps161 students to use as a base.
Its requirements were to combine SDL and OpenGL, load and display a texture, load and play music and samples, do something interesting with the mouse and keyboard, do something interesting with the screen, and finally have some sort of goal for the user to achieve while playing.
At this point, the "game" is to bump the white cube into all of the yellow cubes to turn them a lighter shade of yellow. The user accomplishes this with fairly limited control. The 'r' key randomly positions the cubes out in the large playing area. The 'g' key exerts a gathering force that pulls all of the cubes towards the center of the field -- but with some curl so the cubes spiral into the center. The 'f' key flushes the cubes away from the center of the field (where my test texture is) with a gentle/exposive force that depends on distance from the center.
Basically, you mash buttons until there are no more of the original colored cube remaining. I assume there is some technique to it becuase, while it does get hard toward the end, I'm pretty good at it.
Binaries available upon request.