breaking-bad-ds/source/main.cpp
2023-11-06 18:31:32 +00:00

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;
}