Totally bogged down

Lighting is important for my game, so I need an LOS algorithm. Unfortunately my attempt to implement Bresenham’s is not working on the Y axis for unknown reasons, and KineticJS and its lack of (clearly documented) layer blending is not helping me debug it. I think I’m going to have to switch to another one.

Here’s a screenshot anyway. As you can see, the ‘lighting’ layer is completely obscuring the placeholder player graphic as I’m unable to tweak its opacity.

All I have to show.

 

Another argument in favor of learning your tools before LD starts, I guess.

Tags: journal