from enum import Enum, auto
from random import random
-from mazegenerator import MazeGenerator
-from pygame import K_a, K_d, K_s, K_w, Vector2, Vector3
+from mazegenerator import MazeGenerator # type: ignore[import-untyped]
+from pygame import K_a, K_d, K_s, K_w, Vector2
from pygame.math import clamp
from pacman.ecs import minimal_plugins
tuple[Maze, Coord2D, CoordAbs2D],
(root_maze, Coord2D(), CoordAbs2D()),
)
- cell_dims = Vector3(64, 64, 0)
+ cell_dims = Coord2D(64, 64, 0)
cells = {
(x, y): (
ChildOf(root),
- Coord2D(cell_dims.elementwise() * Vector3(x, y, 0)),
+ Coord2D(Coord2D(x, y, 0).elementwise() * cell_dims),
Cell(cell, (x, y)),
ShouldRender(),
CoordAbs2D(),
return 2
if K_a in self.inputs:
return 3
+ return None
@dataclass
[
[
assets.load(
- f"./asset/enemy/ghost{variant.name}_{direction}.png"
+ "./asset/enemy/ghost"
+ + f"{variant.name}_{direction}.png"
)
]
for direction in "URDL"