Create_0.gml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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.save_filename = "ddmyx_save.dat";
  40. icl(oAudioManager);
  41. icl(oTyper);
  42. // title UI (BETA)
  43. menu_options = ["CONTINUE", "NEW GAME", "EXIT"];
  44. menu_index = 0;
  45. animation_timer = 0;
  46. lerp_speed = 0.15;
  47. for(var i = 0; i < array_length(menu_options); i++)
  48. option_scale[i] = 1;