- Dev Mode i Game Mode
This commit is contained in:
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user