Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/game.py
diff options
context:
space:
mode:
authorCristhofer Travieso <cristhofert97@gmail.com>2012-10-03 21:13:57 (GMT)
committer Cristhofer Travieso <cristhofert97@gmail.com>2012-10-03 21:13:57 (GMT)
commit7ee8058d85f3d38c6cdff0f0320505f3d8a6c616 (patch)
tree72424b09b12874974f769dd415d5d7fd2a070f2f /game.py
parent236da2e52e2f70eec5d4a04cdb40648fc5048a87 (diff)
Add backgroud
Signed-off-by: Cristhofer Travieso <cristhofert97@gmail.com>
Diffstat (limited to 'game.py')
-rw-r--r--game.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/game.py b/game.py
index 1855f65..27c79ac 100644
--- a/game.py
+++ b/game.py
@@ -7,7 +7,9 @@ class AntFarm(glucosa.GameArea):
def __init__(self):
glucosa.GameArea.__init__(self)
-
+
+ self.backgroud = glucosa.Image('images/backgroud.png')
+
image = glucosa.Image('images/aceituna.png')
sprite = glucosa.Sprite(image, 100, 100, 18, 18, scale=2)
self.add_sprite(sprite)