Create_0.gml 1.2 KB

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