Implementation de la base de l'engine #3

Merged
yannis merged 33 commits from Engine_base into main 2023-12-26 16:36:16 +00:00
Showing only changes of commit ee94335f35 - Show all commits

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