Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Constants | TODO: Replace with ini_read/write
- global.botIdentificationPrefix = string(random_range(1000, 9999));
- global.botNameCounter = 0;
- global.botAmount = 16;
- // TODO: Remove this hack
- global.botTurn = global.botAmount-1;
- // Hack to keep directory knowledge | TODO: Remove
- global.botDirectory = directory + "TempestBots\";
- // Create the main BotPlayer object
- global.BotPlayer = object_add();
- object_set_persistent(global.BotPlayer, true);
- execute_file(global.botDirectory + "Framework\BotPlayer_Create.gml");
- execute_file(global.botDirectory + "Framework\BotPlayer_BeginStep.gml");
- // Load the AI
- execute_file(global.botDirectory + "Framework\ConvertInput.gml");
- execute_file(global.botDirectory + "AI\Initialize.gml");
- execute_file(global.botDirectory + "AI\Main.gml");
- // Create the bots (as soon as everything is loaded)
- object_event_add(PlayerControl, ev_create, ev_create, '
- var i;
- for (i=0; i<=global.botAmount; i+=1)
- {
- instance_create(0, 0, global.BotPlayer);
- }
- ');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement