AS3 Coding
2 posts
- Simple Shadow Casting in 2D
Drawing a flashlight-style light cone and casting 2D shadows from walls, with a demo you can walk around in.
- How to check if a point is inside a hexagon
A fast point-in-hexagon test that uses the hexagon's symmetry to get away with a bounding box check and a single dot product.
