From d14f3ccbf1d4fdb520a1f28a731503e86fcc4318 Mon Sep 17 00:00:00 2001 From: davesilver Date: Tue, 03 Aug 2010 19:41:13 +0000 Subject: Working on integration --- diff --git a/MAFH2/fortuneengine/DrawableObject.py b/MAFH2/fortuneengine/DrawableObject.py index a07cc69..35c2f26 100644 --- a/MAFH2/fortuneengine/DrawableObject.py +++ b/MAFH2/fortuneengine/DrawableObject.py @@ -2,7 +2,7 @@ import pygame class DrawableObject(pygame.sprite.Sprite): - def __init__(self, images, textfileName, x = 0, y = 0): + def __init__(self, images, textfileName, transparent = False x = 0, y = 0): pygame.sprite.Sprite.__init__(self) self._images = [] @@ -39,6 +39,8 @@ class DrawableObject(pygame.sprite.Sprite): self.animations["anim1"] = [0, len(self._images)] self.goToAnim("anim1") + + self.makeTransparent(transparent) def repopulateImages(self, newImages): -- cgit v0.9.1