2 # -*- coding: utf-8 -*-
4 from engine
.actor
import *
6 class avatar_hero(avatar
):
7 def __init__(self
, directory
):
8 super(avatar_hero
, self
).__init
__(directory
)
9 def load(self
, directory
):
10 self
.images_standing
= {
11 NORTH
: get_images(directory
, 'back.gif' ),
12 SOUTH
: get_images(directory
, 'front.gif'),
13 WEST
: get_images(directory
, 'left.gif'),
15 self
.images_walking
= {
16 NORTH
: get_images(directory
, 'back_walk.*.gif'),
17 SOUTH
: get_images(directory
, 'front_walk.*.gif'),
18 WEST
: get_images(directory
, 'left_walk.*.gif'),
20 self
.images_running
= {
21 NORTH
: get_images(directory
, 'back_run.*.gif'),
22 SOUTH
: get_images(directory
, 'front_run.*.gif'),
23 WEST
: get_images(directory
, 'left_run.*.gif'),
25 self
.direction
= SOUTH
27 self
.last_tick
= pygame
.time
.get_ticks()