CaravelGames / drod

The official public repository of Deadly Rooms of Death and DROD RPG
http://caravelgames.com
56 stars 17 forks source link

RPG: Clip sword blit when its previous location is outside room #556

Closed Hypexion closed 11 months ago

Hypexion commented 1 year ago

Moving away from a room edge using a tunnel can lead to an assert, as the player's sword may be drawn outside of the room during movement animation.

To fix, clipping should be applied to the sword blit in the case when the player is being animated, and their previous sword position is outside of the room.

Thread: http://forum.caravelgames.com/viewtopic.php?TopicID=45844