Advertisement
Guest User

Untitled

a guest
Sep 25th, 2016
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1.  
  2. // Constants | TODO: Replace with ini_read/write
  3. global.botIdentificationPrefix = string(random_range(1000, 9999));
  4. global.botNameCounter = 0;
  5. global.botAmount = 16;
  6.  
  7. // TODO: Remove this hack
  8. global.botTurn = global.botAmount-1;
  9.  
  10. // Hack to keep directory knowledge | TODO: Remove
  11. global.botDirectory = directory + "TempestBots\";
  12.  
  13.  
  14. // Create the main BotPlayer object
  15. global.BotPlayer = object_add();
  16. object_set_persistent(global.BotPlayer, true);
  17.  
  18. execute_file(global.botDirectory + "Framework\BotPlayer_Create.gml");
  19. execute_file(global.botDirectory + "Framework\BotPlayer_BeginStep.gml");
  20.  
  21. // Load the AI
  22. execute_file(global.botDirectory + "Framework\ConvertInput.gml");
  23. execute_file(global.botDirectory + "AI\Initialize.gml");
  24. execute_file(global.botDirectory + "AI\Main.gml");
  25.  
  26. // Create the bots (as soon as everything is loaded)
  27. object_event_add(PlayerControl, ev_create, ev_create, '
  28.  
  29. var i;
  30. for (i=0; i<=global.botAmount; i+=1)
  31. {
  32. instance_create(0, 0, global.BotPlayer);
  33. }
  34.  
  35. ');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement