Log In  

Cart [#12023#] | Code | 2015-07-29 | No License | Embed

This is a really basic test of a supercover algorithm (for determining which grids in a square a line from square 1 to square 2 crosses). Potentially useful for collision detection or line of sight.

Algorithm is cribbed from online (with minor tweaks), and this is otherwise quite simple. Mostly a proof of concept, and to see how well it performed within PICO 8.

Up / Down / Left / Right: move the end point.
Z: change which end point you're moving

P#12024 2015-07-29 19:02 ( Edited 2015-07-29 23:03)


[Please log in to post a comment]

About | Contact | Updates | Terms of Use
Follow Lexaloffle:        
Generated 2019-10-14 00:58 | 0.013s | 4194k | Q:17