diff --git a/actors/enums.py b/actors/enums.py new file mode 100644 index 0000000..fa5b52d --- /dev/null +++ b/actors/enums.py @@ -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 \ No newline at end of file diff --git a/actors/ghost.py b/actors/ghost.py new file mode 100644 index 0000000..7775768 --- /dev/null +++ b/actors/ghost.py @@ -0,0 +1,5 @@ +from .enums import GhostDirection + +class ActorGhost: + def __init__(self): + pass \ No newline at end of file diff --git a/actors/pacman.py b/actors/pacman.py new file mode 100644 index 0000000..e6a1a68 --- /dev/null +++ b/actors/pacman.py @@ -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 \ No newline at end of file diff --git a/actors/pill.py b/actors/pill.py new file mode 100644 index 0000000..a26edcc --- /dev/null +++ b/actors/pill.py @@ -0,0 +1,5 @@ +from .enums import PillType + +class Pill: + def __init__(self, typ: PillType): + self.pilltype = typ \ No newline at end of file diff --git a/actors/wall.py b/actors/wall.py new file mode 100644 index 0000000..0f966f4 --- /dev/null +++ b/actors/wall.py @@ -0,0 +1,8 @@ +""" +Class representing a pivoting wall. +Only Pacman can make a wall pivot. +""" + +class WallPivot: + def __init__(self): + pass \ No newline at end of file diff --git a/pman.py b/pman.py new file mode 100644 index 0000000..6b57f63 --- /dev/null +++ b/pman.py @@ -0,0 +1,8 @@ +import pygame + +def main() -> None: + pygame.init() + + +if __name__ == "__main__": + main()