Advertisement
nio_kasgami

BETA_SELECTION

Feb 2nd, 2016
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. function Scene_Selection(){this.initialize.apply(this,arguments);}
  3.  Scene_Selection.prototype.constructor = Scene_Selection;
  4.  
  5.  Scene_Selection.prototype = Object.create(Scene_MenuBase);
  6.  
  7.  Scene_Selection.prototype.initialize = function() {
  8.     Scene_MenuBase.prototype.initialize.call(this);
  9.  };
  10.  
  11.  Scene_Selection.prototype.create = function() {
  12.     Scene_MenuBase.prototype.create.call(this);
  13.     this.createLayout();
  14.     this.createCharacter();
  15.     this.createInfo();
  16.  };
  17.  
  18.  Scene_Selection.prototype.start = function(){};
  19.  
  20.  Scene_Selection.prototype.createBackground = function(){
  21.     var width = Graphics.boxWidth;
  22.     var height = Graphics.boxHeight;
  23.     var x = (Graphics.width - width) / 2;
  24.     var y = (Graphics.height - height) / 2;
  25.  
  26.     this._back = new TilingSprite();
  27.     this._back.bitmap = ImageManager.loadSelection("SelectionBack");
  28.     this._back.move(x,y,width,height);
  29.     this.addChild(this._back);
  30.  };
  31.  
  32.  Scene_Selection.prototype.createLayout = function(){
  33.     this._layout = new Sprite();
  34.     this._layout.bitmap = ImageManager.loadSelection("SelectionLayout");
  35.     this._layout.x = Graphics.width / 2;
  36.     this._layout.y = Graphics.height / 2;
  37.     this.addChild(this._layout);
  38.  };
  39.  
  40.  Scene_Selection.prototype.createCharacter = function(){
  41.  
  42.  };
  43.  
  44.  Scene_Selection.prototype.createInfo = function
  45.  
  46.  
  47. function Chara_Selection(){this.initialize.apply(this,arguments);}
  48.  Chara_Selection.prototype.constructor = Chara_Selection;
  49.  
  50.  Chara_Selection.prototype = Object.create(Sprite.prototype);
  51.  
  52.  Chara_Selection.prototype.initialize = function(chara){
  53.     Sprite.prototype.initialize.call(this);
  54.     this.initMember(chara);
  55.     this.setup();
  56.  };
  57.  
  58.  Chara_Selection.prototype.initMember = function(chara) {
  59.     this._index = chara;
  60.     this._dimmer = [];
  61.  };
  62.  
  63.  Chara_Selection.prototype.setup = function() {
  64.     var n = this._index.toString();
  65.     this.bitmap = ImageManager.loadSelection("Character_" + n);
  66.     this.x = index * 10 + this.position[0];
  67.     this.y = this.position[1];
  68.     this._dimmer.push(255,255,255,125);
  69.  };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement