VedVid / untitled-strategy-game

Small strategy game, inspired by Into The Breach
Other
2 stars 1 forks source link

target_sprite not shown correctly when player is on the edges of the map #10

Closed VedVid closed 1 year ago

VedVid commented 1 year ago

'NoneType' object has no attribute 'sprite_targeted'

VedVid commented 1 year ago

Inverted axis?

VedVid commented 1 year ago

For debugging this issue, it is required to replace silenced exceptions in sprite_tracker with general Exception that prints to console.

VedVid commented 1 year ago

With nearly all Exceptions set to generic ones in SpriteTracker, it seems that only Tiles are problematic. Enemies and MapObject instances are being found correctly.

VedVid commented 1 year ago

On the right and left sides, the upper and lower tiles are not highlighted. On the bottom side, also the upper tile is not highlighted! On the top, everything seems all right. Exceptions are being thrown, but that's expected as there is no "upper tile" there. The lower tile is highlighted correctly.