Skip to content

Instantly share code, notes, and snippets.

@triacontane
Created April 11, 2021 09:03
Show Gist options
  • Save triacontane/fb943056a7b540eb7fa6d18eb3ced939 to your computer and use it in GitHub Desktop.
Save triacontane/fb943056a7b540eb7fa6d18eb3ced939 to your computer and use it in GitHub Desktop.
武器スプライトをアクターの前面に表示
(()=> {
'use strict';
const _Sprite_Actor_createMainSprite = Sprite_Actor.prototype.createMainSprite;
Sprite_Actor.prototype.createMainSprite = function() {
_Sprite_Actor_createMainSprite.apply(this, arguments);
this.addChild(this._weaponSprite);
};
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment