I know in business application usually 3-tier architecture is used to develop business applications,
I was wondering if anybody ever thought of using an architecture model for the
development of a game.
For instance the 3-tiers are Presentation, Business Logic, and DataAccess...
I suppose the game would have DataAccess but instead of SQL it would load from files (File I/O)
You could even use XML serialize/deserialize
Instead of business logic you would have game logic, presentation is the graphics for the game...
a loop of the game (architecturally) would have to reference all layers....
show_menu(); //presentation
load_player(); //DAL data access layer
load_level(); ///DAL
game_engine.run(); //run game, this in turn uses the layers in its own loop (load meshes=DAL)
save_player(); //level, health, items (DAL) to file
//the code would be more OOP
i'm just thinking about it architectually because i always think of making a game,
but then i stop in the middle because i didn't plan its architecture out too well...
by planning out these details i think it would save time and be more understandable.
Does anybody use an architecture model when they piece their game together
Or do you just wing it