TWANG icon indicating copy to clipboard operation
TWANG copied to clipboard

Perform hit detection in physical LED space

Open rschenk opened this issue 6 years ago • 1 comments

Previously hit detection was done in virtual LED space (i.e. 0-1000) but this caused some weirdness, especially with a small number of LED. For example you could end up in a situation where visually the edge of an attack totally hits an enemy, but the enemy does not die...because in virtual space the attack didn't quite reach the enemy even though they are aliased to the same LED on the strip. This was confusing. Now all hit detection is done in the actual LED space, so what you see is what you get.

rschenk avatar Dec 28 '18 22:12 rschenk

@rschenk Thanks.

That sounds like a good idea. I will not be able to test the code for about 10 days. I am out of town without a TWANG. I'll merge it as soon as I can and push it on the TWANG32 too.

bdring avatar Dec 28 '18 23:12 bdring