breaking-bad-ds/source/main.cpp
William cd9753f5f6
Fix line endings, bug, text & sound fixes (#8)
* 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
2023-11-22 01:04:19 +00:00

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