-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathActors.py
28 lines (24 loc) · 863 Bytes
/
Actors.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
from GameActor import *
import Components.WarioComponents as wc
import Components.SpearheadComponents as spc
from Components.GeneralComponents import *
class Wario(GameActor):
def __init__(self, position, engine_wrapper):
GameActor.__init__(self, position, engine_wrapper)
self.rect.size = (20, 30)
self.components = [GravityComponent(),
wc.StatesComponent(),
wc.LookComponent(),
wc.MoveComponent(),
GeneralCollisionComponent(),
ApplyVelocityComponent()]
class SpearHead(GameActor):
def __init__(self, position, engine_wrapper):
super(SpearHead, self).__init__(position, engine_wrapper)
self.rect.size = (20, 16)
self.components = [GravityComponent(),
spc.StateComponent(),
spc.LookComponent(),
spc.MoveComponent(),
GeneralCollisionComponent(),
ApplyVelocityComponent()]