unholy-maiden/js/plugins/Unit03_timer.js
2025-12-18 09:44:14 -06:00

28 lines
No EOL
567 B
JavaScript

/*:
* @target MZ
* @plugindesc タイマー位置の変更
* @author PB
*
* @help
*
* @param paraX
* @text x座標
* @type number
* @desc x座標
* @param paraY
* @text y座標
* @type number
* @desc y座標
*/
(() => {
'use strict';
const pluginName = document.currentScript.src.split("/").pop().replace(/\.js$/, "");
const parameters = PluginManager.parameters(pluginName);
const newX = parameters['paraX'];
const newY = parameters['paraY'];
Sprite_Timer.prototype.updatePosition = function () {
this.x = newX;
this.y = newY;
};
})();