Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/horse.py
diff options
context:
space:
mode:
Diffstat (limited to 'horse.py')
-rwxr-xr-xhorse.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/horse.py b/horse.py
index 488a1ef..16a66ea 100755
--- a/horse.py
+++ b/horse.py
@@ -26,7 +26,7 @@ import pygame
import logging
import math
import random
-
+import cursor
class Game():
@@ -56,7 +56,8 @@ class Game():
self.horse_speed = 8 # pixels per tick; at 25 ticks/second, this is approx 200 pixels per second
self.horse_reach = 20 # pixels from cener of horse where he can reach
self.target_loc = None
-
+ self.cursor = pygame.cursors.compile(cursor.cursor_data)
+
def setup(self):
self.screen_size = self.screen.get_size() # tuple
# load the images and convert to screen format
@@ -195,6 +196,7 @@ class Game():
self.moving_left = False
def run(self):
+ pygame.mouse.set_cursor((32,32), (1,1), *self.cursor)
self.screen = pygame.display.get_surface()
clock = pygame.time.Clock()
self.setup()