Thursday, May 10, 2007

Final version






Source FLA: adventure game.fla

Bunch of Pictures!

Lots of images have been made during the home stretch. Kinda happens with crunch time and everything. So I had made a list of all of the objects that I had needed to make. Slowly but surely I had finished all of the objects. Here’s a couple of the examples of the images.


Ok, so it does look like she has no body, but she’s the guidance counselor and she’s just put behind a desk, so to make it easier for me, she has no legs included. Also, at the very end, there had been a problem with trying to get the main character to be a boy or a girl, and then have the customizing actions with it, so sadly you won't see the girl in this. She'll have to be added in the next installment.


This is the school hallway. It’s career day here and you have to go and visit the counselor today. When you go and see her, you’ll have to choose an elective. For this entry I’ll show you the track for Music Appreciation.


So when you pick your class, you’re sent to the classroom. You hang out here and talk with your teacher a bit. Depending on how well you do in the class, you can get your dream job.


If you are successful, you’ll become a Recording artist. As of right now, there’s no more after you get your dream job, but hopefully in the future we can add more branches and create a larger story. Possibly make more animation happen within the scenes.

Final Summary Post

The other blogs posted pretty much summed up the process that we went through to work on the project. Nick set up the basic code that ran the game as a whole, Kirsten developed the graphics, and I was responsible for meshing the pictures and code together. Over the past few weeks, the only things added to the game were content related, except for Nick's saving and printing features.

One primary difference in the final game that did not exist earlier is the existence of states on various movie clips in the game. I developed a better understanding of how to use them, and it has added a nice customization to the game. Now, you can change how the main character looks, and choose items in the game that stay with you throughout. The story in the final game has expanded, and sound effects have been added in various locations.

At this point, the game ends when you have reached your "dream career", but what is nice about the game is that it has such an easy potential to grow further. Being that the game exists in one frame, and has scenes called up and made on the fly, there is no limit to how far the adventure can go. If we had even more time with the project, then it could grow to new scenes, and the current scenes could have more branching.

Wednesday, May 9, 2007

Final update

Here is the source code for our project, broken down into three files:

The code from the fla itself

contains the bulk of the implementation. Mostly commented: Main.as


The package Story, which contains:

The Action class

responsible for pattern matching, callbacks, scene linking and transition text storage. Fully commented: Action.as

The Scene class

responsible for getting actions from inputs, relating to multiple actions, callbacks and scene text storage. Fully commented: Scene.as

Thursday, May 3, 2007

Printing System

Printing was my final task for the project and I finally finished it. Printing in flash is somewhat annoying, because flash has no page-based architecture. In other words, the task of defining any structure for prints is left entirely to the programmer. In my case the process works something like this:
1) Prompt user for printing
2) Rearrange horizontal movieclips into grid using this algorithm:

col = frameNumber%columns;
row = floor(frameNumber/columns);
mc._x = col*printW;
mc._y = row*printH;


Where printW and printH represents the size of each frame to be printed.

3) When the current column extends past the available page size, add a page break into an array
4) Loop through the page break array, adding pages to the print queue based on the current value and the next value
5) Restore the movieclips to horizontal positioning
6) Send print job to printer

The commented source code will be posted as part of the complete source.