patch a melonJS function
target object
target function
replacement function
patch
plugin
// redefine the me.game.update function with a new oneme.plugin.patch(me.game, "update", function () {// display something in the consoleconsole.log("duh");// call the original me.game.update functionthis._patched();}); Copy
// redefine the me.game.update function with a new oneme.plugin.patch(me.game, "update", function () {// display something in the consoleconsole.log("duh");// call the original me.game.update functionthis._patched();});
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル