Moving towards Game Architecture

Published April 26, 2006
Advertisement
I'm meant to be working on a poster to explain my research right now, but there's a whole bunch of moving being done on my floor which makes it hard to concentrate. So I guess I'll kill some time filling out a journal entry, which at least is better than posting to the Lounge (which is what I tend to do when I can't think, which might explain the quality of my posts there [grin]).

I've been viewing closely how I hacked together "Pierre and the Fish" to get ideas for how to approach the architecture of my next game. Given the backbone of the engine was the version of the Enginuity series kernel I had written for an earlier project, it isn't actually that bad. I'll definitely reuse all the kernel and some of the template code for managing memory pools. The bit that is worst is the task for the game itself; since the game was only written in a few days it's a huge hack.

I'm not sure about the best way to structure the game controlling task itself. There's actually a thread in the game programming forum (this one here) where that very question was asked (very fortuitous!). My gut feeling is that pretty much any approach I choose to plan this will work, it's just that some approaches will work better than others. My further feeling is that I'll never know which architecture is the best unless I try one out, so I'll correct some of the more obvious mistakes in my "Pierre and the Fish" design and run with that in a sample game.
0 likes 3 comments

Comments

Ravuya
I highly recommend a robust message passing system. It will clean up your code in ways almost nothing else can, and helps make it thread safe if you plan to multi-thread it later.
April 26, 2006 12:38 AM
Trapper Zoid
Arrgh, and here I was hoping I wouldn't have to do exactly that [smile]. I guess a message passing system would be a good addition to a properly engineered game system, although I'll have to do some background research on how to build one.
April 26, 2006 01:01 AM
Drakkcon
Thanks a ton for that link! I have been wondering about this subject since I read "Game Coding Complete"!
April 28, 2006 03:08 PM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Advertisement
Advertisement