view gamelib/cursors.py @ 373:c14a6d640507 1.0.x 1.0.1

Version 1.0.1.
author Simon Cross <hodgestar@gmail.com>
date Tue, 13 Oct 2009 20:30:08 +0000
parents cade64404997
children 71f5897ac5ef
line wrap: on
line source

"""Data for the in game cursors"""

import pygame

import data


cursors = {
        'arrow' : pygame.cursors.arrow,
        'select' : pygame.cursors.broken_x,
        'ball': pygame.cursors.ball,
        }

for tag, filename in [
        ('chicken', 'cursors/chkn.xbm'),
        ('sell', 'cursors/sell_cursor.xbm'),
        ]:
    path = data.filepath(filename)
    # pygame 1.8 needs the file twice to do the right thing
    # XXX: check behaviour with pygame 1.9
    cursors[tag] = pygame.cursors.load_xbm(path, path)