-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathentity_factories.py
45 lines (34 loc) · 1.08 KB
/
entity_factories.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
'''
Stores all the entities that can be placed on a map as instances of the 'Actor' class.
Includes player, NPCs (shopkeepers, etc.) enemies, and more!
'''
#_______________________________________________________________________// MODULES
from entity import Actor
from components.ai import HostileEnemy
from components.fighter import Fighter
from colors import *
#_______________________________________________________________________// DATA (TUPLES) - ENTITIES
# Player
player = Actor(
char = "@",
color = yellow,
name = "Player",
ai_cls = HostileEnemy,
fighter = Fighter(hp=30, defense=2, power=5)
)
#Enemies
# TODO: Set enemy's 'Fighter' stats to derive from player's stats (so difficulty will scale up)
orc = Actor(
char = "O",
color = red,
name = "Orc",
ai_cls = HostileEnemy,
fighter = Fighter(hp=10, defense=0, power=3)
)
troll = Actor(
char = "T",
color = red,
name = "Troll",
ai_cls = HostileEnemy,
fighter = Fighter(hp=16, defense=1, power=4)
)