Friday, November 2, 2007

The RRSSE!

I just had an idea for a great way to start off this engine. First thing will be creating a "Really Really Simple Sprite Engine," that simply allows us to load up sprites and masks, draw them as one, and... that's mostly it. It will accept VERY few parameters other than the image's filename, and give you the bare essentials. We will definitely want to make this portable.
This will also allow us to do some other simple and fun projects without creating a completely new framework. And best of all, it will be our own. We can say, "I made this little game in a weekend. Nope--no Game Maker, that's written from scratch in portable C++." So not only will it be like 10% of the size of a Game Maker file, but it will compile on GCC for Windows AND Linux. You'll be surprised how a simple set of classes can make the process so much quicker.

Here's the basic stuff I think RRSSE should have:
  • IDrawable
    • Load, Draw, Step
  • Sprite class
    • Load - reads in the image and mask
    • Draw - outputs the mask + sprite to the backbuffer
    • Step - change the image depending on the image speed, according to the time interval
    • Other functions that allow you to specify the files, change the output location, frame speed (for GIFs), and ALSO, some functions for scaling and flipping the image.
    • Later, if we can figure them out, we could add functionality for screwing with the colors, inverting, making silhouettes, and possibly colorifying.

0 comments: