Join Nostr
2024-09-05 23:51:18 UTC

ghosttie on Nostr: I've been working on getting attack mode working I decided to use Symmetric ...

I've been working on getting attack mode working

I decided to use Symmetric Shadowcasting rather than Bresenham's Line algorithm (which I've used in the past) because it isn't symmetrical

Unfortunately the sample code is written in Python (which I don't speak) and the online converter I used just skipped things it didn't understand (!?) so for a while it was just wrong with no obvious reason but seems to be working now

https://www.albertford.com/shadowcasting/

#gamedev #indiedev