2022-01-02 21:43:44 +00:00
|
|
|
from components.ai import HostileEnemy
|
|
|
|
from components.fighter import Fighter
|
|
|
|
from entity import Actor
|
2022-01-02 17:19:43 +00:00
|
|
|
|
|
|
|
|
2022-01-02 21:43:44 +00:00
|
|
|
player = Actor(
|
|
|
|
char="@",
|
|
|
|
color=(255, 255, 255),
|
|
|
|
name="Player",
|
|
|
|
ai_cls=HostileEnemy,
|
|
|
|
fighter=Fighter(hp=30, defense=2, power=5),
|
|
|
|
)
|
2022-01-02 17:19:43 +00:00
|
|
|
|
2022-01-02 21:43:44 +00:00
|
|
|
orc = Actor(
|
|
|
|
char="o",
|
|
|
|
color=(63, 127, 63),
|
|
|
|
name="Orc",
|
|
|
|
ai_cls=HostileEnemy,
|
|
|
|
fighter=Fighter(hp=10, defense=0, power=3),
|
|
|
|
)
|
|
|
|
troll = Actor(
|
|
|
|
char="T",
|
|
|
|
color=(0, 127, 0),
|
|
|
|
name="Troll",
|
|
|
|
ai_cls=HostileEnemy,
|
|
|
|
fighter=Fighter(hp=16, defense=1, power=4),
|
|
|
|
)
|