@theBanov I could show you the code I used for Traal, it's probably not the best thing to learn from though.
anyone know a good example of top-down lighting? interested in the most efficient way to cast a radius of light that collides with squares
-
-
-
@Draknek if its convenient, a paste bin would be rad - Antwoorden weergeven
Nieuw gesprek -
-
-
@theBanov Pseudo-code: render light to bitmap. For each wall tile: if tile overlaps light, generate shadow polygon, remove that from light -
@Draknek that's what I was thinking, though I thought there might be some fast way to zero in on the important corners - Antwoorden weergeven
Nieuw gesprek -
Het laden lijkt wat langer te duren.
Twitter is mogelijk overbelast of ondervindt een tijdelijke onderbreking. Probeer het opnieuw of bekijk de Twitter-status voor meer informatie.