Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/devtools
diff options
context:
space:
mode:
authordavesilver <nibor123@gmail.com>2010-08-03 16:37:54 (GMT)
committer davesilver <nibor123@gmail.com>2010-08-03 16:37:54 (GMT)
commit6d2b38088bb779ce9333b4f33797bda412202f08 (patch)
treede51e155f02b69e45e500fa904d5a7f508d2810e /devtools
parentb53f744c37a3012cf657031a28b33d3ae7af9750 (diff)
Working on integration
Diffstat (limited to 'devtools')
-rw-r--r--devtools/Dave's Test Kit/FontDirtyTest.py12
1 files changed, 4 insertions, 8 deletions
diff --git a/devtools/Dave's Test Kit/FontDirtyTest.py b/devtools/Dave's Test Kit/FontDirtyTest.py
index fea953e..d1b6605 100644
--- a/devtools/Dave's Test Kit/FontDirtyTest.py
+++ b/devtools/Dave's Test Kit/FontDirtyTest.py
@@ -26,14 +26,13 @@ pygame.display.set_caption("Sprite Speed Test Window")
background = pygame.image.load("Room.gif")#Loading my background image
screen.blit(background,[0,0])#blitting my background to screen
pygame.display.flip()#flipping screen
-start = time()
for aTrial in range(maxTrial):
- start = time()
+ start = time()#starting timer
- font = pygame.font.SysFont("cmr10", 100)
- d = DrawableFontObject("hello world", font)
- d.goToAnim("anim1")
+ font = pygame.font.SysFont("cmr10", 100) #creating my font object
+ d = DrawableFontObject("hello world", font) #creating my DrawableFoneObject object using my previously made font object
+ #d.goToAnim("anim1")#going to the first animation. MUST DO THIS STEP
group1=Scene(d)
@@ -59,6 +58,3 @@ for aTrial in range(maxTrial):
pygame.display.update(dirtyList)
for image in range(numImages):
groups[image].clear(screen, background)
-
- #print 1/((time()-start)/FRAME)
- #pygame.display.flip()