(Underdepths) Pass 4

This commit is contained in:
AlexKucera committed 2026-08-13 15:23:35 +02:00
1 parent 0a3035ead4
commit 943d44d9bc
29 files changed
+4888

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
"""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