- Dev Mode i Game Mode

This commit is contained in:
2024-07-02 19:31:19 +02:00
parent 3e83fcdaa8
commit eed4ec899c
7 changed files with 360 additions and 372 deletions

View File

@@ -5,16 +5,28 @@
namespace game
{
static int param_count = 0;
static char **params = nullptr;
static unsigned int ticks_per_frame = 1000/60;
void setUpdateTicks(const int ticks)
{
ticks_per_frame = ticks;
}
const char* getParams(const int index)
{
if (index<param_count) return params[index];
return nullptr;
}
}
int main(int argc, char *argv[])
{
game::param_count = argc;
game::params = argv;
game::init();
input::init(draw::getZoom());