Flash Game Progress

I’ve been working on the winter game again, putting in the screen logic. My initial “elegant” design has been crumbled into a spaghetti-like mess, with meatball-like moments of clarity. This is largely because I wasn’t quite sure how to handle chained sprite sequences. For example, saw a bear needs to throw a rock at the screen. There are several animation sequences associated with the throw, each of which can be considered a state in itself. I’m coding it all manually with a series of ugly switch statements to just get it working. After I get the body of the program working, I’ll review it and derive a new set of animation classes, with behaviors implemented using the Strategy Pattern.