Fix de l'update d'écran qui ne se fait pas lorsque game_state n'est pas en NORMAL

This commit is contained in:
Yannis 2023-12-26 14:54:36 +01:00
parent b9116b3c75
commit ee94335f35

View file

@ -51,11 +51,12 @@ class Renderer:
math.ceil(rendered_surface_size[1] * self.engine.camera.zoom))),
(0, 0))
# Apres avoir tout rendu, on met à jour l'écran
display.update()
elif self.engine.game_state == GameState.BOSS_FIGHT:
self.window.fill((255, 0, 0))
# Apres avoir tout rendu, on met à jour l'écran
display.update()
def register_animation(self, animation: Anim, name: str):
"""Enregistre une animation."""
self.animations[name] = animation