Create_0.gml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. random_set_seed(current_time)
  2. icl(oBeginStepManager);
  3. icl(oAudioManager);
  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. global.audio_enabled = false;
  18. _jump_p = undefined;
  19. _jump_r = undefined;
  20. _left = undefined;
  21. _right = undefined;
  22. _up = undefined;
  23. _down = undefined;
  24. _dash = undefined;
  25. _attack = undefined;
  26. _inventory = undefined;
  27. _return = undefined;
  28. _newgame = undefined;
  29. _continue = undefined;
  30. _quitgame = undefined;
  31. _close = undefined;
  32. global.in_game_manager = noone;
  33. global.inventory = noone;
  34. global.camera = noone;
  35. global.player = noone;
  36. global.difficulty = 2; // 0 = EASY, 1 = NORMAL, 2 = HARD
  37. // debugging
  38. global.developer_mode = true;
  39. // save file
  40. global.save_data = {};
  41. global.save_filename = "ddmyx_save.dat";
  42. // title UI (BETA)
  43. menu_options = ["CONTINUE", "NEW GAME", "INFO", "CONTROL:", "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;
  49. info1 =
  50. "真的有人阅读info欸!\n" +
  51. "这是以建平筠溪树莓社名义开发的游戏原型。\n" +
  52. "此原型是为义卖活动修改的特别版本,因时间原因,\n" +
  53. "引入的美术与音乐素材较为有限。请不要嫌弃~\n" +
  54. "原型仅代表最终作品的主要玩法,\n" +
  55. "最终解释权归全体开发人员所有。\n" +
  56. "感谢你的试玩!任何游戏相关问题请咨询社长!\n" +
  57. "预计发行时间:2027年暑假"
  58. info_typer1 = typer_set(info1, 64, 64 * 7.5, 2, 1);
  59. info2 =
  60. "你是一名优等生。\n" +
  61. "这是建平筠溪,布置与现实有几分相似,\n" +
  62. "却处处充满幻想与危机,熟悉而陌生。\n" +
  63. "是梦……\n" +
  64. "以你的骄傲,象征成绩的「墨」,挥动钢笔杀敌;\n" +
  65. "前往本部,集齐「建平五环」的品质击破梦境。\n" +
  66. "抑或,在潜意识的旅途中再次结识平日熟识的师友,\n" +
  67. "在他们口中寻得一切的真因?";
  68. info_typer2 = typer_set(info2, 18 * 64, 64 * 7.5, 2, 1);
  69. //favour_text = choose("这是一条风味文本……?");
  70. bgm_play("title");