source: gamelib/cursors.py @ 272:cade64404997

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

Use (wrecking) ball for smashing down trees.

File size: 524 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        'ball': pygame.cursors.ball,
12        }
13
14for tag, filename in [
15        ('chicken', 'cursors/chkn.xbm'),
16        ('sell', 'cursors/sell_cursor.xbm'),
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
Note: See TracBrowser for help on using the repository browser.