14 lines
240 B
Python
14 lines
240 B
Python
"""Base entity: position, identity, sprite key."""
|
|
from __future__ import annotations
|
|
|
|
from dataclasses import dataclass
|
|
|
|
|
|
@dataclass(slots=True)
|
|
class Entity:
|
|
x: int
|
|
y: int
|
|
name: str
|
|
sprite_key: str
|
|
blocks: bool = True
|