Mercurial > rinkhals
view gamelib/cursors.py @ 539:f4d1b9ff9558
Lumberjacks only wander off when their work is done.
author | Jeremy Thurgood <firxen@gmail.com> |
---|---|
date | Sat, 28 Nov 2009 09:52:08 +0000 |
parents | 71f5897ac5ef |
children |
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'), ('repair', 'cursors/repair_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)