itsapi / pycraft

A Minecraft-inspired game for the terminal
GNU General Public License v2.0
197 stars 21 forks source link

Mobs Spawning #136

Closed olls closed 7 years ago

olls commented 7 years ago

Now we have the new lighting buffer, we can add light level dependent spawning. We will need to modify the renderer so we can get the lighting buffer separately from the renderer, before we run the mob update cycle.

olls commented 7 years ago

Basic idea for mob spawning around all players using the lighting framebuffer:

This does not allow reuse of the lighting framebuffer in the rendering if they overlap... which might not be a problem.