Game Menu Engine
Game Menu Engine
Purpose:
The Game Menu Engine will be used as the user interface in order
for the user to select the game options, what kart to use, as
well as what track to race in. The first screen is an intro
and when the user presses ENTER, the selection screen pops up,
this is where the user will be able to select his game options,
such as playing in single player, networked, viewing the instructions,
or quitting the game. If choosing single player, the user
will be able to select from 4 karts, and afterwards, the user will choose
from 4 different tracks. As the user selects each selections, it
will be highlighted. After this the game starts.
Variables
- MenuChoice ; word, used to determine selection
- KartChoice ; word, used to determine kart
- TrackChoice ; word, used to determine track
_IntroScreen
-
Owner: Jaime Chu
-
Purpose: Intro Screen
-
Inputs: ENTER_key
- Outputs: To the Screen, plays sound and MIDI
- Notes: Uses LoadPCX and ShowScreenBuffer.
_MainSelection
- Owner: Jaime Chu
-
Purpose: Screen where user can choose to play single player, networked, view instructions, or to exit the game.
, plays MIDI and sound
-
Inputs:
-
GAS - up arrow
-
BRAKE - down arrow
-
ENTER - Enter key
- Outputs: MenuChoice
-
MenuChoice = 1 , Play single player
-
MenuChoice = 2, Play Network
-
MenuChoice = 3, View Intructions
-
MenuChoice = 4, Exit game
-
To the screen
-
Notes: Uses LoadPCX and ShowScreenBuffer, MIDI and Sound
procedures
_ViewInstructions
-
Owner: Jaime Chu
-
Purpose: Screen where user views the instructions.
-
Inputs: ENTER
- Outputs: To the Screen, palys sound
-
Notes: Uses LoadPCX and ShowScreenBuffer, MIDI and sound
procedures
_SelectKart
- Owner: Jaime Chu
-
Purpose: Screen where user can select what kart to use.
-
Inputs:
-
TURN_RIGHT - right arrow
-
TURN_LEFT - left arrow
-
ENTER - Enter key
- Outputs: MenuChoice
-
KartChoice = 1 , Kart 1
-
KartChoice = 2, Kart 2
-
KartChoice = 3, Kart 3
-
KartChoice = 4, Kart 4
-
To the screen
-
Notes: Uses LoadPCX and ShowScreenBuffer
_SelectTrack
-
Owner: Jaime Chu
-
Purpose: Screen where user selects the track.
-
Inputs:
-
TURN_RIGHT - right arrow
-
TURN_LEFT - left arrow
-
ENTER - Enter key
- Outputs: TrackChoice
-
TrackChoice = 1 , Track 1
-
TrackChoice = 2, Track 2
-
TrackChoice = 3, Track 3
-
TrackChoice = 4, Track 4
-
To the screen
-
Notes: Uses LoadPCX and ShowScreenBuffer
_Credits
-
Owner: Jaime Chu
-
Purpose: Credits Screen.
-
Inputs: None
- Outputs: To the screen, plays sound.
-
Notes: Uses LoadPCX and ShowScreenBuffer and sound functions
ArtWork: C.K. Liang
_Win
- Owner: Jaime Chu
- Modified by Brian Chang
- Purpose: Pop up the win message
- Input: WinPic
- Ouput: WinPic is drawn onto ScreenBuffer as a sprite
_Lose
- Owner: Jaime Chu
- Modified by Brian Chang
- Purpose: Pop up the lose message
- Input: LosePic
- Output: WinPic is drawn onto ScreenBuffer as a sprite