mirror of
https://github.com/WiIIiam278/breaking-bad-ds.git
synced 2025-06-19 01:05:33 -04:00
36 lines
574 B
C++
36 lines
574 B
C++
#include "game.h"
|
|
|
|
const bool DEBUG_MODE = true;
|
|
Game game;
|
|
|
|
void RenderGame()
|
|
{
|
|
game.Render();
|
|
}
|
|
|
|
int main()
|
|
{
|
|
srand(NULL);
|
|
|
|
// Prepare graphics
|
|
game.Prepare3DGraphics();
|
|
game.Prepare2DGraphics();
|
|
|
|
// Start the game
|
|
game.StartMenuScreen(DEBUG_MODE);
|
|
|
|
// Run the game loop
|
|
while (true)
|
|
{
|
|
// Tick the game clock
|
|
game.Tick();
|
|
|
|
// Process input, update game state
|
|
game.Update();
|
|
|
|
// Render the game 3D scene
|
|
NE_Process(RenderGame);
|
|
}
|
|
|
|
return 0;
|
|
} |