本帖最后由 汪汪 于 2016-3-7 17:39 编辑
修改下面部分就好
- //创建前景
- Scene_Title.prototype.createForeground = function() {
- this._gameTitleSprite = new Sprite(new Bitmap(Graphics.width, Graphics.height));
- this.addChild(this._gameTitleSprite);
- if ($dataSystem.optDrawTitle) {
- this.drawGameTitle();
- }
- };
- //绘制游戏标题
- Scene_Title.prototype.drawGameTitle = function() {
- var x = 20;
- var y = Graphics.height / 4;
- var maxWidth = Graphics.width - x * 2;
- var text = $dataSystem.gameTitle;
- this._gameTitleSprite.bitmap.outlineColor = 'black';
- this._gameTitleSprite.bitmap.outlineWidth = 8;
- this._gameTitleSprite.bitmap.fontSize = 72;
- this._gameTitleSprite.bitmap.drawText(text, x, y, maxWidth, 48, 'center');
- };
复制代码 比如这样:
(function() { Scene_Title.prototype.createForeground = function() { this._gameTitleSprite = new Sprite(ImageManager.loadSystem("ButtonSet")); this.addChild(this._gameTitleSprite); this._gameTitleSprite.x = 20 this._gameTitleSprite.y = Graphics.height / 4; //if ($dataSystem.optDrawTitle) { // this.drawGameTitle(); //} }; })();
(function() {
Scene_Title.prototype.createForeground = function() {
this._gameTitleSprite = new Sprite(ImageManager.loadSystem("ButtonSet"));
this.addChild(this._gameTitleSprite);
this._gameTitleSprite.x = 20
this._gameTitleSprite.y = Graphics.height / 4;
//if ($dataSystem.optDrawTitle) {
// this.drawGameTitle();
//}
};
})();
|