-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCenterGameoverImage.js
42 lines (37 loc) · 1.3 KB
/
CenterGameoverImage.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//=============================================================================
// CenterGameoverImage.js
//=============================================================================
/*:
* @plugindesc Centers the image in the gameover scene.
* @author Toru Higuruma
*
* @help CenterGameoverImage v1.0 (2019-03-17)
* Copyright (c) 2019 Toru Higuruma
* This plugin is provided under the MIT License.
* https://git.io/tmv
*
* Plugin commands:
* This plugin does not provide plugin commands.
*/
/*:ja
* @plugindesc ゲームオーバー画面の画像を中央揃えにします。
* @author Toru Higuruma
*
* @help CenterGameoverImage v1.0 (2019-03-17)
* Copyright (c) 2019 Toru Higuruma
* このプラグインは MIT License の下で提供されます。
* https://git.io/tmv
*
* プラグインコマンド:
* このプラグインにプラグインコマンドはありません。
*/
(function() {
var _Scene_Gameover_createBackground = Scene_Gameover.prototype.createBackground;
Scene_Gameover.prototype.createBackground = function() {
_Scene_Gameover_createBackground.call(this);
this._backSprite.x = Graphics.width / 2;
this._backSprite.y = Graphics.height / 2;
this._backSprite.anchor.x = 0.5;
this._backSprite.anchor.y = 0.5;
};
})();