""" In the night, the mould attacks. """
import pygame.locals as pgl
+import pygame.surface
import pymunk
from ..enemies import Boyd
from ..events import SceneChangeEvent
from ..utils import debug_timer
+from ..loader import loader
from ..turnip import Turnip
@debug_timer("night.render")
def render(self, surface, gamestate):
- surface.fill((0, 0, 155))
+ surface.blit(loader.load_image("textures", "soil.png"), (0, 0))
+ darkness = pygame.surface.Surface(surface.get_size())
+ darkness = darkness.convert_alpha()
+ darkness.fill((0, 0, 0, 150))
+ surface.blit(darkness, (0, 0))
+
self._mould.render(surface)
+
for turnip in self._turnips[:]:
if turnip.eaten:
self._turnips.remove(turnip)