Mercurial > rinkhals
view gamelib/cursors.py @ 222:322e6d3a46e4
Turn 'd' into a fast forward / normal speed toggle at night
author | Neil Muller <drnlmuller@gmail.com> |
---|---|
date | Fri, 04 Sep 2009 22:38:48 +0000 |
parents | fa57868123d7 |
children | bca2f4396de8 |
line wrap: on
line source
"""Data for the in game cursors""" import pygame import data cursors = { 'arrow' : pygame.cursors.arrow, 'select' : pygame.cursors.broken_x, } for tag, filename in [ ('chicken', 'cursors/chkn.xbm'), ('rifle', 'cursors/equip_rifle.xbm'), ('knife', 'cursors/equip_knife.xbm'), ]: path = data.filepath(filename) # pygame 1.8 needs the file twice to do the right thing # XXX: check behaviour with pygame 1.9 cursors[tag] = pygame.cursors.load_xbm(path, path)