Changeset 130:96c5ef7613b5


Ignore:
Timestamp:
Sep 2, 2009, 9:40:47 PM (11 years ago)
Author:
Jeremy Thurgood <firxen@…>
Branch:
default
Convert:
svn:b4e93282-eac8-4b8b-b765-0f5d36de2b68@131
Message:

NINJA FOXES!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gamelib/animal.py

    r125 r130  
    131131
    132132    STEALTH = 20
     133    IMAGE_FILE = 'sprites/fox.png'
    133134
    134135    costs = {
     
    143144
    144145    def __init__(self, pos):
    145         image_left = imagecache.load_image('sprites/fox.png')
    146         image_right = imagecache.load_image('sprites/fox.png',
    147                 ("right_facing",))
     146        image_left = imagecache.load_image(self.IMAGE_FILE)
     147        image_right = imagecache.load_image(self.IMAGE_FILE, ("right_facing",))
    148148        Animal.__init__(self, image_left, image_right, pos)
    149149        self.landmarks = [self.pos]
     
    321321
    322322    STEALTH = 60
     323    IMAGE_FILE = 'sprites/ninja_fox.png'
    323324
    324325class DemoFox(Fox):
Note: See TracChangeset for help on using the changeset viewer.