Sunday, February 21, 2010

Status Report 1

A few of the graphics for the Mitosis Game are done now. Mostly what I've been doing is trying to figure out the class structure for this program. I would like all the different minigames to share a single CVManager to put less strain on the processor, but I am not sure how to set the program up to accomplish this. Here is the solution I have so far:

1.) The CVManager will be instantiated in the main MitosisGame class when the game starts.

2.) The MitosisGame class will add a symbol (hereafter referred to as "Game") as a child of itself. This symbol will contain each minigame as a child within a single keyframe. The Game symbol will take the MitosisGame's CVManager as a parameter in its constructor. In this way the Game symbol will be able to share the CVManager with the main class.

3.) The symbols containing the minigames will all be subclasses of another Minigame class, which will take the Game's CVManager as a parameter in its own constructor. Within these symbols the CVManager will perform its minigame-specific functions.

This should work, if I'm thinking about it right... however, I have a nagging feeling that there is an easier way to do this.

No comments:

Post a Comment