C++ 2D Game Framework build upon graphics.h library.
- 32 bit compiler, graphics.h doesn't support 64 bit.
- graphics.h library
- Create class myGame that derived from gp::Game
- Add void update() and void start()
- Call init from myGame
class myGame : gp::Game {
private :
public :
void update() {
}
void start() {
}
}
int main() {
myGame game;
game.init();
return 0;
}
void start() --> called the first time game started
void update() --> called every frame