Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Scene_Selection(){this.initialize.apply(this,arguments);}
- Scene_Selection.prototype.constructor = Scene_Selection;
- Scene_Selection.prototype = Object.create(Scene_MenuBase);
- Scene_Selection.prototype.initialize = function() {
- Scene_MenuBase.prototype.initialize.call(this);
- };
- Scene_Selection.prototype.create = function() {
- Scene_MenuBase.prototype.create.call(this);
- this.createLayout();
- this.createCharacter();
- this.createInfo();
- };
- Scene_Selection.prototype.start = function(){};
- Scene_Selection.prototype.createBackground = function(){
- var width = Graphics.boxWidth;
- var height = Graphics.boxHeight;
- var x = (Graphics.width - width) / 2;
- var y = (Graphics.height - height) / 2;
- this._back = new TilingSprite();
- this._back.bitmap = ImageManager.loadSelection("SelectionBack");
- this._back.move(x,y,width,height);
- this.addChild(this._back);
- };
- Scene_Selection.prototype.createLayout = function(){
- this._layout = new Sprite();
- this._layout.bitmap = ImageManager.loadSelection("SelectionLayout");
- this._layout.x = Graphics.width / 2;
- this._layout.y = Graphics.height / 2;
- this.addChild(this._layout);
- };
- Scene_Selection.prototype.createCharacter = function(){
- };
- Scene_Selection.prototype.createInfo = function
- function Chara_Selection(){this.initialize.apply(this,arguments);}
- Chara_Selection.prototype.constructor = Chara_Selection;
- Chara_Selection.prototype = Object.create(Sprite.prototype);
- Chara_Selection.prototype.initialize = function(chara){
- Sprite.prototype.initialize.call(this);
- this.initMember(chara);
- this.setup();
- };
- Chara_Selection.prototype.initMember = function(chara) {
- this._index = chara;
- this._dimmer = [];
- };
- Chara_Selection.prototype.setup = function() {
- var n = this._index.toString();
- this.bitmap = ImageManager.loadSelection("Character_" + n);
- this.x = index * 10 + this.position[0];
- this.y = this.position[1];
- this._dimmer.push(255,255,255,125);
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement