Wednesday, June 1, 2011

Reflection On Hens, Roosters and Eggs

Finally, a night of sleep without the dark sceptre of Foghorn Dark Fowl looming in the recesses of my sleep deprived mind.  Woo hoo!  Now, for the summary...

After focusing so intently on Action Script the last couple of weeks, symbols and tweens feel like topics from the distant past, which is okay since they don't require the mind numbing amount of logic analysis that code demands.  (I did have to test myself to make sure I remembered how to do a tween.)

Thinking the game was due today, I put my game to rest last night, and once having done so cannot even remotely entertain the prospect of a "fowl" game resurrection.  Given that, I am now resisting the urge to just add those extra roosters, dang it, or similarly, to modify the makehens/foxeatshens functions code to make it more concise, or to add in text, or music, or speed up the fox, or make the bug motion more erratic, or make the bugs avoid the hens and roosters, or make the worms only crawl through the ground area, or, or, or....you get the idea.

I approached this project with dust all over the geeky, engineering-trained part of my brain.  This was a mistake is one way, a blessing in another.  The blessing came in the game's evolution and the free symbol creation and what those symbols eventually came to inspire.  The curse was the resulting fuzzy form and unfocused logic that I had going into the game coding part of the project. That and the fact that I didn't know the code language well at all contributed to a more frustrating experience than I should have had.  Once I had my unclear picture of the game, I should have taken the time to really delve into the logical game progression, complete with flow charting so any oddities in loops or conditions could be analysed before getting lost in the code.  While my fuzzy approach did work out okay, I'm sure it took me longer than if I had been more organized.  For the next game:  creatively brainstorm during the flash file phase, THEN logically analyse and organise BEFORE starting the action script!   (But always be open to new ideas.)

Important concepts learned during this project include variables as one item storage containers, global vs local variables, arrays as several item storage containers, manipulation of variables through the use of functions, calling functions, employing loops and counters and using conditional statements.  The strategy of where to place certain code based on your desired outcome is likely the most important concept reviewed.  So, until the next project...have a great summer and sabbatical.  (I'll be animating!)

game:  hen and rooster pair team up to eat bugs and avoid fox.  if all bugs are eaten, the hen lays an enormous egg and the pair gets 100 points.  if the fox catches the hen, she becomes his dinner.  there are three hens.