source: gamelib/cursors.py @ 258:d564ae258471

Last change on this file since 258:d564ae258471 was 258:d564ae258471, checked in by Simon Cross <hodgestar@…>, 11 years ago

Add sell xbm cursor.

File size: 487 bytes
Line 
1"""Data for the in game cursors"""
2
3import pygame
4
5import data
6
7
8cursors = {
9        'arrow' : pygame.cursors.arrow,
10        'select' : pygame.cursors.broken_x,
11        }
12
13for tag, filename in [
14        ('chicken', 'cursors/chkn.xbm'),
15        ('sell', 'cursors/sell_cursor.xbm'),
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
Note: See TracBrowser for help on using the repository browser.