Punkman X1 API

Game Methods

The methods of the Game class are listed below. For a complete list of Game class members, see the Game Members topic.

Public Static Methods

GetDataFilePath Retrun path to data directory
Main The BiG MAiN
Time Get game time (pause orthogonal)

Public Instance Methods

EndLevel Called when level finished
Init Initialize graphics
LoadMap Load new map
OnCreateData after device reset resincarnation
OnCreateDevice Create data vertex buffer
OnResetDevice Reincarnate after device reset
Pause Pause Game
PlayerDeath Called after player's death
PlayLevel Play level
Render Setup all and draw whole game screen
RenderAll draw whole game screen
RenderHUD Draw HUD
ResetMap Reset map (on player dead)
Run Run game (main menu)
RunGame run game
Score Get player score
SFXPlay Player sound effect
UnPause UnPause game

Protected Instance Methods

Dispose Dispose game resources.
HandleEvents Read keys events
OnPaint On paint (form) event handler

Private Instance Methods

FPS Get real FPS count and update FPS counter attributes
InitHUD Initialize HUD attributes
OnCreateHUDVertexBuffer Create HUD vertex buffer
SetupLights Setup lights
SetupMatrices Setup transform matricies
SetupTexture Setup texture options
SwitchFullscreen 

See Also

Game Class | PunkMan.Game Namespace