Create_0.gml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. #macro RES_W 1280
  2. #macro RES_H 720
  3. randomize();
  4. global.input_handles_index = [
  5. "debug",
  6. "ingame",
  7. "inventory",
  8. "title",
  9. "pause"
  10. ]
  11. create_dummy_handle();
  12. for(var i = 0; i < array_length(global.input_handles_index); i++)
  13. variable_instance_set(id, global.input_handles_index[i], global.handle_dummy);
  14. autoreg_handle("ingame", "ingame", 1);
  15. autoreg_handle("title", "title", 100);
  16. global.altcontrol = false;
  17. _jump_p = undefined;
  18. _jump_r = undefined;
  19. _left = undefined;
  20. _right = undefined;
  21. _up = undefined;
  22. _down = undefined;
  23. _dash = undefined;
  24. _attack = undefined;
  25. _inventory = undefined;
  26. _return = undefined;
  27. _newgame = undefined;
  28. _continue = undefined;
  29. _quitgame = undefined;
  30. _close = undefined;
  31. global.in_game_manager = noone;
  32. global.inventory = noone;
  33. global.player = noone;
  34. global.camera = icl(oCamera);
  35. global.time_scale = 1.0;
  36. // debugging
  37. global.developer_mode = true;
  38. // save file
  39. global.save_data = {};
  40. global.save_filename = "ddmyx_save.dat";
  41. icl(oAudioManager);
  42. icl(oTyper);
  43. // title UI (BETA)
  44. menu_options = ["CONTINUE", "NEW GAME", "INFO", "CONTROL:", "EXIT"];
  45. menu_index = 0;
  46. animation_timer = 0;
  47. lerp_speed = 0.15;
  48. for(var i = 0; i < array_length(menu_options); i++)
  49. option_scale[i] = 1;