diff options
author | davesilver <nibor123@gmail.com> | 2010-07-28 17:20:35 (GMT) |
---|---|---|
committer | davesilver <nibor123@gmail.com> | 2010-07-28 17:20:35 (GMT) |
commit | 96c0c16feeda8abf285381c34a505c80b092017d (patch) | |
tree | f04a4912462e68c713fd37a50c33ccadfc2e7298 /devtools | |
parent | 7a32f15e30f72cfcdd009506c2a6074dc0cb8280 (diff) |
Testing Drawable Font Objects
Diffstat (limited to 'devtools')
-rw-r--r-- | devtools/CompleteTestKit/DrawableFontObject.py | 2 | ||||
-rw-r--r-- | devtools/CompleteTestKit/FontDirtyTest.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/devtools/CompleteTestKit/DrawableFontObject.py b/devtools/CompleteTestKit/DrawableFontObject.py index be86a3f..9066b03 100644 --- a/devtools/CompleteTestKit/DrawableFontObject.py +++ b/devtools/CompleteTestKit/DrawableFontObject.py @@ -6,7 +6,7 @@ class DrawableFontObject(DrawableObject, pygame.sprite.Sprite): def __init__(self,text,font,fps = 10, x = 0, y = 0, xVelocity = 0, yVelocity = 0):
self.font = font
- self.textImage = font.render(text, True, (0,0,0))
+ self.textImage = font.render(text, True, (255,255,255))
self._image = self.textImage
DrawableObject.__init__(self, [self.textImage], '', fps, x, y, xVelocity, yVelocity)
diff --git a/devtools/CompleteTestKit/FontDirtyTest.py b/devtools/CompleteTestKit/FontDirtyTest.py index 9c35979..a93071d 100644 --- a/devtools/CompleteTestKit/FontDirtyTest.py +++ b/devtools/CompleteTestKit/FontDirtyTest.py @@ -32,7 +32,7 @@ start = time() for aTrial in range(maxTrial):
start = time()
- font = pygame.font.SysFont("cmr10", 100)
+ font = pygame.font.SysFont("cmr10", 24)
d = DrawableFontObject("hello world", font)
d.goToAnim("anim1")
|