Created
August 28, 2021 12:15
-
-
Save triacontane/0a1a948477ad57df77f37ee2cf63d100 to your computer and use it in GitHub Desktop.
プレイヤーの前方にあたるイベントを取得
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Game_Player.prototype.findStartableEvents = function() { | |
const x = $gameMap.roundXWithDirection(this.x, this._direction); | |
const y = $gameMap.roundHalfYWithDirection(this.y, this._direction); | |
return $gameMap.eventsXy(x, y); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment