Mercurial > pyntnclick
diff gamelib/scenes/mess.py @ 302:6d93e04036c9
CursorSprite: Default pointer-position to the centre of the cursor
author | Stefano Rivera <stefano@rivera.za.net> |
---|---|
date | Sat, 28 Aug 2010 01:32:54 +0200 |
parents | c3ff6ff879e6 |
children | bd9a760eeb18 |
line wrap: on
line diff
--- a/gamelib/scenes/mess.py Sat Aug 28 01:22:44 2010 +0200 +++ b/gamelib/scenes/mess.py Sat Aug 28 01:32:54 2010 +0200 @@ -62,7 +62,7 @@ "After emptying the full can." INVENTORY_IMAGE = "empty_can.png" - CURSOR = CursorSprite('empty_can_cursor.png', 20, 30) + CURSOR = CursorSprite('empty_can_cursor.png') def interact_with_titanium_leg(self, item, state): return Result("Flattening the can doesn't look like a useful thing to do.") @@ -72,7 +72,7 @@ "Found on the shelf." INVENTORY_IMAGE = "full_can.png" - CURSOR = CursorSprite('full_can_cursor.png', 20, 30) + CURSOR = CursorSprite('full_can_cursor.png') def interact_with_titanium_leg(self, item, state): dented = DentedCan("dented_can") @@ -85,7 +85,7 @@ "A can banged on with the femur" INVENTORY_IMAGE = "dented_can.png" - CURSOR = CursorSprite('dented_can_cursor.png', 20, 30) + CURSOR = CursorSprite('dented_can_cursor.png') def interact_with_titanium_leg(self, item, state): return Result("You club the can with the femur. The dents shift around, but it still doesn't open.", soundfile="can_hit.ogg") @@ -227,7 +227,7 @@ class DetergentBottle(Item): INVENTORY_IMAGE = 'triangle.png' - CURSOR = CursorSprite('triangle.png', 25, 23) + CURSOR = CursorSprite('triangle.png') class ToMap(Door):