Файловый менеджер - Редактировать - /home/jogoso94/public_html/jogos/prince_js/src/tiles/Sword.js
�азад
"use strict"; PrinceJS.Tile.Sword = function (game, modifier, type) { PrinceJS.Tile.Base.call(this, game, PrinceJS.Level.TILE_SWORD, modifier, type); this.tick = this.game.rnd.between(40, 167); this.step = 0; }; PrinceJS.Tile.Sword.prototype = Object.create(PrinceJS.Tile.Base.prototype); PrinceJS.Tile.Sword.prototype.constructor = PrinceJS.Tile.Sword; PrinceJS.Tile.Sword.prototype.update = function () { if (this.step === -1) { this.back.frameName = this.key + "_" + this.element; this.tick = this.game.rnd.between(40, 167); } this.step++; if (this.step === this.tick) { this.back.frameName += "_bright"; this.step = -1; } }; PrinceJS.Tile.Sword.prototype.removeObject = function () { this.element = PrinceJS.Level.TILE_FLOOR; this.modifier = 0; this.front.frameName = this.key + "_" + this.element + "_fg"; this.back.frameName = this.key + "_" + this.element; let tileChild = this.game.make.sprite(0, 0, this.key, this.key + "_" + this.element + "_" + this.modifier); this.back.addChild(tileChild); };
| ver. 1.4 |
Github
|
.
| PHP 8.2.29 | Генераци� �траницы: 0 |
proxy
|
phpinfo
|
�а�тройка