summaryrefslogtreecommitdiff
path: root/characters.py
blob: 616632311ab11d2469645e8ab69faa8cdc6a6140 (plain)
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
#!/usr/bin/env python3

import ui
from enum import Enum

Status = Enum("Status", ["NEUTRAL", "DOWN", "ATTACKING", "HIT"])


class Action:
    def __init__(self, name, button):
        self.name = name
        self.button = button


class Cowboy:
    hp = 1000
    frame_advantage = 0
    status = Status.NEUTRAL
    position = (0,0)

    all_actions = (
        Action("slash", ui.Button("attack1")),
        Action("jump", ui.Button("move1")),
        Action("block", ui.Button("move2")),
        Action("hold", ui.Button("hold")),
    )