Skip to content

Instantly share code, notes, and snippets.

liply

Block or report user

Report or block liply

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
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();
};
})();
@liply
liply / liply_EnableTTLCache.js
Last active Jan 5, 2017
for 1.3.4 Enable TTL Cache
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;
@liply
liply / liply_FixFrameSkipPatch.js
Created Aug 16, 2016
fix frame skip problem on Android Chrome
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)
@liply
liply / liply_TileMapPatch.js
Last active Aug 11, 2016
fix tile map bug
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) {
@liply
liply / liply_SceneCache.js
Last active Aug 8, 2016
fix memory bloat patch
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
@liply
liply / liply_onBitmapLoad_patch.js
Created Jun 24, 2016
EnemyBookで落ちるバグ対処
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();
};
@liply
liply / liply_ios8_patch.js
Created Jun 24, 2016
MV patch for iOS8 (~ v1.2.0)
View liply_ios8_patch.js
//=============================================================================
// liply_ios8_patch.js
//=============================================================================
/*:
* @plugindesc patch for iOS8 ~ v1.2.0 (run [Playtest] before publish)
* @author liply
*
* @help
*
You can’t perform that action at this time.