View hotfix_1.js
(function(){ | |
var Scene_Map_prototype_start = Scene_Map.prototype.start; | |
Scene_Map.prototype.start = function() { | |
Scene_Map_prototype_start.call(this); | |
this._spriteset._tilemap.refreshTileset(); | |
}; | |
})(); |
View liply_EnableTTLCache.js
(function(){ | |
var before = Date.now(); | |
var TTL_SEC = 5.0; | |
var Scene_Base_prototype_terminate = Scene_Base.prototype.terminate; | |
Scene_Base.prototype.terminate = function (){ | |
var current = Date.now(); | |
SceneManager.updateManagers(1, (current - before)); | |
before = current; |
View liply_GC.js
(function () { | |
'use strict'; | |
Graphics._bitmapPool = []; | |
Graphics.MEMORY_THRESHOLD = 100 * 1024 * 1024; | |
// | |
// Scene_Base | |
// | |
var Scene_Base_prototype_initialize = Scene_Base.prototype.initialize; |
View liply_FixFrameSkipPatch.js
//MIT | |
SceneManager.update = function() { | |
try { | |
this.tickStart(); | |
if (Utils.isMobileDevice()) { | |
this.updateInputData(); | |
} | |
this.updateMain(); | |
this.tickEnd(); | |
} catch (e) { |
View liply_FlashPatch.js
(function(){ | |
'use strict'; | |
var Graphics = PIXI.Graphics; | |
var RenderTexture = PIXI.RenderTexture; | |
var Sprite = PIXI.Sprite; | |
Graphics.prototype._renderSpriteRect = function (renderer) | |
{ | |
var rect = this.graphicsData[0].shape; | |
if(!this._spriteRect) |
View liply_TileMapPatch.js
(function () { | |
'use strict'; | |
var TileRenderer = PIXI.WebGLRenderer.__plugins.tile; | |
TileRenderer.prototype.checkIndexBuffer = function(size) { | |
// the total number of indices in our array, there are 6 points per quad. | |
var totalIndices = size * 6; | |
var indices = this.indices; | |
if (totalIndices <= indices.length) { | |
return; | |
} |
View liply_LoopPointPatch.js
(function(){ | |
'use strict'; | |
WebAudio.prototype._onXhrLoad = function(xhr) { | |
var array = xhr.response; | |
if(Decrypter.hasEncryptedAudio) array = Decrypter.decryptArrayBuffer(array); | |
this._readLoopComments(new Uint8Array(array)); | |
WebAudio._context.decodeAudioData(array, function(buffer) { | |
this._buffer = buffer; | |
this._totalTime = buffer.duration; | |
if (this._loopLength > 0 && this._sampleRate > 0) { |
View liply_SceneCache.js
/*: | |
* @plugindesc Scene Cache System | |
* @author liply(support at liply.net) | |
* | |
* @param WebGL | |
* @desc Force WebGL (1 for on, 0 for off) | |
* @default 0 | |
* | |
* @param Report Memory | |
* @default 0 |
View liply_onBitmapLoad_patch.js
//License: MIT | |
Sprite.prototype._onBitmapLoad = function() { | |
if (!!this._bitmap && this._frame.width === 0 && this._frame.height === 0) { | |
this._frame.width = this._bitmap.width; | |
this._frame.height = this._bitmap.height; | |
} | |
this._refresh(); | |
}; |
View liply_ios8_patch.js
//============================================================================= | |
// liply_ios8_patch.js | |
//============================================================================= | |
/*: | |
* @plugindesc patch for iOS8 ~ v1.2.0 (run [Playtest] before publish) | |
* @author liply | |
* | |
* @help | |
* |
NewerOlder