ecs #58

Merged
raphael merged 70 commits from ecs into main 2023-11-03 15:29:36 +00:00
Showing only changes of commit f97e32308d - Show all commits

31
src/plugins/display.py Normal file
View file

@ -0,0 +1,31 @@
"""
Un plugin pour la gestion de la fenetre du jeu.
"""
import pygame
from ecs import World
from engine import GlobalScene
def __initialize(_world: World):
"""
Initialise pygame et les ressources pour la gestion de la fenetre.
"""
pygame.init()
pygame.display.set_mode((800, 600), pygame.RESIZABLE)
def __terminate(_world: World):
"""
Arrête pygame.
"""
pygame.quit()
PLUGIN = GlobalScene(
[__initialize],
[],
[],
[__terminate],
)