Skip to content

Instantly share code, notes, and snippets.

@oggy83
oggy83 / Oggy_PictureMaskMZ.js
Last active Sep 11, 2021
Oggy_PictureMaskMZ.js
View Oggy_PictureMaskMZ.js
/*:ja
* @target MZ
* @plugindesc ピクチャにマスクをかけるプラグイン
* @author oggy (http://www.oggy-rpg.com/)
* @beforeThan PluginBaseFunction
*
* @command SET_PICTURE_MASK
* @text ピクチャを別のピクチャのマスク画像として適用する
*
* @arg target
View live2drmmz.js
'use strict';
var _Oggy_Spriteset_Map_createLowerLayer = Spriteset_Map.prototype.createLowerLayer;
Spriteset_Map.prototype.createLowerLayer = function() {
_Oggy_Spriteset_Map_createLowerLayer.apply(this);
var live2d = new Sprite_Live2d();
live2d.loadModel("live2d/mark_free_t02/mark_free_t02.model3.json");
live2d.x = 300;
live2d.y = 300;
@oggy83
oggy83 / cubism4.js
Last active Jul 5, 2021
pixi-live2d-display
View cubism4.js
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("@pixi/math"), require("@pixi/utils"), require("@pixi/core"), require("@pixi/text"), require("@pixi/display"), require("@pixi/graphics"));
else if(typeof define === 'function' && define.amd)
define(["@pixi/math", "@pixi/utils", "@pixi/core", "@pixi/text", "@pixi/display", "@pixi/graphics"], factory);
else if(typeof exports === 'object')
exports["live2d"] = factory(require("@pixi/math"), require("@pixi/utils"), require("@pixi/core"), require("@pixi/text"), require("@pixi/display"), require("@pixi/graphics"));
else
root["PIXI"] = root["PIXI"] || {}, root["PIXI"]["live2d"] = factory(root["PIXI"], root["PIXI"]["utils"], root["PIXI"], root["PIXI"], root["PIXI"], root["PIXI"]);
})(window, function(__WEBPACK_EXTERNAL_MODULE__2__, __WEBPACK_EXTERNAL_MODULE__3__, __WEBPACK_EXTERNAL_MODULE__20__, __WEBPACK_EXTERNAL_MODULE__24__, __WEBPACK_EXTERNAL_MODULE_
View Oggy_CustomLoading.js
//=============================================================================
// Oggy_CustomLoading.js
//=============================================================================
/*:
* @plugindesc v1.00 This plugin customizes a loading ui
* @author o_ggy http://www.oggy-rpg.com/
*
* @help
* (C)2019 o_ggy
View Oggy_1_3_1_MemoryLeakPatch.js
//=============================================================================
// Oggy_1_3_1_MemoryLeakPatch.js
//=============================================================================
var _Oggy_TextureRpgUid_SnapTexture = 1;
// NOTE: This code deeply depends on PIXI 1.4.0 implementation.
// See TextureGarbageCollector.prototype.run()
Oggy_destroyTexture = function(uid) {
if (!Graphics.isWebGL()) {