Game (Chili Framework)

From Chilipedia
Revision as of 13:09, 13 July 2016 by Chili (Talk | contribs)

Jump to: navigation, search

The Game class is where you put the code to make the game do the things. The predefined member functions UpdateModel() and ComposeFrame() are where you put your game logic and your rendering code, respectively. Game is composed of the Graphics object used for drawing and keeps a reference to the MainWindow object to interface with the Windows system (which includes the keyboard and mouse inputs).

Members

Game (constructor)

Game::Game( class MainWindow& wnd )

Gets called when the Game object is created and creates the Graphics object. Put your initialization code here and it gets executed once at the start of the program. Good deal.