Fix de l'update d'écran qui ne se fait pas lorsque game_state n'est pas en NORMAL
This commit is contained in:
parent
b9116b3c75
commit
ee94335f35
|
@ -51,11 +51,12 @@ class Renderer:
|
||||||
math.ceil(rendered_surface_size[1] * self.engine.camera.zoom))),
|
math.ceil(rendered_surface_size[1] * self.engine.camera.zoom))),
|
||||||
(0, 0))
|
(0, 0))
|
||||||
|
|
||||||
# Apres avoir tout rendu, on met à jour l'écran
|
|
||||||
display.update()
|
|
||||||
elif self.engine.game_state == GameState.BOSS_FIGHT:
|
elif self.engine.game_state == GameState.BOSS_FIGHT:
|
||||||
self.window.fill((255, 0, 0))
|
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):
|
def register_animation(self, animation: Anim, name: str):
|
||||||
"""Enregistre une animation."""
|
"""Enregistre une animation."""
|
||||||
self.animations[name] = animation
|
self.animations[name] = animation
|
||||||
|
|
Loading…
Reference in a new issue