johnnovak / gridmonger

Your trusty old-school cRPG mapping companion
https://gridmonger.johnnovak.net/
Do What The F*ck You Want To Public License
61 stars 2 forks source link

Simplify wrap around movement logic #3

Closed Th30n closed 2 years ago

Th30n commented 2 years ago

This also fixes an issue where the cursor would not move North or West when near the edge with wrap mode disabled. E.g. CTRL+Up when less than 5 squares to the map border would not move to the map border itself, but South & East directions would.

johnnovak commented 2 years ago

Thanks @Th30n, that's a nice fix and simplification of the movement logic.