comparison pyntnclick/cursor.py @ 636:2748d3afcae5 pyntnclick

Excise albow. Really.
author Stefano Rivera <stefano@rivera.za.net>
date Sun, 12 Feb 2012 00:10:17 +0200
parents 3ce19d33b51f
children 2703924c8c70
comparison
equal deleted inserted replaced
635:d9623d453fd9 636:2748d3afcae5
1 # cursor.py 1 # cursor.py
2 # Copyright Boomslang team, 2010 (see COPYING File) 2 # Copyright Boomslang team, 2010 (see COPYING File)
3 # Sprite Cursor 3 # Sprite Cursor
4 4
5 from albow.resource import get_image
6 from albow.widget import Widget
7 from pygame.sprite import Sprite, RenderUpdates 5 from pygame.sprite import Sprite, RenderUpdates
8 from pygame.rect import Rect 6 from pygame.rect import Rect
9 import pygame 7 import pygame
10 import pygame.color 8 import pygame.color
11 import pygame.cursors 9 import pygame.cursors
12 import pygame.mouse 10 import pygame.mouse
13 11
12 from pyntnclick.widgets.base import Widget
13
14 # XXX: Need a way to get at the constants 14 # XXX: Need a way to get at the constants
15 from pyntnclick.constants import GameConstants 15 from pyntnclick.constants import GameConstants
16 SCENE_SIZE = GameConstants().scene_size 16 SCENE_SIZE = GameConstants().scene_size
17 # XXX: Needs a way to get at resource:
18 from pyntnclick.resources import Resources
19 get_image = Resources("Resources").get_image
17 20
18 21
19 class CursorSprite(Sprite): 22 class CursorSprite(Sprite):
20 "A Sprite that follows the Cursor" 23 "A Sprite that follows the Cursor"
21 24