Step_0.gml 716 B

123456789101112131415161718192021222324252627282930313233
  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. // rendering
  12. // 每帧更新光照计算(处理动态光源和遮挡)
  13. global.bulb_renderer.Update();
  14. if global.time_scale_t < 1.0
  15. {
  16. global.time_scale_t += 1 / global.time_scale_duration;
  17. global.time_scale_t = min(global.time_scale_t, 1.0);
  18. global.time_scale = lerp(0.1, 1.0, power(global.time_scale_t, 6));
  19. }
  20. if oMain._inventory
  21. {
  22. global.inventory = icl(oInventory);
  23. oMain.autoreg_handle("inventory", "inventory", 10);
  24. }
  25. else if oMain._close
  26. {
  27. with(global.inventory) instance_destroy();
  28. oMain.autodel_handle("inventory");
  29. }