Back to Index
[Intro Functions]
void _Menu( )
- Author: Ki Chung
- Inputs: -
- Outputs: -
- Returns: -
- Calls: _Game, _Instruction, _Credits, _CopyBuffer, _ComposeBuffers, _CopyToScreen
- The Menu from which the player can choose 'Play Game', 'Instruction', 'Credits', or 'Exit.' Initializes various necessary variables for _Game function when 'Play Game' is selected.
void _Instruction( )
- Author: Hyun Jeong, Gihyun Ko
- Inputs: -
- Outputs: -
- Returns: -
- Calls: _CopyBuffer, _CopyToScreen
- Displays instructions on how to play.
void _Game( )
- Author: Ki Chung
- Inputs: -
- Outputs: -
- Returns: -
- Calls: _UpdateInitCursor, _UpdateCursor, _RotateBlock, _UpdateEnclosedRegion, _BuildCastle, _BuildCannon, _BuildWall, _GenerateRandomBlock, _UpdateCannonBall, _FireCannon, _ScrollBanner, _DrawStatusBar, _DrawMap, _DrawImage, _DrawDeployCursor, _DrawBlock, _DrawCannonBall, _DimBuffer, _ClearBuffer, _CopyBuffer, _ComposeBuffer, _CopyToScreen
- This is the main loop of the game. _Game is called by _Menu when the player chooses the option 'Play Game' _Game then takes care of the entire flow of the game. For the details on how it functions, look at main pseudocode