CodeBase - Basic GameState Template
Return to the CodeBase listing
Category: Miscellaneous
Version: 1.0
Information
Uploaded: 13th Jun 2012 20:52
Modified: 1st Jan 1970 01:00
Author: Marl
Summary
A template demonstrating the use of a game state global variable in a structured way, keeping the main loop small and allowing the project to easily be broken down into a series of include files.
Full Description
Using a game state global variable within a single loop, this code demonstrates accessing UDT fields by function to keep code tidy.<br /> <br /> The main loop contains a select structure which uses different code blocks depending on the game state variable. Normally, each case would contain a call to routines held in include files, keeping the main loop to a minimum and creating a base for a modular project.<br />
Comments
No comments yet.