Ejemplo n.º 1
0
    def __init__(self, x, y, my_time):
        name = "tile-" + str(x) + "-" + str(y)
        self.x = x
        self.y = y
        ProtoAnim.__init__(self, name, my_time)

        self.anim_frame = 0
        self.images = []
    def __init__(self, master, time_core, player):
        self.master = master
        ProtoAnim.__init__(self, "PlayerFX", time_core)
        self.attach_canvas()
        self.cover = tk.PhotoImage(file="./images/statbar/playerFXCover.gif")
        self.my_canvas.create_image(0, 0, anchor=m_c.anchor, image=self.cover, tag="cover")
        self.player = player

        self.effect_count = 0
        self.effect_list = []
Ejemplo n.º 3
0
 def __init__(self, name, my_time):
     ProtoAnim.__init__(self, name, my_time)
     # values (10 by default)
     self.max_val = 10
     self.cur_val = 10
     self.pctfull = 1.0
     # animation overhead references (only really in use if animation is playing
     self.player = None
     self.play_state = "static"
     self.dx = 0.0
     self.anim_count = 0
     self.block = False
     self.rounding_insurance = 0
     self.flashcount = 2
     self.bartype = "hp"
Ejemplo n.º 4
0
    def __init__(self, name, my_time, NPC=True, pid = 1):
        ProtoAnim.__init__(self, name, my_time)

        self.tick_til = pd.PLAYER_ANIM_DELAY
        self.facing = m_c.NORTH

        self.mode = pd.WALK
        #primary stats
        self.hp = self.max_hp = 10
        self.mp = self.max_mp = 10
        #stats that mainly interact with the world and state machine
        self.canwalk = self.maxwalk = 3
        self.active_effects = []
        self.playerID = pid
        #stats that have to do with world position
        self.x = self.y = 0
        self.next_x = self.next_y = 0

        if not NPC:
            self.buttons = dict()
Ejemplo n.º 5
0
 def __init__(self, name, time_core):
     ProtoAnim.__init__(self, name, time_core)
     self.mode = -1
     self.mousedover = False