Guest User

Untitled

a guest
May 11th, 2016
7,533
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //=============================================================================
  2. // Fullscreen.js
  3. //=============================================================================
  4.  
  5. /*:
  6. * @plugindesc Starts the game in fullscreen
  7. * @author Christian Schicho
  8. *
  9. * @help
  10. */
  11.  
  12. ;(function() {
  13. function extend(obj, name, func) {
  14. var orig = obj.prototype[name]
  15. obj.prototype[name] = function() {
  16. orig.call(this)
  17. func.call(this)
  18. }
  19. }
  20.  
  21. extend(Scene_Boot, 'start', function() {
  22. Graphics._switchFullScreen();
  23. })
  24.  
  25.  
  26. var _Scene_Base_create = Scene_Base.prototype.create;
  27.  
  28. Scene_Base.prototype.create = function() {
  29. _Scene_Base_create.call(this);
  30. Graphics.width = 1280;
  31. Graphics.height = 720;
  32. Graphics.boxHeight = 720;
  33. Graphics.boxWidth = 1280;
  34. };
  35.  
  36. })()
RAW Paste Data