1
0

Step_0.gml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. if global.hitstop > 0
  2. global.hitstop--;
  3. if global.developer_mode
  4. {
  5. if mouse_check_button_pressed(mb_left)
  6. {
  7. oPlayer.x = mouse_x;
  8. oPlayer.y = mouse_y;
  9. }
  10. }
  11. if global.time_scale_t < 1.0
  12. {
  13. global.time_scale_t += 1 / global.time_scale_duration;
  14. global.time_scale_t = min(global.time_scale_t, 1.0);
  15. global.time_scale = lerp(0.1, 1.0, power(global.time_scale_t, 6));
  16. }
  17. if oMain._inventory
  18. {
  19. global.inventory = icl(oInventory);
  20. with(oMain) autoreg_handle("inventory", "inventory", 10);
  21. }
  22. else if oMain._close_inv
  23. {
  24. with(global.inventory) instance_destroy();
  25. with(oMain) autodel_handle("inventory");
  26. }
  27. if oMain._pause && global.can_pause
  28. {
  29. global.pauser = icl(oPauseMenu);
  30. with(oMain) autoreg_handle("pause", "pause", 20);
  31. }
  32. else if oMain._close_pause
  33. {
  34. with(global.pauser) fan_darken_target = -0.2;
  35. with(oMain) autodel_handle("pause");
  36. }
  37. else if oMain._save_pause
  38. {
  39. with(global.pauser) fan_darken_target = 0;
  40. with(oMain) autodel_handle("pause");
  41. save_game_to_disk();
  42. var _fade = icl(oFade);
  43. _fade._callback = function()
  44. {
  45. with(global.camera) instance_destroy();
  46. with(global.player) instance_destroy();
  47. with(global.pauser) instance_destroy();
  48. with(global.UI) instance_destroy();
  49. with(global.in_game_manager) instance_destroy();
  50. room_goto(rTitle);
  51. with(oMain)
  52. {
  53. autoreg_handle("title", "title", 100);
  54. //info_typer1 = typer_set(info1, 64, 64 * 7, 2, 1);
  55. //info_typer2 = typer_set(info2, 18 * 64, 64 * 7, 2, 1);
  56. }
  57. }
  58. }