diff options
| author | Elizabeth Hunt <elizabeth@simponic.xyz> | 2024-08-20 17:34:18 -0700 |
|---|---|---|
| committer | Elizabeth Hunt <elizabeth@simponic.xyz> | 2024-08-20 17:34:18 -0700 |
| commit | b4140460014d1fc134df9127600f6da2346376e3 (patch) | |
| tree | 5bee11079f3ab9e3fd5d2a68cee483c2c33557f4 /kennel/engine/entities/laser.py | |
| parent | 6f223d2462df5e08856fb83fd76773a8af33acf9 (diff) | |
| download | kennel.hatecomputers.club-b4140460014d1fc134df9127600f6da2346376e3.tar.gz kennel.hatecomputers.club-b4140460014d1fc134df9127600f6da2346376e3.zip | |
init commit with base ECS and Network System
Diffstat (limited to 'kennel/engine/entities/laser.py')
| -rw-r--r-- | kennel/engine/entities/laser.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/kennel/engine/entities/laser.py b/kennel/engine/entities/laser.py new file mode 100644 index 0000000..ead72a6 --- /dev/null +++ b/kennel/engine/entities/laser.py @@ -0,0 +1,13 @@ +from .entity import Entity, EntityType +from kennel.engine.components.position import Position +from kennel.engine.components.controllable import Controllable + + +class Laser(Entity): + def __init__(self, id: str, controllable_by: str): + components = [ + Position(0, 0), + Controllable(controllable_by), + ] + + super().__init__(EntityType.LASER, id, components) |
