Changeset 44:7e884084e7b1


Ignore:
Timestamp:
Aug 31, 2009, 4:49:59 PM (11 years ago)
Author:
Simon Cross <hodgestar@…>
Branch:
default
Convert:
svn:b4e93282-eac8-4b8b-b765-0f5d36de2b68@45
Message:

Move animal sprites to imagecache.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gamelib/animal.py

    r38 r44  
    11"""Class for the various animals in the game"""
    22
    3 import pygame
    4 import random
    53from pgu.vid import Sprite
    64
    7 import data
     5import imagecache
    86
    97class Animal(Sprite):
     
    2927
    3028    def __init__(self, pos):
    31         image = pygame.image.load(data.filepath('sprites/chkn.png'))
     29        image = imagecache.load_image('sprites/chkn.png')
    3230        Animal.__init__(self, image, pos)
    3331
     
    4543
    4644    def __init__(self, pos):
    47         image = pygame.image.load(data.filepath('sprites/fox.png'))
     45        image = imagecache.load_image('sprites/fox.png')
    4846        self.full = False
    4947        Animal.__init__(self, image, pos)
Note: See TracChangeset for help on using the changeset viewer.