Mercurial > rinkhals
annotate gamelib/cursors.py @ 266:390ef4387e05
Update TODO
author | Neil Muller <drnlmuller@gmail.com> |
---|---|
date | Sat, 05 Sep 2009 14:01:14 +0000 |
parents | d564ae258471 |
children | cade64404997 |
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'), | |
258 | 15 ('sell', 'cursors/sell_cursor.xbm'), |
162 | 16 ]: |
17 path = data.filepath(filename) | |
18 # pygame 1.8 needs the file twice to do the right thing | |
19 # XXX: check behaviour with pygame 1.9 | |
20 cursors[tag] = pygame.cursors.load_xbm(path, path) | |
21 | |
22 |