Initial update. /JL
This commit is contained in:
17
actors/enums.py
Normal file
17
actors/enums.py
Normal file
@@ -0,0 +1,17 @@
|
||||
from enum import Enum
|
||||
|
||||
class PlayerDirection(Enum):
|
||||
DirectionRight = 1
|
||||
DirectionLeft = 2
|
||||
DirectionUp = 3
|
||||
DirectionDown = 4
|
||||
|
||||
class GhostDirection(Enum):
|
||||
GhostRight = 1
|
||||
GhostLeft = 2
|
||||
GhostUp = 3
|
||||
GhostDown = 4
|
||||
|
||||
class PillType(Enum):
|
||||
PillTypeRegular = 1
|
||||
PillTypePower = 2
|
5
actors/ghost.py
Normal file
5
actors/ghost.py
Normal file
@@ -0,0 +1,5 @@
|
||||
from .enums import GhostDirection
|
||||
|
||||
class ActorGhost:
|
||||
def __init__(self):
|
||||
pass
|
17
actors/pacman.py
Normal file
17
actors/pacman.py
Normal file
@@ -0,0 +1,17 @@
|
||||
from .enums import PlayerDirection
|
||||
|
||||
class ActorPacman:
|
||||
def __init__(self):
|
||||
self.images: dict = {
|
||||
"right": "resources/gfx/pacman_right.png",
|
||||
"left": "resources/gfx/pacman_left.png",
|
||||
"up": "resources/gfx/pacman_up.png",
|
||||
"down": "resources/gfx/pacman_down.png"
|
||||
}
|
||||
self.direction = PlayerDirection.DirectionRight
|
||||
|
||||
def move_right(self):
|
||||
pass
|
||||
|
||||
def set_direction(self, dir: PlayerDirection):
|
||||
self.direction = dir
|
5
actors/pill.py
Normal file
5
actors/pill.py
Normal file
@@ -0,0 +1,5 @@
|
||||
from .enums import PillType
|
||||
|
||||
class Pill:
|
||||
def __init__(self, typ: PillType):
|
||||
self.pilltype = typ
|
8
actors/wall.py
Normal file
8
actors/wall.py
Normal file
@@ -0,0 +1,8 @@
|
||||
"""
|
||||
Class representing a pivoting wall.
|
||||
Only Pacman can make a wall pivot.
|
||||
"""
|
||||
|
||||
class WallPivot:
|
||||
def __init__(self):
|
||||
pass
|
Reference in New Issue
Block a user