(Underdepth) Prepare for Pass 5

This commit is contained in:
AlexKucera committed 2026-08-13 18:26:55 +02:00
1 parent 943d44d9bc
commit 4a549d002f
32 files changed
+31 -4892

No files matched your search

-18
View File
@@ -1,18 +0,0 @@
"""Base entity: a thing with a position on the map."""
from __future__ import annotations
from dataclasses import dataclass
@dataclass(slots=True)
class Entity:
"""Anything that lives on a dungeon tile: player, enemies, items, stairs.
`sprite_key` names the procedural pixel-art sprite to rasterize for it.
`blocks` is True when other entities cannot share its tile.
"""
x: int
y: int
name: str
sprite_key: str
blocks: bool = True