Mercurial > rinkhals
annotate gamelib/cursors.py @ 256:bca2f4396de8
removed unused cursors / generated sprites
author | Adrianna Pińska <adrianna.pinska@gmail.com> |
---|---|
date | Sat, 05 Sep 2009 12:51:20 +0000 |
parents | fa57868123d7 |
children | d564ae258471 |
rev | line source |
---|---|
162 | 1 """Data for the in game cursors""" |
2 | |
3 import pygame | |
4 | |
5 import data | |
6 | |
7 | |
8 cursors = { | |
9 'arrow' : pygame.cursors.arrow, | |
10 'select' : pygame.cursors.broken_x, | |
11 } | |
12 | |
13 for tag, filename in [ | |
14 ('chicken', 'cursors/chkn.xbm'), | |
15 ]: | |
16 path = data.filepath(filename) | |
17 # pygame 1.8 needs the file twice to do the right thing | |
18 # XXX: check behaviour with pygame 1.9 | |
19 cursors[tag] = pygame.cursors.load_xbm(path, path) | |
20 | |
21 |