Advertisement
Guest User

Untitled

a guest
Nov 25th, 2015
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 1.15 KB | None | 0 0
  1. //=============================================================================
  2. // ResolutionChanger.js
  3. //=============================================================================
  4.  
  5. /*:
  6.  * @plugindesc Changing game resolution easily.
  7.  * @author superrogin
  8.  *
  9.  * @param Width
  10.  * @desc Width of the game screen.
  11.  * @default 816
  12.  *
  13.  * @param Height
  14.  * @desc Height of the game screen.
  15.  * @default 624
  16.  *
  17.  * @help Ask superrogin@gmail.com
  18.  */
  19.  
  20. /*:ko
  21.  * @plugindesc ê²ì í´ìë를 ì½ê² ë°ê¿ ì ììµëë¤.
  22.  * @author superrogin
  23.  *
  24.  * @param Width
  25.  * @desc ê²ì ê°ë¡ í´ìë
  26.  * @default 816
  27.  *
  28.  * @param Height
  29.  * @desc ê²ì ì¸ë¡ í´ìë
  30.  * @default 624
  31.  *
  32.  * @help ì§ë¬¸ : superrogin@gmail.com
  33.  */
  34.  
  35.  
  36.  
  37. (function() {
  38.  
  39.     var parameters = PluginManager.parameters('ResolutionChanger');
  40.     var wdth = Number(parameters['Width'] || 816);
  41.     var hght = Number(parameters['Height'] || 624);
  42.     var _Scene_Base_create = Scene_Base.prototype.create;
  43.  
  44.     Scene_Base.prototype.create = function() {
  45.         _Scene_Base_create.call(this);
  46.         Graphics.width = wdth;
  47.         Graphics.height = hght;
  48.     };
  49.  
  50. })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement