Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/ghost.py
diff options
context:
space:
mode:
Diffstat (limited to 'ghost.py')
-rw-r--r--ghost.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/ghost.py b/ghost.py
index 50f8cd2..752df3a 100644
--- a/ghost.py
+++ b/ghost.py
@@ -23,9 +23,8 @@
import pygame
import random
-import re, os
-import olpcgames.svgsprite as svgsprite
from pygame import sprite as sprite
+from utils import get_dir
class Ghost:
def __init__(self, color, seed, x, y):
@@ -34,7 +33,8 @@ class Ghost:
self.color = color
self.sprites = sprite.RenderUpdates()
self.sprite = sprite.Sprite()
- self.sprite.image = pygame.image.load ("/home/olpc/Activities/Pacman.activity/activity/ghost_" + color + ".png")
+ self.dirName = get_dir()
+ self.sprite.image = pygame.image.load(self.dirName + "ghost_" + color + ".png")
self.sprites.add(self.sprite)
self.position = (x, y)
self.startposition = self.position