]> Untitled Git - axy/ft/pacman.git/commitdiff
format
author= <=>
Thu, 15 Oct 2026 11:53:53 +0000 (13:53 +0200)
committer= <=>
Thu, 15 Oct 2026 11:53:53 +0000 (13:53 +0200)
src/pacman/game/__init__.py

index 5b4cedf108546914e43f1045efe1867a5278b7cc..2a37803fbe5062fbf5679482f737a2e42c13f2a0 100644 (file)
@@ -1,4 +1,3 @@
-import pacman
 from collections.abc import Callable
 from dataclasses import dataclass
 from enum import Enum, auto
@@ -7,9 +6,10 @@ from typing import override
 
 from mazegenerator import MazeGenerator  # type: ignore[import-untyped]
 from pydantic import BaseModel
-from pygame import Vector2, K_ESCAPE
+from pygame import K_ESCAPE, Vector2
 from pygame.math import clamp
 
+import pacman
 from pacman.ecs import minimal_plugins
 from pacman.ecs.assets import Assets
 from pacman.ecs.coord import (
@@ -22,14 +22,14 @@ from pacman.ecs.graphics import (
     AnimationSet,
     GraphicsSystems,
     Inputs,
+    InputsSystems,
     ShouldRender,
     Sprite2D,
+    StopAnimation,
+    WindowEvents,
     WindowPositionned,
     graphics_plugins,
-    WindowEvents,
     key_just_pressed,
-    InputsSystems,
-    StopAnimation,
 )
 from pacman.ecs.gui import (
     Button,
@@ -41,7 +41,7 @@ from pacman.ecs.gui import (
 )
 from pacman.ecs.hierarchy import ChildOf, Children, Hierarchy
 from pacman.ecs.schedule import StartupSchedule, UpdateSchedule
-from pacman.ecs.update import PostUpdate, Update, PreUpdate
+from pacman.ecs.update import PostUpdate, PreUpdate, Update
 from pacman.ecs.world import (
     CommandQueue,
     Component,