mirror of
https://github.com/WiIIiam278/breaking-bad-ds.git
synced 2025-06-19 09:15:36 -04:00

* Fix wrong line endings * Fixup launch tasks * Fixup nflib lib dir * Fixup debugger, improve dialogue save tracking * Fixup typo * Improve stability of game end logic * Dialogue text fixes * Fix SFX bug on Hank's mineral screen * Bump to 1.0.6 * Add SFX to cracking minigame
36 lines
540 B
C++
36 lines
540 B
C++
#include "game.h"
|
|
|
|
const bool DEBUG_MODE = false;
|
|
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;
|
|
} |