VedVid / untitled-strategy-game

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

Pathfinding correctly detects obstacles on the mouse position, but draws path inverted vertically. #1

Closed VedVid closed 1 year ago

VedVid commented 1 year ago

Mouse button position indicated by the red circle drawn on the image.

obraz

obraz

obraz

1) It does detect if mouse is over the empty tile (draws path on images 1 and 2, but not on third)

2) It does write path inverted vertically.

VedVid commented 1 year ago

It does not seem to be related to the matrix.reverse() called in Pathfinder._make_matrix

VedVid commented 1 year ago

Fixed by d608312c6e93089435a843f79fadc412e080f51b. WIll update hash after ff merge.

VedVid commented 1 year ago

Merged by ba8f76ed0960a9fb266f8bd0e0a85de5d9462609