diff options
author | davesilver <nibor123@gmail.com> | 2010-07-22 14:13:18 (GMT) |
---|---|---|
committer | davesilver <nibor123@gmail.com> | 2010-07-22 14:13:18 (GMT) |
commit | 4e8f20ab2eff87987abc0d61571077205c44b8cb (patch) | |
tree | 71e599948498faaa57b8a7d41a33a19648d729c0 /DrawableObjectTests | |
parent | 0e3ec59663d89be6d53b5b36da72b58df5ead6a5 (diff) |
Editing Sprite tests
Diffstat (limited to 'DrawableObjectTests')
-rw-r--r-- | DrawableObjectTests/goblin.png | bin | 0 -> 29875 bytes | |||
-rw-r--r-- | DrawableObjectTests/renderupdates.py | 8 |
2 files changed, 4 insertions, 4 deletions
diff --git a/DrawableObjectTests/goblin.png b/DrawableObjectTests/goblin.png Binary files differnew file mode 100644 index 0000000..6bdca0f --- /dev/null +++ b/DrawableObjectTests/goblin.png diff --git a/DrawableObjectTests/renderupdates.py b/DrawableObjectTests/renderupdates.py index b530656..61e9cbc 100644 --- a/DrawableObjectTests/renderupdates.py +++ b/DrawableObjectTests/renderupdates.py @@ -45,17 +45,17 @@ switch3 = [ ]
boxes.add(UpDownBox(switch1, (0, 0)))
-boxes.add(UpDownBox(switch1, (350, 350)))
-boxes.add(UpDownBox(switch1, (600, 600)))
+boxes.add(UpDownBox(switch1, (100, 100)))
boxes.add(UpDownBox(switch1, (200, 200)))
-boxes.add(UpDownBox(switch1, (300, 300)))
-boxes.add(UpDownBox(switch1, (500, 500)))
+
screen = pygame.display.set_mode([1200, 900])
+boxesTwo.add(UpDownBox([goblin], (0,0))
background = pygame.image.load("Room.gif")
#background.fill(pygame.image.load("Room.gif"))
screen.blit(background, [0, 0])
pygame.display.flip()
+boxesTwo.update(pygame.time.get_ticks(), 700)
start = time()
for i in range(2000):
boxes.update(pygame.time.get_ticks(), 700)
|