Mercurial > rinkhals
annotate gamelib/cursors.py @ 355:4cbc1ff98a2c
Mac OS X packaging happy.
author | Jeremy Thurgood <firxen@gmail.com> |
---|---|
date | Sat, 05 Sep 2009 23:50:37 +0000 |
parents | cade64404997 |
children | 71f5897ac5ef |
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, | |
272
cade64404997
Use (wrecking) ball for smashing down trees.
Simon Cross <hodgestar@gmail.com>
parents:
258
diff
changeset
|
11 'ball': pygame.cursors.ball, |
162 | 12 } |
13 | |
14 for tag, filename in [ | |
15 ('chicken', 'cursors/chkn.xbm'), | |
258 | 16 ('sell', 'cursors/sell_cursor.xbm'), |
162 | 17 ]: |
18 path = data.filepath(filename) | |
19 # pygame 1.8 needs the file twice to do the right thing | |
20 # XXX: check behaviour with pygame 1.9 | |
21 cursors[tag] = pygame.cursors.load_xbm(path, path) | |
22 | |
23 |