diff options
Diffstat (limited to 'devtools/ImageTypeTest')
203 files changed, 0 insertions, 1188 deletions
diff --git a/devtools/ImageTypeTest/BMPs 16-Bits/0 Button.bmp b/devtools/ImageTypeTest/BMPs 16-Bits/0 Button.bmp Binary files differdeleted file mode 100755 index a36a681..0000000 --- a/devtools/ImageTypeTest/BMPs 16-Bits/0 Button.bmp +++ /dev/null diff --git a/devtools/ImageTypeTest/BMPs 16-Bits/1 Button.bmp b/devtools/ImageTypeTest/BMPs 16-Bits/1 Button.bmp Binary files differdeleted file mode 100755 index 57630e3..0000000 --- a/devtools/ImageTypeTest/BMPs 16-Bits/1 Button.bmp +++ /dev/null diff --git a/devtools/ImageTypeTest/BMPs 16-Bits/2 Button.bmp b/devtools/ImageTypeTest/BMPs 16-Bits/2 Button.bmp Binary files differdeleted file mode 100755 index 90af77a..0000000 --- a/devtools/ImageTypeTest/BMPs 16-Bits/2 Button.bmp +++ /dev/null diff --git a/devtools/ImageTypeTest/BMPs 16-Bits/3 Button.bmp b/devtools/ImageTypeTest/BMPs 16-Bits/3 Button.bmp Binary files differdeleted file mode 100755 index 1751a4a..0000000 --- a/devtools/ImageTypeTest/BMPs 16-Bits/3 Button.bmp +++ /dev/null diff --git a/devtools/ImageTypeTest/BMPs 16-Bits/4 Button.bmp b/devtools/ImageTypeTest/BMPs 16-Bits/4 Button.bmp Binary files differdeleted file mode 100755 index 1f292d1..0000000 --- a/devtools/ImageTypeTest/BMPs 16-Bits/4 Button.bmp +++ /dev/null diff --git a/devtools/ImageTypeTest/BMPs 16-Bits/5 Button.bmp b/devtools/ImageTypeTest/BMPs 16-Bits/5 Button.bmp Binary files differdeleted file mode 100755 index fd8cc0e..0000000 --- a/devtools/ImageTypeTest/BMPs 16-Bits/5 Button.bmp +++ /dev/null diff --git a/devtools/ImageTypeTest/BMPs 16-Bits/6 Button.bmp b/devtools/ImageTypeTest/BMPs 16-Bits/6 Button.bmp Binary files differdeleted file mode 100755 index df3a2eb..0000000 --- a/devtools/ImageTypeTest/BMPs 16-Bits/6 Button.bmp +++ /dev/null diff --git a/devtools/ImageTypeTest/BMPs 16-Bits/7 Button.bmp b/devtools/ImageTypeTest/BMPs 16-Bits/7 Button.bmp Binary files differdeleted file mode 100755 index 51b0052..0000000 --- a/devtools/ImageTypeTest/BMPs 16-Bits/7 Button.bmp +++ /dev/null diff --git a/devtools/ImageTypeTest/BMPs 16-Bits/8 Button.bmp b/devtools/ImageTypeTest/BMPs 16-Bits/8 Button.bmp Binary files differdeleted file mode 100755 index 9302c64..0000000 --- a/devtools/ImageTypeTest/BMPs 16-Bits/8 Button.bmp +++ /dev/null diff --git a/devtools/ImageTypeTest/BMPs 16-Bits/9 Button.bmp b/devtools/ImageTypeTest/BMPs 16-Bits/9 Button.bmp Binary files differdeleted file mode 100755 index f5c6191..0000000 --- a/devtools/ImageTypeTest/BMPs 16-Bits/9 Button.bmp +++ /dev/null diff --git a/devtools/ImageTypeTest/BMPs 16-Bits/Attack Button.bmp b/devtools/ImageTypeTest/BMPs 16-Bits/Attack Button.bmp Binary files differdeleted file mode 100755 index 6adee99..0000000 --- a/devtools/ImageTypeTest/BMPs 16-Bits/Attack Button.bmp +++ /dev/null diff --git a/devtools/ImageTypeTest/BMPs 16-Bits/Battle Hand.bmp b/devtools/ImageTypeTest/BMPs 16-Bits/Battle Hand.bmp Binary files differdeleted file mode 100755 index 80aef96..0000000 --- a/devtools/ImageTypeTest/BMPs 16-Bits/Battle Hand.bmp +++ /dev/null diff --git a/devtools/ImageTypeTest/BMPs 16-Bits/Blank Button.bmp b/devtools/ImageTypeTest/BMPs 16-Bits/Blank Button.bmp Binary files differdeleted file mode 100755 index cab745d..0000000 --- a/devtools/ImageTypeTest/BMPs 16-Bits/Blank Button.bmp +++ /dev/null diff --git a/devtools/ImageTypeTest/BMPs 16-Bits/Clear Button.bmp b/devtools/ImageTypeTest/BMPs 16-Bits/Clear Button.bmp Binary files differdeleted file mode 100755 index 1527b76..0000000 --- a/devtools/ImageTypeTest/BMPs 16-Bits/Clear Button.bmp +++ /dev/null diff --git a/devtools/ImageTypeTest/BMPs 16-Bits/Enter Button.bmp b/devtools/ImageTypeTest/BMPs 16-Bits/Enter Button.bmp Binary files differdeleted file mode 100755 index 1df130b..0000000 --- a/devtools/ImageTypeTest/BMPs 16-Bits/Enter Button.bmp +++ /dev/null diff --git a/devtools/ImageTypeTest/BMPs 16-Bits/Hand.bmp b/devtools/ImageTypeTest/BMPs 16-Bits/Hand.bmp Binary files differdeleted file mode 100755 index ad8c5ca..0000000 --- a/devtools/ImageTypeTest/BMPs 16-Bits/Hand.bmp +++ /dev/null diff --git a/devtools/ImageTypeTest/BMPs 16-Bits/Item Button.bmp b/devtools/ImageTypeTest/BMPs 16-Bits/Item Button.bmp Binary files differdeleted file mode 100755 index 0cad273..0000000 --- a/devtools/ImageTypeTest/BMPs 16-Bits/Item Button.bmp +++ /dev/null diff --git a/devtools/ImageTypeTest/BMPs 16-Bits/Magic Button.bmp b/devtools/ImageTypeTest/BMPs 16-Bits/Magic Button.bmp Binary files differdeleted file mode 100755 index aa7eb14..0000000 --- a/devtools/ImageTypeTest/BMPs 16-Bits/Magic Button.bmp +++ /dev/null diff --git a/devtools/ImageTypeTest/BMPs 16-Bits/Pause Screen.bmp b/devtools/ImageTypeTest/BMPs 16-Bits/Pause Screen.bmp Binary files differdeleted file mode 100755 index b3c34a8..0000000 --- a/devtools/ImageTypeTest/BMPs 16-Bits/Pause Screen.bmp +++ /dev/null diff --git a/devtools/ImageTypeTest/BMPs 16-Bits/Special Button.bmp b/devtools/ImageTypeTest/BMPs 16-Bits/Special Button.bmp Binary files differdeleted file mode 100755 index a3c291a..0000000 --- a/devtools/ImageTypeTest/BMPs 16-Bits/Special Button.bmp +++ /dev/null diff --git a/devtools/ImageTypeTest/BMPs 16-Bits/bounce.py b/devtools/ImageTypeTest/BMPs 16-Bits/bounce.py deleted file mode 100755 index 286205b..0000000 --- a/devtools/ImageTypeTest/BMPs 16-Bits/bounce.py +++ /dev/null @@ -1,70 +0,0 @@ -import sys, pygame, time -pygame.init() - -size = width, height = 600,400 -print "\n\n ---- ---- ---- ---- ---- ---- \nFiltype test - Authors Dave Silverman and Scott Mengel" -print "Set size to 1200 x 900 px" -speed = [2, 2] -black = 255, 255, 255 - -screen = pygame.display.set_mode(size) - -ball = pygame.image.load("1 Button.bmp") -ballrect = ball.get_rect() -i=1 -print "Ball Loaded, collision detection ready, Initiating Loop:" - -# R is the Renewed time -# init is the time started -# tt is the test time, gathered by adding the previous test time with -#the new elapsed time which is test.time()'s difference from init - -r=0 - -start = time.time() - -while 1: - # Homemade switcher for the purpose of selecting which img to load - switcher = { - 1: pygame.image.load("2 Button.bmp"), - 2: pygame.image.load("3 Button.bmp"), - 3: pygame.image.load("4 Button.bmp"), - 4: pygame.image.load("5 Button.bmp"), - 5: pygame.image.load("6 Button.bmp"), - 6: pygame.image.load("7 Button.bmp"), - 7: pygame.image.load("8 Button.bmp"), - 8: pygame.image.load("9 Button.bmp"), - 9: pygame.image.load("1 Button.bmp") - } - ball = switcher.get(i,pygame.image.load("1 Button.bmp")) - - #ball = pygame.Surface(rect.size).convert() - #ball.blit(self.sheet, (0,0), rect) - colorkey = (255, 156, 0) - ball.set_colorkey(colorkey, pygame.RLEACCEL) - - i=i+1 - - if i>9: i=1 - - for event in pygame.event.get(): - if event.type == pygame.QUIT: sys.exit() - - ballrect = ballrect.move(speed) - - if ballrect.left < 0 or ballrect.right > width: - speed[0] = -speed[0] - if ballrect.top < 0 or ballrect.bottom > height: - speed[1] = -speed[1] - - screen.fill(black) - screen.blit(ball, ballrect) - pygame.display.flip() - - r=r+1 - - val=1/((time.time()-start)/r) - print val - print r - if r > 500: - sys.exit(0) diff --git a/devtools/ImageTypeTest/BMPs 16-Bits/ntest.py b/devtools/ImageTypeTest/BMPs 16-Bits/ntest.py deleted file mode 100755 index 22c019f..0000000 --- a/devtools/ImageTypeTest/BMPs 16-Bits/ntest.py +++ /dev/null @@ -1,103 +0,0 @@ -import sys, pygame, time -pygame.init() - -ft="bmp" -r=0 -i=1 -size = width, height = 600,400 - -print "Nightmare test - Authors Dave Silverman and Scott Mengel" -print "Set size to 600 x 400 px" -print "Running..." -speed1=speed2=speed3=speed4=[2, 2] -black = 0, 0, 0 - -screen = pygame.display.set_mode(size) - -ball1=ball2=ball3=ball4=pygame.image.load("1 Button.%s"%ft) - -ballrect1 = ball1.get_rect() -ballrect1 = ballrect1.move( 200, 0) - -ballrect2 = ball2.get_rect() -ballrect2 = ballrect2.move( 0, 200) - -ballrect3 = ball3.get_rect() -ballrect3 = ballrect3.move( 200, 200) - -ballrect4 = ball4.get_rect() -ballrect4 = ballrect4.move( 0, 0) - -# ballrect = ballrect.move( 0, 0) - -print "Ball Loaded, collision detection ready, Initiating Loop:" - -start=time.time() - -#----------------------------------------------------------------- - -def chngImg(thisBall): - switcher = { - 1: pygame.image.load("2 Button.%s"%ft), - 2: pygame.image.load("3 Button.%s"%ft), - 3: pygame.image.load("4 Button.%s"%ft), - 4: pygame.image.load("5 Button.%s"%ft), - 3: pygame.image.load("4 Button.%s"%ft), - 3: pygame.image.load("4 Button.%s"%ft), - 5: pygame.image.load("6 Button.%s"%ft), - 6: pygame.image.load("7 Button.%s"%ft), - 7: pygame.image.load("8 Button.%s"%ft), - 8: pygame.image.load("9 Button.%s"%ft), - 9: pygame.image.load("1 Button.%s"%ft) - } - return switcher.get(i,pygame.image.load("1 Button.%s"%ft)) - -#----------------------------------------------------------------- - -def collision(thisBallRect,thisSpeed): - if thisBallRect.left < 0 or thisBallRect.right > width: - return -thisSpeed[0],thisSpeed[1] - if thisBallRect.top < 0 or thisBallRect.bottom > height: - return thisSpeed[0],-thisSpeed[1] - else: return thisSpeed -#----------------------------------------------------------------- - -while 1: - ball1 = chngImg(ball1) - ball2 = chngImg(ball2) - ball3 = chngImg(ball3) - ball4 = chngImg(ball4) - - i=i+1 - if i>9: i=1 - - for event in pygame.event.get(): - if event.type == pygame.QUIT: sys.exit() - - speed1=collision(ballrect1,speed1) - ballrect1 = ballrect1.move(speed1) - - speed2=collision(ballrect2,speed2) - ballrect2 = ballrect2.move(speed2) - - speed3=collision(ballrect3,speed3) - ballrect3 = ballrect3.move(speed3) - - speed4=collision(ballrect4,speed4) - ballrect4 = ballrect4.move(speed4) - - screen.fill(black) - screen.blit(ball1, ballrect1) - screen.blit(ball2, ballrect2) - screen.blit(ball3, ballrect3) - screen.blit(ball4, ballrect4) - - pygame.display.flip() - - r=r+1 - - if r>500: break - -#----------------------------------------------------------------- - -print 1/((time.time()-start)/r) diff --git a/devtools/ImageTypeTest/BMPs 24-Bits/0 Button.bmp b/devtools/ImageTypeTest/BMPs 24-Bits/0 Button.bmp Binary files differdeleted file mode 100755 index 5fa6a3f..0000000 --- a/devtools/ImageTypeTest/BMPs 24-Bits/0 Button.bmp +++ /dev/null diff --git a/devtools/ImageTypeTest/BMPs 24-Bits/1 Button.bmp b/devtools/ImageTypeTest/BMPs 24-Bits/1 Button.bmp Binary files differdeleted file mode 100755 index e910cec..0000000 --- a/devtools/ImageTypeTest/BMPs 24-Bits/1 Button.bmp +++ /dev/null diff --git a/devtools/ImageTypeTest/BMPs 24-Bits/2 Button.bmp b/devtools/ImageTypeTest/BMPs 24-Bits/2 Button.bmp Binary files differdeleted file mode 100755 index 0545f38..0000000 --- a/devtools/ImageTypeTest/BMPs 24-Bits/2 Button.bmp +++ /dev/null diff --git a/devtools/ImageTypeTest/BMPs 24-Bits/3 Button.bmp b/devtools/ImageTypeTest/BMPs 24-Bits/3 Button.bmp Binary files differdeleted file mode 100755 index a154b29..0000000 --- a/devtools/ImageTypeTest/BMPs 24-Bits/3 Button.bmp +++ /dev/null diff --git a/devtools/ImageTypeTest/BMPs 24-Bits/4 Button.bmp b/devtools/ImageTypeTest/BMPs 24-Bits/4 Button.bmp Binary files differdeleted file mode 100755 index 4ab21f9..0000000 --- a/devtools/ImageTypeTest/BMPs 24-Bits/4 Button.bmp +++ /dev/null diff --git a/devtools/ImageTypeTest/BMPs 24-Bits/5 Button.bmp b/devtools/ImageTypeTest/BMPs 24-Bits/5 Button.bmp Binary files differdeleted file mode 100755 index 0a55d39..0000000 --- a/devtools/ImageTypeTest/BMPs 24-Bits/5 Button.bmp +++ /dev/null diff --git a/devtools/ImageTypeTest/BMPs 24-Bits/6 Button.bmp b/devtools/ImageTypeTest/BMPs 24-Bits/6 Button.bmp Binary files differdeleted file mode 100755 index ad3f1b1..0000000 --- a/devtools/ImageTypeTest/BMPs 24-Bits/6 Button.bmp +++ /dev/null diff --git a/devtools/ImageTypeTest/BMPs 24-Bits/7 Button.bmp b/devtools/ImageTypeTest/BMPs 24-Bits/7 Button.bmp Binary files differdeleted file mode 100755 index 915ab5b..0000000 --- a/devtools/ImageTypeTest/BMPs 24-Bits/7 Button.bmp +++ /dev/null diff --git a/devtools/ImageTypeTest/BMPs 24-Bits/8 Button.bmp b/devtools/ImageTypeTest/BMPs 24-Bits/8 Button.bmp Binary files differdeleted file mode 100755 index b36287d..0000000 --- a/devtools/ImageTypeTest/BMPs 24-Bits/8 Button.bmp +++ /dev/null diff --git a/devtools/ImageTypeTest/BMPs 24-Bits/9 Button.bmp b/devtools/ImageTypeTest/BMPs 24-Bits/9 Button.bmp Binary files differdeleted file mode 100755 index 2cab5a4..0000000 --- a/devtools/ImageTypeTest/BMPs 24-Bits/9 Button.bmp +++ /dev/null diff --git a/devtools/ImageTypeTest/BMPs 24-Bits/Attack Button.bmp b/devtools/ImageTypeTest/BMPs 24-Bits/Attack Button.bmp Binary files differdeleted file mode 100755 index 9553638..0000000 --- a/devtools/ImageTypeTest/BMPs 24-Bits/Attack Button.bmp +++ /dev/null diff --git a/devtools/ImageTypeTest/BMPs 24-Bits/Battle Hand.bmp b/devtools/ImageTypeTest/BMPs 24-Bits/Battle Hand.bmp Binary files differdeleted file mode 100755 index 281c528..0000000 --- a/devtools/ImageTypeTest/BMPs 24-Bits/Battle Hand.bmp +++ /dev/null diff --git a/devtools/ImageTypeTest/BMPs 24-Bits/Blank Button.bmp b/devtools/ImageTypeTest/BMPs 24-Bits/Blank Button.bmp Binary files differdeleted file mode 100755 index 62a7a75..0000000 --- a/devtools/ImageTypeTest/BMPs 24-Bits/Blank Button.bmp +++ /dev/null diff --git a/devtools/ImageTypeTest/BMPs 24-Bits/Clear Button.bmp b/devtools/ImageTypeTest/BMPs 24-Bits/Clear Button.bmp Binary files differdeleted file mode 100755 index a348a0e..0000000 --- a/devtools/ImageTypeTest/BMPs 24-Bits/Clear Button.bmp +++ /dev/null diff --git a/devtools/ImageTypeTest/BMPs 24-Bits/Enter Button.bmp b/devtools/ImageTypeTest/BMPs 24-Bits/Enter Button.bmp Binary files differdeleted file mode 100755 index ded46f3..0000000 --- a/devtools/ImageTypeTest/BMPs 24-Bits/Enter Button.bmp +++ /dev/null diff --git a/devtools/ImageTypeTest/BMPs 24-Bits/Hand.bmp b/devtools/ImageTypeTest/BMPs 24-Bits/Hand.bmp Binary files differdeleted file mode 100755 index 02c3566..0000000 --- a/devtools/ImageTypeTest/BMPs 24-Bits/Hand.bmp +++ /dev/null diff --git a/devtools/ImageTypeTest/BMPs 24-Bits/Item Button.bmp b/devtools/ImageTypeTest/BMPs 24-Bits/Item Button.bmp Binary files differdeleted file mode 100755 index 9302ae5..0000000 --- a/devtools/ImageTypeTest/BMPs 24-Bits/Item Button.bmp +++ /dev/null diff --git a/devtools/ImageTypeTest/BMPs 24-Bits/Magic Button.bmp b/devtools/ImageTypeTest/BMPs 24-Bits/Magic Button.bmp Binary files differdeleted file mode 100755 index e2f7e71..0000000 --- a/devtools/ImageTypeTest/BMPs 24-Bits/Magic Button.bmp +++ /dev/null diff --git a/devtools/ImageTypeTest/BMPs 24-Bits/Pause Screen.bmp b/devtools/ImageTypeTest/BMPs 24-Bits/Pause Screen.bmp Binary files differdeleted file mode 100755 index eb25e1a..0000000 --- a/devtools/ImageTypeTest/BMPs 24-Bits/Pause Screen.bmp +++ /dev/null diff --git a/devtools/ImageTypeTest/BMPs 24-Bits/Special Button.bmp b/devtools/ImageTypeTest/BMPs 24-Bits/Special Button.bmp Binary files differdeleted file mode 100755 index b5cecab..0000000 --- a/devtools/ImageTypeTest/BMPs 24-Bits/Special Button.bmp +++ /dev/null diff --git a/devtools/ImageTypeTest/BMPs 24-Bits/bounce.py b/devtools/ImageTypeTest/BMPs 24-Bits/bounce.py deleted file mode 100755 index 396bd1f..0000000 --- a/devtools/ImageTypeTest/BMPs 24-Bits/bounce.py +++ /dev/null @@ -1,70 +0,0 @@ -import sys, pygame, time -pygame.init() - -size = width, height = 600,400 -print "\n\n ---- ---- ---- ---- ---- ---- \nFiltype test - Authors Dave Silverman and Scott Mengel" -print "Set size to 1200 x 900 px" -speed = [2, 2] -black = 255, 255, 255 - -screen = pygame.display.set_mode(size) - -ball = pygame.image.load("1 Button.bmp") -ballrect = ball.get_rect() -i=1 -print "Ball Loaded, collision detection ready, Initiating Loop:" - -# R is the Renewed time -# init is the time started -# tt is the test time, gathered by adding the previous test time with -#the new elapsed time which is test.time()'s difference from init - -r=0 - -start = time.time() - -while 1: - # Homemade switcher for the purpose of selecting which img to load - switcher = { - 1: pygame.image.load("2 Button.bmp"), - 2: pygame.image.load("3 Button.bmp"), - 3: pygame.image.load("4 Button.bmp"), - 4: pygame.image.load("5 Button.bmp"), - 5: pygame.image.load("6 Button.bmp"), - 6: pygame.image.load("7 Button.bmp"), - 7: pygame.image.load("8 Button.bmp"), - 8: pygame.image.load("9 Button.bmp"), - 9: pygame.image.load("1 Button.bmp") - } - ball = switcher.get(i,pygame.image.load("1 Button.bmp")) - - #ball = pygame.Surface(rect.size).convert() - #ball.blit(self.sheet, (0,0), rect) - colorkey = (255, 153, 0) - ball.set_colorkey(colorkey, pygame.RLEACCEL) - - i=i+1 - - if i>9: i=1 - - for event in pygame.event.get(): - if event.type == pygame.QUIT: sys.exit() - - ballrect = ballrect.move(speed) - - if ballrect.left < 0 or ballrect.right > width: - speed[0] = -speed[0] - if ballrect.top < 0 or ballrect.bottom > height: - speed[1] = -speed[1] - - screen.fill(black) - screen.blit(ball, ballrect) - pygame.display.flip() - - r=r+1 - - val=1/((time.time()-start)/r) - print val - print r - if r > 500: - sys.exit(0) diff --git a/devtools/ImageTypeTest/BMPs 32-Bits/0 Button.bmp b/devtools/ImageTypeTest/BMPs 32-Bits/0 Button.bmp Binary files differdeleted file mode 100755 index c25785f..0000000 --- a/devtools/ImageTypeTest/BMPs 32-Bits/0 Button.bmp +++ /dev/null diff --git a/devtools/ImageTypeTest/BMPs 32-Bits/1 Button.bmp b/devtools/ImageTypeTest/BMPs 32-Bits/1 Button.bmp Binary files differdeleted file mode 100755 index d4da79c..0000000 --- a/devtools/ImageTypeTest/BMPs 32-Bits/1 Button.bmp +++ /dev/null diff --git a/devtools/ImageTypeTest/BMPs 32-Bits/2 Button.bmp b/devtools/ImageTypeTest/BMPs 32-Bits/2 Button.bmp Binary files differdeleted file mode 100755 index 1f14c34..0000000 --- a/devtools/ImageTypeTest/BMPs 32-Bits/2 Button.bmp +++ /dev/null diff --git a/devtools/ImageTypeTest/BMPs 32-Bits/3 Button.bmp b/devtools/ImageTypeTest/BMPs 32-Bits/3 Button.bmp Binary files differdeleted file mode 100755 index 8ae5bf2..0000000 --- a/devtools/ImageTypeTest/BMPs 32-Bits/3 Button.bmp +++ /dev/null diff --git a/devtools/ImageTypeTest/BMPs 32-Bits/4 Button.bmp b/devtools/ImageTypeTest/BMPs 32-Bits/4 Button.bmp Binary files differdeleted file mode 100755 index 1c5f912..0000000 --- a/devtools/ImageTypeTest/BMPs 32-Bits/4 Button.bmp +++ /dev/null diff --git a/devtools/ImageTypeTest/BMPs 32-Bits/5 Button.bmp b/devtools/ImageTypeTest/BMPs 32-Bits/5 Button.bmp Binary files differdeleted file mode 100755 index 8d08d71..0000000 --- a/devtools/ImageTypeTest/BMPs 32-Bits/5 Button.bmp +++ /dev/null diff --git a/devtools/ImageTypeTest/BMPs 32-Bits/6 Button.bmp b/devtools/ImageTypeTest/BMPs 32-Bits/6 Button.bmp Binary files differdeleted file mode 100755 index c9496e5..0000000 --- a/devtools/ImageTypeTest/BMPs 32-Bits/6 Button.bmp +++ /dev/null diff --git a/devtools/ImageTypeTest/BMPs 32-Bits/7 Button.bmp b/devtools/ImageTypeTest/BMPs 32-Bits/7 Button.bmp Binary files differdeleted file mode 100755 index 2495c54..0000000 --- a/devtools/ImageTypeTest/BMPs 32-Bits/7 Button.bmp +++ /dev/null diff --git a/devtools/ImageTypeTest/BMPs 32-Bits/8 Button.bmp b/devtools/ImageTypeTest/BMPs 32-Bits/8 Button.bmp Binary files differdeleted file mode 100755 index 0730613..0000000 --- a/devtools/ImageTypeTest/BMPs 32-Bits/8 Button.bmp +++ /dev/null diff --git a/devtools/ImageTypeTest/BMPs 32-Bits/9 Button.bmp b/devtools/ImageTypeTest/BMPs 32-Bits/9 Button.bmp Binary files differdeleted file mode 100755 index 179a768..0000000 --- a/devtools/ImageTypeTest/BMPs 32-Bits/9 Button.bmp +++ /dev/null diff --git a/devtools/ImageTypeTest/BMPs 32-Bits/Attack Button.bmp b/devtools/ImageTypeTest/BMPs 32-Bits/Attack Button.bmp Binary files differdeleted file mode 100755 index 9331158..0000000 --- a/devtools/ImageTypeTest/BMPs 32-Bits/Attack Button.bmp +++ /dev/null diff --git a/devtools/ImageTypeTest/BMPs 32-Bits/Battle Hand.bmp b/devtools/ImageTypeTest/BMPs 32-Bits/Battle Hand.bmp Binary files differdeleted file mode 100755 index ea7c033..0000000 --- a/devtools/ImageTypeTest/BMPs 32-Bits/Battle Hand.bmp +++ /dev/null diff --git a/devtools/ImageTypeTest/BMPs 32-Bits/Blank Button.bmp b/devtools/ImageTypeTest/BMPs 32-Bits/Blank Button.bmp Binary files differdeleted file mode 100755 index 88e225a..0000000 --- a/devtools/ImageTypeTest/BMPs 32-Bits/Blank Button.bmp +++ /dev/null diff --git a/devtools/ImageTypeTest/BMPs 32-Bits/Clear Button.bmp b/devtools/ImageTypeTest/BMPs 32-Bits/Clear Button.bmp Binary files differdeleted file mode 100755 index a348a0e..0000000 --- a/devtools/ImageTypeTest/BMPs 32-Bits/Clear Button.bmp +++ /dev/null diff --git a/devtools/ImageTypeTest/BMPs 32-Bits/Enter Button.bmp b/devtools/ImageTypeTest/BMPs 32-Bits/Enter Button.bmp Binary files differdeleted file mode 100755 index 3914ff2..0000000 --- a/devtools/ImageTypeTest/BMPs 32-Bits/Enter Button.bmp +++ /dev/null diff --git a/devtools/ImageTypeTest/BMPs 32-Bits/Hand.bmp b/devtools/ImageTypeTest/BMPs 32-Bits/Hand.bmp Binary files differdeleted file mode 100755 index 0ba54af..0000000 --- a/devtools/ImageTypeTest/BMPs 32-Bits/Hand.bmp +++ /dev/null diff --git a/devtools/ImageTypeTest/BMPs 32-Bits/Item Button.bmp b/devtools/ImageTypeTest/BMPs 32-Bits/Item Button.bmp Binary files differdeleted file mode 100755 index 84523be..0000000 --- a/devtools/ImageTypeTest/BMPs 32-Bits/Item Button.bmp +++ /dev/null diff --git a/devtools/ImageTypeTest/BMPs 32-Bits/Magic Button.bmp b/devtools/ImageTypeTest/BMPs 32-Bits/Magic Button.bmp Binary files differdeleted file mode 100755 index 759086c..0000000 --- a/devtools/ImageTypeTest/BMPs 32-Bits/Magic Button.bmp +++ /dev/null diff --git a/devtools/ImageTypeTest/BMPs 32-Bits/Pause Screen.bmp b/devtools/ImageTypeTest/BMPs 32-Bits/Pause Screen.bmp Binary files differdeleted file mode 100755 index bec11f0..0000000 --- a/devtools/ImageTypeTest/BMPs 32-Bits/Pause Screen.bmp +++ /dev/null diff --git a/devtools/ImageTypeTest/BMPs 32-Bits/Special Button.bmp b/devtools/ImageTypeTest/BMPs 32-Bits/Special Button.bmp Binary files differdeleted file mode 100755 index a17614d..0000000 --- a/devtools/ImageTypeTest/BMPs 32-Bits/Special Button.bmp +++ /dev/null diff --git a/devtools/ImageTypeTest/BMPs 32-Bits/bounce.py b/devtools/ImageTypeTest/BMPs 32-Bits/bounce.py deleted file mode 100755 index 396bd1f..0000000 --- a/devtools/ImageTypeTest/BMPs 32-Bits/bounce.py +++ /dev/null @@ -1,70 +0,0 @@ -import sys, pygame, time -pygame.init() - -size = width, height = 600,400 -print "\n\n ---- ---- ---- ---- ---- ---- \nFiltype test - Authors Dave Silverman and Scott Mengel" -print "Set size to 1200 x 900 px" -speed = [2, 2] -black = 255, 255, 255 - -screen = pygame.display.set_mode(size) - -ball = pygame.image.load("1 Button.bmp") -ballrect = ball.get_rect() -i=1 -print "Ball Loaded, collision detection ready, Initiating Loop:" - -# R is the Renewed time -# init is the time started -# tt is the test time, gathered by adding the previous test time with -#the new elapsed time which is test.time()'s difference from init - -r=0 - -start = time.time() - -while 1: - # Homemade switcher for the purpose of selecting which img to load - switcher = { - 1: pygame.image.load("2 Button.bmp"), - 2: pygame.image.load("3 Button.bmp"), - 3: pygame.image.load("4 Button.bmp"), - 4: pygame.image.load("5 Button.bmp"), - 5: pygame.image.load("6 Button.bmp"), - 6: pygame.image.load("7 Button.bmp"), - 7: pygame.image.load("8 Button.bmp"), - 8: pygame.image.load("9 Button.bmp"), - 9: pygame.image.load("1 Button.bmp") - } - ball = switcher.get(i,pygame.image.load("1 Button.bmp")) - - #ball = pygame.Surface(rect.size).convert() - #ball.blit(self.sheet, (0,0), rect) - colorkey = (255, 153, 0) - ball.set_colorkey(colorkey, pygame.RLEACCEL) - - i=i+1 - - if i>9: i=1 - - for event in pygame.event.get(): - if event.type == pygame.QUIT: sys.exit() - - ballrect = ballrect.move(speed) - - if ballrect.left < 0 or ballrect.right > width: - speed[0] = -speed[0] - if ballrect.top < 0 or ballrect.bottom > height: - speed[1] = -speed[1] - - screen.fill(black) - screen.blit(ball, ballrect) - pygame.display.flip() - - r=r+1 - - val=1/((time.time()-start)/r) - print val - print r - if r > 500: - sys.exit(0) diff --git a/devtools/ImageTypeTest/GIFs Transparent/1 Button.gif b/devtools/ImageTypeTest/GIFs Transparent/1 Button.gif Binary files differdeleted file mode 100755 index 2aad244..0000000 --- a/devtools/ImageTypeTest/GIFs Transparent/1 Button.gif +++ /dev/null diff --git a/devtools/ImageTypeTest/GIFs Transparent/2 Button.gif b/devtools/ImageTypeTest/GIFs Transparent/2 Button.gif Binary files differdeleted file mode 100755 index ed22525..0000000 --- a/devtools/ImageTypeTest/GIFs Transparent/2 Button.gif +++ /dev/null diff --git a/devtools/ImageTypeTest/GIFs Transparent/3 Button.gif b/devtools/ImageTypeTest/GIFs Transparent/3 Button.gif Binary files differdeleted file mode 100755 index 246cd12..0000000 --- a/devtools/ImageTypeTest/GIFs Transparent/3 Button.gif +++ /dev/null diff --git a/devtools/ImageTypeTest/GIFs Transparent/4 Button.gif b/devtools/ImageTypeTest/GIFs Transparent/4 Button.gif Binary files differdeleted file mode 100755 index 722f240..0000000 --- a/devtools/ImageTypeTest/GIFs Transparent/4 Button.gif +++ /dev/null diff --git a/devtools/ImageTypeTest/GIFs Transparent/5 Button.gif b/devtools/ImageTypeTest/GIFs Transparent/5 Button.gif Binary files differdeleted file mode 100755 index 6a71348..0000000 --- a/devtools/ImageTypeTest/GIFs Transparent/5 Button.gif +++ /dev/null diff --git a/devtools/ImageTypeTest/GIFs Transparent/6 Button.gif b/devtools/ImageTypeTest/GIFs Transparent/6 Button.gif Binary files differdeleted file mode 100755 index 0dd2145..0000000 --- a/devtools/ImageTypeTest/GIFs Transparent/6 Button.gif +++ /dev/null diff --git a/devtools/ImageTypeTest/GIFs Transparent/7 Button.gif b/devtools/ImageTypeTest/GIFs Transparent/7 Button.gif Binary files differdeleted file mode 100755 index 1e9914b..0000000 --- a/devtools/ImageTypeTest/GIFs Transparent/7 Button.gif +++ /dev/null diff --git a/devtools/ImageTypeTest/GIFs Transparent/8 Button.gif b/devtools/ImageTypeTest/GIFs Transparent/8 Button.gif Binary files differdeleted file mode 100755 index 390124b..0000000 --- a/devtools/ImageTypeTest/GIFs Transparent/8 Button.gif +++ /dev/null diff --git a/devtools/ImageTypeTest/GIFs Transparent/9 Button.gif b/devtools/ImageTypeTest/GIFs Transparent/9 Button.gif Binary files differdeleted file mode 100755 index 61c8c3c..0000000 --- a/devtools/ImageTypeTest/GIFs Transparent/9 Button.gif +++ /dev/null diff --git a/devtools/ImageTypeTest/GIFs Transparent/bounce.py b/devtools/ImageTypeTest/GIFs Transparent/bounce.py deleted file mode 100755 index 50e57e2..0000000 --- a/devtools/ImageTypeTest/GIFs Transparent/bounce.py +++ /dev/null @@ -1,66 +0,0 @@ -import sys, pygame, time -pygame.init() - -size = width, height = 600,400 -#size = width, height = 1200,900 -print "\n\n ---- ---- ---- ---- ---- ---- \nFiltype test - Authors Dave Silverman and Scott Mengel" -print "Set size to 1200 x 900 px" -speed = [2, 2] -black = 255, 255, 255 - -screen = pygame.display.set_mode(size) - -ball = pygame.image.load("1 Button.gif") -ballrect = ball.get_rect() -i=1 -print "Ball Loaded, collision detection ready, Initiating Loop:" - -# R is the Renewed time -# init is the time started -# tt is the test time, gathered by adding the previous test time with -#the new elapsed time which is test.time()'s difference from init - -r=0 - -start = time.time() - -while 1: - # Homemade switcher for the purpose of selecting which img to load - switcher = { - 1: pygame.image.load("2 Button.gif"), - 2: pygame.image.load("3 Button.gif"), - 3: pygame.image.load("4 Button.gif"), - 4: pygame.image.load("5 Button.gif"), - 5: pygame.image.load("6 Button.gif"), - 6: pygame.image.load("7 Button.gif"), - 7: pygame.image.load("8 Button.gif"), - 8: pygame.image.load("9 Button.gif"), - 9: pygame.image.load("1 Button.gif") - } - ball = switcher.get(i,pygame.image.load("1 Button.gif")) - - i=i+1 - - if i>9: i=1 - - for event in pygame.event.get(): - if event.type == pygame.QUIT: sys.exit() - - ballrect = ballrect.move(speed) - - if ballrect.left < 0 or ballrect.right > width: - speed[0] = -speed[0] - if ballrect.top < 0 or ballrect.bottom > height: - speed[1] = -speed[1] - - screen.fill(black) - screen.blit(ball, ballrect) - pygame.display.flip() - - r=r+1 - - val=1/((time.time()-start)/r) - print val - print r - if r > 500: - sys.exit(0) diff --git a/devtools/ImageTypeTest/GIFs/0 Button.gif b/devtools/ImageTypeTest/GIFs/0 Button.gif Binary files differdeleted file mode 100755 index 8795936..0000000 --- a/devtools/ImageTypeTest/GIFs/0 Button.gif +++ /dev/null diff --git a/devtools/ImageTypeTest/GIFs/1 Button.gif b/devtools/ImageTypeTest/GIFs/1 Button.gif Binary files differdeleted file mode 100755 index 4a89216..0000000 --- a/devtools/ImageTypeTest/GIFs/1 Button.gif +++ /dev/null diff --git a/devtools/ImageTypeTest/GIFs/2 Button.gif b/devtools/ImageTypeTest/GIFs/2 Button.gif Binary files differdeleted file mode 100755 index b5019d8..0000000 --- a/devtools/ImageTypeTest/GIFs/2 Button.gif +++ /dev/null diff --git a/devtools/ImageTypeTest/GIFs/3 Button.gif b/devtools/ImageTypeTest/GIFs/3 Button.gif Binary files differdeleted file mode 100755 index a87ddc6..0000000 --- a/devtools/ImageTypeTest/GIFs/3 Button.gif +++ /dev/null diff --git a/devtools/ImageTypeTest/GIFs/4 Button.gif b/devtools/ImageTypeTest/GIFs/4 Button.gif Binary files differdeleted file mode 100755 index 2a398e6..0000000 --- a/devtools/ImageTypeTest/GIFs/4 Button.gif +++ /dev/null diff --git a/devtools/ImageTypeTest/GIFs/5 Button.gif b/devtools/ImageTypeTest/GIFs/5 Button.gif Binary files differdeleted file mode 100755 index 93e5b8d..0000000 --- a/devtools/ImageTypeTest/GIFs/5 Button.gif +++ /dev/null diff --git a/devtools/ImageTypeTest/GIFs/6 Button.gif b/devtools/ImageTypeTest/GIFs/6 Button.gif Binary files differdeleted file mode 100755 index 0e73825..0000000 --- a/devtools/ImageTypeTest/GIFs/6 Button.gif +++ /dev/null diff --git a/devtools/ImageTypeTest/GIFs/7 Button.gif b/devtools/ImageTypeTest/GIFs/7 Button.gif Binary files differdeleted file mode 100755 index 67dff34..0000000 --- a/devtools/ImageTypeTest/GIFs/7 Button.gif +++ /dev/null diff --git a/devtools/ImageTypeTest/GIFs/8 Button.gif b/devtools/ImageTypeTest/GIFs/8 Button.gif Binary files differdeleted file mode 100755 index 4ca6786..0000000 --- a/devtools/ImageTypeTest/GIFs/8 Button.gif +++ /dev/null diff --git a/devtools/ImageTypeTest/GIFs/9 Button.gif b/devtools/ImageTypeTest/GIFs/9 Button.gif Binary files differdeleted file mode 100755 index bca1e6e..0000000 --- a/devtools/ImageTypeTest/GIFs/9 Button.gif +++ /dev/null diff --git a/devtools/ImageTypeTest/GIFs/Attack Button.gif b/devtools/ImageTypeTest/GIFs/Attack Button.gif Binary files differdeleted file mode 100755 index b128c5c..0000000 --- a/devtools/ImageTypeTest/GIFs/Attack Button.gif +++ /dev/null diff --git a/devtools/ImageTypeTest/GIFs/Battle Hand.gif b/devtools/ImageTypeTest/GIFs/Battle Hand.gif Binary files differdeleted file mode 100755 index 9822d4c..0000000 --- a/devtools/ImageTypeTest/GIFs/Battle Hand.gif +++ /dev/null diff --git a/devtools/ImageTypeTest/GIFs/Blank Button.gif b/devtools/ImageTypeTest/GIFs/Blank Button.gif Binary files differdeleted file mode 100755 index 32bb8de..0000000 --- a/devtools/ImageTypeTest/GIFs/Blank Button.gif +++ /dev/null diff --git a/devtools/ImageTypeTest/GIFs/Buttons.gif b/devtools/ImageTypeTest/GIFs/Buttons.gif Binary files differdeleted file mode 100755 index 8795936..0000000 --- a/devtools/ImageTypeTest/GIFs/Buttons.gif +++ /dev/null diff --git a/devtools/ImageTypeTest/GIFs/Clear Button.gif b/devtools/ImageTypeTest/GIFs/Clear Button.gif Binary files differdeleted file mode 100755 index 1d20353..0000000 --- a/devtools/ImageTypeTest/GIFs/Clear Button.gif +++ /dev/null diff --git a/devtools/ImageTypeTest/GIFs/Enter Button.gif b/devtools/ImageTypeTest/GIFs/Enter Button.gif Binary files differdeleted file mode 100755 index 753b18d..0000000 --- a/devtools/ImageTypeTest/GIFs/Enter Button.gif +++ /dev/null diff --git a/devtools/ImageTypeTest/GIFs/Hand.gif b/devtools/ImageTypeTest/GIFs/Hand.gif Binary files differdeleted file mode 100755 index 6a9eb53..0000000 --- a/devtools/ImageTypeTest/GIFs/Hand.gif +++ /dev/null diff --git a/devtools/ImageTypeTest/GIFs/Item Button.gif b/devtools/ImageTypeTest/GIFs/Item Button.gif Binary files differdeleted file mode 100755 index d54e0c8..0000000 --- a/devtools/ImageTypeTest/GIFs/Item Button.gif +++ /dev/null diff --git a/devtools/ImageTypeTest/GIFs/Magic Button.gif b/devtools/ImageTypeTest/GIFs/Magic Button.gif Binary files differdeleted file mode 100755 index 39bb77a..0000000 --- a/devtools/ImageTypeTest/GIFs/Magic Button.gif +++ /dev/null diff --git a/devtools/ImageTypeTest/GIFs/Pause Screen.gif b/devtools/ImageTypeTest/GIFs/Pause Screen.gif Binary files differdeleted file mode 100755 index 7bdfaf3..0000000 --- a/devtools/ImageTypeTest/GIFs/Pause Screen.gif +++ /dev/null diff --git a/devtools/ImageTypeTest/GIFs/Special button.gif b/devtools/ImageTypeTest/GIFs/Special button.gif Binary files differdeleted file mode 100755 index c20eb1c..0000000 --- a/devtools/ImageTypeTest/GIFs/Special button.gif +++ /dev/null diff --git a/devtools/ImageTypeTest/GIFs/bounce.py b/devtools/ImageTypeTest/GIFs/bounce.py deleted file mode 100755 index 6e0d2df..0000000 --- a/devtools/ImageTypeTest/GIFs/bounce.py +++ /dev/null @@ -1,70 +0,0 @@ -import sys, pygame, time -pygame.init() - -size = width, height = 600,400 -print "\n\n ---- ---- ---- ---- ---- ---- \nFiltype test - Authors Dave Silverman and Scott Mengel" -print "Set size to 1200 x 900 px" -speed = [2, 2] -black = 255, 255, 255 - -screen = pygame.display.set_mode(size) - -ball = pygame.image.load("1 Button.gif") -ballrect = ball.get_rect() -i=1 -print "Ball Loaded, collision detection ready, Initiating Loop:" - -# R is the Renewed time -# init is the time started -# tt is the test time, gathered by adding the previous test time with -#the new elapsed time which is test.time()'s difference from init - -r=0 - -start = time.time() - -while 1: - # Homemade switcher for the purpose of selecting which img to load - switcher = { - 1: pygame.image.load("2 Button.gif"), - 2: pygame.image.load("3 Button.gif"), - 3: pygame.image.load("4 Button.gif"), - 4: pygame.image.load("5 Button.gif"), - 5: pygame.image.load("6 Button.gif"), - 6: pygame.image.load("7 Button.gif"), - 7: pygame.image.load("8 Button.gif"), - 8: pygame.image.load("9 Button.gif"), - 9: pygame.image.load("1 Button.gif") - } - ball = switcher.get(i,pygame.image.load("1 Button.gif")) - - #ball = pygame.Surface(rect.size).convert() - #ball.blit(self.sheet, (0,0), rect) - colorkey = (255, 156, 0) - ball.set_colorkey(colorkey, pygame.RLEACCEL) - - i=i+1 - - if i>9: i=1 - - for event in pygame.event.get(): - if event.type == pygame.QUIT: sys.exit() - - ballrect = ballrect.move(speed) - - if ballrect.left < 0 or ballrect.right > width: - speed[0] = -speed[0] - if ballrect.top < 0 or ballrect.bottom > height: - speed[1] = -speed[1] - - screen.fill(black) - screen.blit(ball, ballrect) - pygame.display.flip() - - r=r+1 - - val=1/((time.time()-start)/r) - print val - print r - if r > 500: - sys.exit(0) diff --git a/devtools/ImageTypeTest/GIFs/ntest.py b/devtools/ImageTypeTest/GIFs/ntest.py deleted file mode 100755 index ce64777..0000000 --- a/devtools/ImageTypeTest/GIFs/ntest.py +++ /dev/null @@ -1,103 +0,0 @@ -import sys, pygame, time -pygame.init() - -ft="gif" -r=0 -i=1 -size = width, height = 600,400 - -print "Nightmare test - Authors Dave Silverman and Scott Mengel" -print "Set size to 600 x 400 px" -print "Running..." -speed1=speed2=speed3=speed4=[2, 2] -black = 0, 0, 0 - -screen = pygame.display.set_mode(size) - -ball1=ball2=ball3=ball4=pygame.image.load("1 Button.%s"%ft) - -ballrect1 = ball1.get_rect() -ballrect1 = ballrect1.move( 200, 0) - -ballrect2 = ball2.get_rect() -ballrect2 = ballrect2.move( 0, 200) - -ballrect3 = ball3.get_rect() -ballrect3 = ballrect3.move( 200, 200) - -ballrect4 = ball4.get_rect() -ballrect4 = ballrect4.move( 0, 0) - -# ballrect = ballrect.move( 0, 0) - -print "Ball Loaded, collision detection ready, Initiating Loop:" - -start=time.time() - -#----------------------------------------------------------------- - -def chngImg(thisBall): - switcher = { - 1: pygame.image.load("2 Button.%s"%ft), - 2: pygame.image.load("3 Button.%s"%ft), - 3: pygame.image.load("4 Button.%s"%ft), - 4: pygame.image.load("5 Button.%s"%ft), - 3: pygame.image.load("4 Button.%s"%ft), - 3: pygame.image.load("4 Button.%s"%ft), - 5: pygame.image.load("6 Button.%s"%ft), - 6: pygame.image.load("7 Button.%s"%ft), - 7: pygame.image.load("8 Button.%s"%ft), - 8: pygame.image.load("9 Button.%s"%ft), - 9: pygame.image.load("1 Button.%s"%ft) - } - return switcher.get(i,pygame.image.load("1 Button.gif")) - -#----------------------------------------------------------------- - -def collision(thisBallRect,thisSpeed): - if thisBallRect.left < 0 or thisBallRect.right > width: - return -thisSpeed[0],thisSpeed[1] - if thisBallRect.top < 0 or thisBallRect.bottom > height: - return thisSpeed[0],-thisSpeed[1] - else: return thisSpeed -#----------------------------------------------------------------- - -while 1: - ball1 = chngImg(ball1) - ball2 = chngImg(ball2) - ball3 = chngImg(ball3) - ball4 = chngImg(ball4) - - i=i+1 - if i>9: i=1 - - for event in pygame.event.get(): - if event.type == pygame.QUIT: sys.exit() - - speed1=collision(ballrect1,speed1) - ballrect1 = ballrect1.move(speed1) - - speed2=collision(ballrect2,speed2) - ballrect2 = ballrect2.move(speed2) - - speed3=collision(ballrect3,speed3) - ballrect3 = ballrect3.move(speed3) - - speed4=collision(ballrect4,speed4) - ballrect4 = ballrect4.move(speed4) - - screen.fill(black) - screen.blit(ball1, ballrect1) - screen.blit(ball2, ballrect2) - screen.blit(ball3, ballrect3) - screen.blit(ball4, ballrect4) - - pygame.display.flip() - - r=r+1 - - if r>500: break - -#----------------------------------------------------------------- - -print 1/((time.time()-start)/r) diff --git a/devtools/ImageTypeTest/JPGs 1Low/0 Button.jpg b/devtools/ImageTypeTest/JPGs 1Low/0 Button.jpg Binary files differdeleted file mode 100755 index 580e162..0000000 --- a/devtools/ImageTypeTest/JPGs 1Low/0 Button.jpg +++ /dev/null diff --git a/devtools/ImageTypeTest/JPGs 1Low/1 Button.jpg b/devtools/ImageTypeTest/JPGs 1Low/1 Button.jpg Binary files differdeleted file mode 100755 index 30afadd..0000000 --- a/devtools/ImageTypeTest/JPGs 1Low/1 Button.jpg +++ /dev/null diff --git a/devtools/ImageTypeTest/JPGs 1Low/2 Button.jpg b/devtools/ImageTypeTest/JPGs 1Low/2 Button.jpg Binary files differdeleted file mode 100755 index 7f52df0..0000000 --- a/devtools/ImageTypeTest/JPGs 1Low/2 Button.jpg +++ /dev/null diff --git a/devtools/ImageTypeTest/JPGs 1Low/3 Button.jpg b/devtools/ImageTypeTest/JPGs 1Low/3 Button.jpg Binary files differdeleted file mode 100755 index 3aafa5e..0000000 --- a/devtools/ImageTypeTest/JPGs 1Low/3 Button.jpg +++ /dev/null diff --git a/devtools/ImageTypeTest/JPGs 1Low/4 Button.jpg b/devtools/ImageTypeTest/JPGs 1Low/4 Button.jpg Binary files differdeleted file mode 100755 index f3c4233..0000000 --- a/devtools/ImageTypeTest/JPGs 1Low/4 Button.jpg +++ /dev/null diff --git a/devtools/ImageTypeTest/JPGs 1Low/5 Button.jpg b/devtools/ImageTypeTest/JPGs 1Low/5 Button.jpg Binary files differdeleted file mode 100755 index cb2618d..0000000 --- a/devtools/ImageTypeTest/JPGs 1Low/5 Button.jpg +++ /dev/null diff --git a/devtools/ImageTypeTest/JPGs 1Low/6 Button.jpg b/devtools/ImageTypeTest/JPGs 1Low/6 Button.jpg Binary files differdeleted file mode 100755 index e128bc7..0000000 --- a/devtools/ImageTypeTest/JPGs 1Low/6 Button.jpg +++ /dev/null diff --git a/devtools/ImageTypeTest/JPGs 1Low/7 Button.jpg b/devtools/ImageTypeTest/JPGs 1Low/7 Button.jpg Binary files differdeleted file mode 100755 index 5d09da2..0000000 --- a/devtools/ImageTypeTest/JPGs 1Low/7 Button.jpg +++ /dev/null diff --git a/devtools/ImageTypeTest/JPGs 1Low/8 Button.jpg b/devtools/ImageTypeTest/JPGs 1Low/8 Button.jpg Binary files differdeleted file mode 100755 index 5093b16..0000000 --- a/devtools/ImageTypeTest/JPGs 1Low/8 Button.jpg +++ /dev/null diff --git a/devtools/ImageTypeTest/JPGs 1Low/9 Button.jpg b/devtools/ImageTypeTest/JPGs 1Low/9 Button.jpg Binary files differdeleted file mode 100755 index 28fe7d6..0000000 --- a/devtools/ImageTypeTest/JPGs 1Low/9 Button.jpg +++ /dev/null diff --git a/devtools/ImageTypeTest/JPGs 1Low/Attack Button.jpg b/devtools/ImageTypeTest/JPGs 1Low/Attack Button.jpg Binary files differdeleted file mode 100755 index 96c0804..0000000 --- a/devtools/ImageTypeTest/JPGs 1Low/Attack Button.jpg +++ /dev/null diff --git a/devtools/ImageTypeTest/JPGs 1Low/Battle Hand.jpg b/devtools/ImageTypeTest/JPGs 1Low/Battle Hand.jpg Binary files differdeleted file mode 100755 index 3fdba58..0000000 --- a/devtools/ImageTypeTest/JPGs 1Low/Battle Hand.jpg +++ /dev/null diff --git a/devtools/ImageTypeTest/JPGs 1Low/Blank Button.jpg b/devtools/ImageTypeTest/JPGs 1Low/Blank Button.jpg Binary files differdeleted file mode 100755 index 293e02b..0000000 --- a/devtools/ImageTypeTest/JPGs 1Low/Blank Button.jpg +++ /dev/null diff --git a/devtools/ImageTypeTest/JPGs 1Low/Clear Button.jpg b/devtools/ImageTypeTest/JPGs 1Low/Clear Button.jpg Binary files differdeleted file mode 100755 index daca420..0000000 --- a/devtools/ImageTypeTest/JPGs 1Low/Clear Button.jpg +++ /dev/null diff --git a/devtools/ImageTypeTest/JPGs 1Low/Enter Button.jpg b/devtools/ImageTypeTest/JPGs 1Low/Enter Button.jpg Binary files differdeleted file mode 100755 index dd63a59..0000000 --- a/devtools/ImageTypeTest/JPGs 1Low/Enter Button.jpg +++ /dev/null diff --git a/devtools/ImageTypeTest/JPGs 1Low/Hand.jpg b/devtools/ImageTypeTest/JPGs 1Low/Hand.jpg Binary files differdeleted file mode 100755 index 8c136af..0000000 --- a/devtools/ImageTypeTest/JPGs 1Low/Hand.jpg +++ /dev/null diff --git a/devtools/ImageTypeTest/JPGs 1Low/Item Button.jpg b/devtools/ImageTypeTest/JPGs 1Low/Item Button.jpg Binary files differdeleted file mode 100755 index ad6afe8..0000000 --- a/devtools/ImageTypeTest/JPGs 1Low/Item Button.jpg +++ /dev/null diff --git a/devtools/ImageTypeTest/JPGs 1Low/Magic Button.jpg b/devtools/ImageTypeTest/JPGs 1Low/Magic Button.jpg Binary files differdeleted file mode 100755 index 756b4ab..0000000 --- a/devtools/ImageTypeTest/JPGs 1Low/Magic Button.jpg +++ /dev/null diff --git a/devtools/ImageTypeTest/JPGs 1Low/Pause Screen.jpg b/devtools/ImageTypeTest/JPGs 1Low/Pause Screen.jpg Binary files differdeleted file mode 100755 index 21935ad..0000000 --- a/devtools/ImageTypeTest/JPGs 1Low/Pause Screen.jpg +++ /dev/null diff --git a/devtools/ImageTypeTest/JPGs 1Low/Special Button.jpg b/devtools/ImageTypeTest/JPGs 1Low/Special Button.jpg Binary files differdeleted file mode 100755 index 15d87d6..0000000 --- a/devtools/ImageTypeTest/JPGs 1Low/Special Button.jpg +++ /dev/null diff --git a/devtools/ImageTypeTest/JPGs 1Low/bounce.py b/devtools/ImageTypeTest/JPGs 1Low/bounce.py deleted file mode 100755 index 76c5fe7..0000000 --- a/devtools/ImageTypeTest/JPGs 1Low/bounce.py +++ /dev/null @@ -1,70 +0,0 @@ -import sys, pygame, time -pygame.init() - -size = width, height = 600,400 -print "\n\n ---- ---- ---- ---- ---- ---- \nFiltype test - Authors Dave Silverman and Scott Mengel" -print "Set size to 1200 x 900 px" -speed = [2, 2] -black = 255, 255, 255 - -screen = pygame.display.set_mode(size) - -ball = pygame.image.load("1 Button.jpg") -ballrect = ball.get_rect() -i=1 -print "Ball Loaded, collision detection ready, Initiating Loop:" - -# R is the Renewed time -# init is the time started -# tt is the test time, gathered by adding the previous test time with -#the new elapsed time which is test.time()'s difference from init - -r=0 - -start = time.time() - -while 1: - # Homemade switcher for the purpose of selecting which img to load - switcher = { - 1: pygame.image.load("2 Button.jpg"), - 2: pygame.image.load("3 Button.jpg"), - 3: pygame.image.load("4 Button.jpg"), - 4: pygame.image.load("5 Button.jpg"), - 5: pygame.image.load("6 Button.jpg"), - 6: pygame.image.load("7 Button.jpg"), - 7: pygame.image.load("8 Button.jpg"), - 8: pygame.image.load("9 Button.jpg"), - 9: pygame.image.load("1 Button.jpg") - } - ball = switcher.get(i,pygame.image.load("1 Button.jpg")) - - #ball = pygame.Surface(rect.size).convert() - #ball.blit(self.sheet, (0,0), rect) - colorkey = (255, 150, 0) - ball.set_colorkey(colorkey, pygame.RLEACCEL) - - i=i+1 - - if i>9: i=1 - - for event in pygame.event.get(): - if event.type == pygame.QUIT: sys.exit() - - ballrect = ballrect.move(speed) - - if ballrect.left < 0 or ballrect.right > width: - speed[0] = -speed[0] - if ballrect.top < 0 or ballrect.bottom > height: - speed[1] = -speed[1] - - screen.fill(black) - screen.blit(ball, ballrect) - pygame.display.flip() - - r=r+1 - - val=1/((time.time()-start)/r) - print val - print r - if r > 500: - sys.exit(0) diff --git a/devtools/ImageTypeTest/JPGs 2Medium/0 Button.jpg b/devtools/ImageTypeTest/JPGs 2Medium/0 Button.jpg Binary files differdeleted file mode 100755 index c7088be..0000000 --- a/devtools/ImageTypeTest/JPGs 2Medium/0 Button.jpg +++ /dev/null diff --git a/devtools/ImageTypeTest/JPGs 2Medium/1 Button.jpg b/devtools/ImageTypeTest/JPGs 2Medium/1 Button.jpg Binary files differdeleted file mode 100755 index d0af126..0000000 --- a/devtools/ImageTypeTest/JPGs 2Medium/1 Button.jpg +++ /dev/null diff --git a/devtools/ImageTypeTest/JPGs 2Medium/2 Button.jpg b/devtools/ImageTypeTest/JPGs 2Medium/2 Button.jpg Binary files differdeleted file mode 100755 index e715054..0000000 --- a/devtools/ImageTypeTest/JPGs 2Medium/2 Button.jpg +++ /dev/null diff --git a/devtools/ImageTypeTest/JPGs 2Medium/3 Button.jpg b/devtools/ImageTypeTest/JPGs 2Medium/3 Button.jpg Binary files differdeleted file mode 100755 index 19890e1..0000000 --- a/devtools/ImageTypeTest/JPGs 2Medium/3 Button.jpg +++ /dev/null diff --git a/devtools/ImageTypeTest/JPGs 2Medium/4 Button.jpg b/devtools/ImageTypeTest/JPGs 2Medium/4 Button.jpg Binary files differdeleted file mode 100755 index e84480f..0000000 --- a/devtools/ImageTypeTest/JPGs 2Medium/4 Button.jpg +++ /dev/null diff --git a/devtools/ImageTypeTest/JPGs 2Medium/5 Button.jpg b/devtools/ImageTypeTest/JPGs 2Medium/5 Button.jpg Binary files differdeleted file mode 100755 index e84ff10..0000000 --- a/devtools/ImageTypeTest/JPGs 2Medium/5 Button.jpg +++ /dev/null diff --git a/devtools/ImageTypeTest/JPGs 2Medium/6 Button.jpg b/devtools/ImageTypeTest/JPGs 2Medium/6 Button.jpg Binary files differdeleted file mode 100755 index 89bc49f..0000000 --- a/devtools/ImageTypeTest/JPGs 2Medium/6 Button.jpg +++ /dev/null diff --git a/devtools/ImageTypeTest/JPGs 2Medium/7 Button.jpg b/devtools/ImageTypeTest/JPGs 2Medium/7 Button.jpg Binary files differdeleted file mode 100755 index 2bc2ee6..0000000 --- a/devtools/ImageTypeTest/JPGs 2Medium/7 Button.jpg +++ /dev/null diff --git a/devtools/ImageTypeTest/JPGs 2Medium/8 Button.jpg b/devtools/ImageTypeTest/JPGs 2Medium/8 Button.jpg Binary files differdeleted file mode 100755 index c76df24..0000000 --- a/devtools/ImageTypeTest/JPGs 2Medium/8 Button.jpg +++ /dev/null diff --git a/devtools/ImageTypeTest/JPGs 2Medium/9 Button.jpg b/devtools/ImageTypeTest/JPGs 2Medium/9 Button.jpg Binary files differdeleted file mode 100755 index ec8118b..0000000 --- a/devtools/ImageTypeTest/JPGs 2Medium/9 Button.jpg +++ /dev/null diff --git a/devtools/ImageTypeTest/JPGs 2Medium/Attack Button.jpg b/devtools/ImageTypeTest/JPGs 2Medium/Attack Button.jpg Binary files differdeleted file mode 100755 index 74c38a0..0000000 --- a/devtools/ImageTypeTest/JPGs 2Medium/Attack Button.jpg +++ /dev/null diff --git a/devtools/ImageTypeTest/JPGs 2Medium/Battle Hand.jpg b/devtools/ImageTypeTest/JPGs 2Medium/Battle Hand.jpg Binary files differdeleted file mode 100755 index 8de0e2e..0000000 --- a/devtools/ImageTypeTest/JPGs 2Medium/Battle Hand.jpg +++ /dev/null diff --git a/devtools/ImageTypeTest/JPGs 2Medium/Blank Button.jpg b/devtools/ImageTypeTest/JPGs 2Medium/Blank Button.jpg Binary files differdeleted file mode 100755 index 7dcbb64..0000000 --- a/devtools/ImageTypeTest/JPGs 2Medium/Blank Button.jpg +++ /dev/null diff --git a/devtools/ImageTypeTest/JPGs 2Medium/Clear Button.jpg b/devtools/ImageTypeTest/JPGs 2Medium/Clear Button.jpg Binary files differdeleted file mode 100755 index 07254a9..0000000 --- a/devtools/ImageTypeTest/JPGs 2Medium/Clear Button.jpg +++ /dev/null diff --git a/devtools/ImageTypeTest/JPGs 2Medium/Enter Button.jpg b/devtools/ImageTypeTest/JPGs 2Medium/Enter Button.jpg Binary files differdeleted file mode 100755 index 2852505..0000000 --- a/devtools/ImageTypeTest/JPGs 2Medium/Enter Button.jpg +++ /dev/null diff --git a/devtools/ImageTypeTest/JPGs 2Medium/Hand.jpg b/devtools/ImageTypeTest/JPGs 2Medium/Hand.jpg Binary files differdeleted file mode 100755 index 6640319..0000000 --- a/devtools/ImageTypeTest/JPGs 2Medium/Hand.jpg +++ /dev/null diff --git a/devtools/ImageTypeTest/JPGs 2Medium/Item Button.jpg b/devtools/ImageTypeTest/JPGs 2Medium/Item Button.jpg Binary files differdeleted file mode 100755 index 8fec85d..0000000 --- a/devtools/ImageTypeTest/JPGs 2Medium/Item Button.jpg +++ /dev/null diff --git a/devtools/ImageTypeTest/JPGs 2Medium/Magic Button.jpg b/devtools/ImageTypeTest/JPGs 2Medium/Magic Button.jpg Binary files differdeleted file mode 100755 index e46d8a2..0000000 --- a/devtools/ImageTypeTest/JPGs 2Medium/Magic Button.jpg +++ /dev/null diff --git a/devtools/ImageTypeTest/JPGs 2Medium/Pause Screen.jpg b/devtools/ImageTypeTest/JPGs 2Medium/Pause Screen.jpg Binary files differdeleted file mode 100755 index 2fd3263..0000000 --- a/devtools/ImageTypeTest/JPGs 2Medium/Pause Screen.jpg +++ /dev/null diff --git a/devtools/ImageTypeTest/JPGs 2Medium/Special Button.jpg b/devtools/ImageTypeTest/JPGs 2Medium/Special Button.jpg Binary files differdeleted file mode 100755 index b721cb5..0000000 --- a/devtools/ImageTypeTest/JPGs 2Medium/Special Button.jpg +++ /dev/null diff --git a/devtools/ImageTypeTest/JPGs 2Medium/bounce.py b/devtools/ImageTypeTest/JPGs 2Medium/bounce.py deleted file mode 100755 index aaeab2e..0000000 --- a/devtools/ImageTypeTest/JPGs 2Medium/bounce.py +++ /dev/null @@ -1,70 +0,0 @@ -import sys, pygame, time -pygame.init() - -size = width, height = 600,400 -print "\n\n ---- ---- ---- ---- ---- ---- \nFiltype test - Authors Dave Silverman and Scott Mengel" -print "Set size to 1200 x 900 px" -speed = [2, 2] -black = 255, 255, 255 - -screen = pygame.display.set_mode(size) - -ball = pygame.image.load("1 Button.jpg") -ballrect = ball.get_rect() -i=1 -print "Ball Loaded, collision detection ready, Initiating Loop:" - -# R is the Renewed time -# init is the time started -# tt is the test time, gathered by adding the previous test time with -#the new elapsed time which is test.time()'s difference from init - -r=0 - -start = time.time() - -while 1: - # Homemade switcher for the purpose of selecting which img to load - switcher = { - 1: pygame.image.load("2 Button.jpg"), - 2: pygame.image.load("3 Button.jpg"), - 3: pygame.image.load("4 Button.jpg"), - 4: pygame.image.load("5 Button.jpg"), - 5: pygame.image.load("6 Button.jpg"), - 6: pygame.image.load("7 Button.jpg"), - 7: pygame.image.load("8 Button.jpg"), - 8: pygame.image.load("9 Button.jpg"), - 9: pygame.image.load("1 Button.jpg") - } - ball = switcher.get(i,pygame.image.load("1 Button.jpg")) - - #ball = pygame.Surface(rect.size).convert() - #ball.blit(self.sheet, (0,0), rect) - colorkey = (255, 156, 0) - ball.set_colorkey(colorkey, pygame.RLEACCEL) - - i=i+1 - - if i>9: i=1 - - for event in pygame.event.get(): - if event.type == pygame.QUIT: sys.exit() - - ballrect = ballrect.move(speed) - - if ballrect.left < 0 or ballrect.right > width: - speed[0] = -speed[0] - if ballrect.top < 0 or ballrect.bottom > height: - speed[1] = -speed[1] - - screen.fill(black) - screen.blit(ball, ballrect) - pygame.display.flip() - - r=r+1 - - val=1/((time.time()-start)/r) - print val - print r - if r > 500: - sys.exit(0) diff --git a/devtools/ImageTypeTest/JPGs 3High/0 Button.jpg b/devtools/ImageTypeTest/JPGs 3High/0 Button.jpg Binary files differdeleted file mode 100755 index cb30b94..0000000 --- a/devtools/ImageTypeTest/JPGs 3High/0 Button.jpg +++ /dev/null diff --git a/devtools/ImageTypeTest/JPGs 3High/1 Button.jpg b/devtools/ImageTypeTest/JPGs 3High/1 Button.jpg Binary files differdeleted file mode 100755 index 3bb39de..0000000 --- a/devtools/ImageTypeTest/JPGs 3High/1 Button.jpg +++ /dev/null diff --git a/devtools/ImageTypeTest/JPGs 3High/2 Button.jpg b/devtools/ImageTypeTest/JPGs 3High/2 Button.jpg Binary files differdeleted file mode 100755 index c572485..0000000 --- a/devtools/ImageTypeTest/JPGs 3High/2 Button.jpg +++ /dev/null diff --git a/devtools/ImageTypeTest/JPGs 3High/3 Button.jpg b/devtools/ImageTypeTest/JPGs 3High/3 Button.jpg Binary files differdeleted file mode 100755 index fe66efd..0000000 --- a/devtools/ImageTypeTest/JPGs 3High/3 Button.jpg +++ /dev/null diff --git a/devtools/ImageTypeTest/JPGs 3High/4 Button.jpg b/devtools/ImageTypeTest/JPGs 3High/4 Button.jpg Binary files differdeleted file mode 100755 index f6f6ecd..0000000 --- a/devtools/ImageTypeTest/JPGs 3High/4 Button.jpg +++ /dev/null diff --git a/devtools/ImageTypeTest/JPGs 3High/5 Button.jpg b/devtools/ImageTypeTest/JPGs 3High/5 Button.jpg Binary files differdeleted file mode 100755 index 6c65f59..0000000 --- a/devtools/ImageTypeTest/JPGs 3High/5 Button.jpg +++ /dev/null diff --git a/devtools/ImageTypeTest/JPGs 3High/6 Button.jpg b/devtools/ImageTypeTest/JPGs 3High/6 Button.jpg Binary files differdeleted file mode 100755 index e7c0309..0000000 --- a/devtools/ImageTypeTest/JPGs 3High/6 Button.jpg +++ /dev/null diff --git a/devtools/ImageTypeTest/JPGs 3High/7 Button.jpg b/devtools/ImageTypeTest/JPGs 3High/7 Button.jpg Binary files differdeleted file mode 100755 index fbdf990..0000000 --- a/devtools/ImageTypeTest/JPGs 3High/7 Button.jpg +++ /dev/null diff --git a/devtools/ImageTypeTest/JPGs 3High/8 Button.jpg b/devtools/ImageTypeTest/JPGs 3High/8 Button.jpg Binary files differdeleted file mode 100755 index 589b12e..0000000 --- a/devtools/ImageTypeTest/JPGs 3High/8 Button.jpg +++ /dev/null diff --git a/devtools/ImageTypeTest/JPGs 3High/9 Button.jpg b/devtools/ImageTypeTest/JPGs 3High/9 Button.jpg Binary files differdeleted file mode 100755 index 02d2fb0..0000000 --- a/devtools/ImageTypeTest/JPGs 3High/9 Button.jpg +++ /dev/null diff --git a/devtools/ImageTypeTest/JPGs 3High/Attack Button.jpg b/devtools/ImageTypeTest/JPGs 3High/Attack Button.jpg Binary files differdeleted file mode 100755 index 62051db..0000000 --- a/devtools/ImageTypeTest/JPGs 3High/Attack Button.jpg +++ /dev/null diff --git a/devtools/ImageTypeTest/JPGs 3High/Battle Hand.jpg b/devtools/ImageTypeTest/JPGs 3High/Battle Hand.jpg Binary files differdeleted file mode 100755 index 8286359..0000000 --- a/devtools/ImageTypeTest/JPGs 3High/Battle Hand.jpg +++ /dev/null diff --git a/devtools/ImageTypeTest/JPGs 3High/Blank Button.jpg b/devtools/ImageTypeTest/JPGs 3High/Blank Button.jpg Binary files differdeleted file mode 100755 index 8b730fd..0000000 --- a/devtools/ImageTypeTest/JPGs 3High/Blank Button.jpg +++ /dev/null diff --git a/devtools/ImageTypeTest/JPGs 3High/Clear Button.jpg b/devtools/ImageTypeTest/JPGs 3High/Clear Button.jpg Binary files differdeleted file mode 100755 index a476b7c..0000000 --- a/devtools/ImageTypeTest/JPGs 3High/Clear Button.jpg +++ /dev/null diff --git a/devtools/ImageTypeTest/JPGs 3High/Enter Button.jpg b/devtools/ImageTypeTest/JPGs 3High/Enter Button.jpg Binary files differdeleted file mode 100755 index e1cb964..0000000 --- a/devtools/ImageTypeTest/JPGs 3High/Enter Button.jpg +++ /dev/null diff --git a/devtools/ImageTypeTest/JPGs 3High/Hand.jpg b/devtools/ImageTypeTest/JPGs 3High/Hand.jpg Binary files differdeleted file mode 100755 index a4aeb75..0000000 --- a/devtools/ImageTypeTest/JPGs 3High/Hand.jpg +++ /dev/null diff --git a/devtools/ImageTypeTest/JPGs 3High/Item Button.jpg b/devtools/ImageTypeTest/JPGs 3High/Item Button.jpg Binary files differdeleted file mode 100755 index 4f0d38a..0000000 --- a/devtools/ImageTypeTest/JPGs 3High/Item Button.jpg +++ /dev/null diff --git a/devtools/ImageTypeTest/JPGs 3High/Magic Button.jpg b/devtools/ImageTypeTest/JPGs 3High/Magic Button.jpg Binary files differdeleted file mode 100755 index 06ad4c7..0000000 --- a/devtools/ImageTypeTest/JPGs 3High/Magic Button.jpg +++ /dev/null diff --git a/devtools/ImageTypeTest/JPGs 3High/Pause Screen.jpg b/devtools/ImageTypeTest/JPGs 3High/Pause Screen.jpg Binary files differdeleted file mode 100755 index e9e87d4..0000000 --- a/devtools/ImageTypeTest/JPGs 3High/Pause Screen.jpg +++ /dev/null diff --git a/devtools/ImageTypeTest/JPGs 3High/Special Button.jpg b/devtools/ImageTypeTest/JPGs 3High/Special Button.jpg Binary files differdeleted file mode 100755 index fe5a855..0000000 --- a/devtools/ImageTypeTest/JPGs 3High/Special Button.jpg +++ /dev/null diff --git a/devtools/ImageTypeTest/JPGs 3High/bounce.py b/devtools/ImageTypeTest/JPGs 3High/bounce.py deleted file mode 100755 index aaeab2e..0000000 --- a/devtools/ImageTypeTest/JPGs 3High/bounce.py +++ /dev/null @@ -1,70 +0,0 @@ -import sys, pygame, time -pygame.init() - -size = width, height = 600,400 -print "\n\n ---- ---- ---- ---- ---- ---- \nFiltype test - Authors Dave Silverman and Scott Mengel" -print "Set size to 1200 x 900 px" -speed = [2, 2] -black = 255, 255, 255 - -screen = pygame.display.set_mode(size) - -ball = pygame.image.load("1 Button.jpg") -ballrect = ball.get_rect() -i=1 -print "Ball Loaded, collision detection ready, Initiating Loop:" - -# R is the Renewed time -# init is the time started -# tt is the test time, gathered by adding the previous test time with -#the new elapsed time which is test.time()'s difference from init - -r=0 - -start = time.time() - -while 1: - # Homemade switcher for the purpose of selecting which img to load - switcher = { - 1: pygame.image.load("2 Button.jpg"), - 2: pygame.image.load("3 Button.jpg"), - 3: pygame.image.load("4 Button.jpg"), - 4: pygame.image.load("5 Button.jpg"), - 5: pygame.image.load("6 Button.jpg"), - 6: pygame.image.load("7 Button.jpg"), - 7: pygame.image.load("8 Button.jpg"), - 8: pygame.image.load("9 Button.jpg"), - 9: pygame.image.load("1 Button.jpg") - } - ball = switcher.get(i,pygame.image.load("1 Button.jpg")) - - #ball = pygame.Surface(rect.size).convert() - #ball.blit(self.sheet, (0,0), rect) - colorkey = (255, 156, 0) - ball.set_colorkey(colorkey, pygame.RLEACCEL) - - i=i+1 - - if i>9: i=1 - - for event in pygame.event.get(): - if event.type == pygame.QUIT: sys.exit() - - ballrect = ballrect.move(speed) - - if ballrect.left < 0 or ballrect.right > width: - speed[0] = -speed[0] - if ballrect.top < 0 or ballrect.bottom > height: - speed[1] = -speed[1] - - screen.fill(black) - screen.blit(ball, ballrect) - pygame.display.flip() - - r=r+1 - - val=1/((time.time()-start)/r) - print val - print r - if r > 500: - sys.exit(0) diff --git a/devtools/ImageTypeTest/JPGs 4Max/0 Button.jpg b/devtools/ImageTypeTest/JPGs 4Max/0 Button.jpg Binary files differdeleted file mode 100755 index 7f7680d..0000000 --- a/devtools/ImageTypeTest/JPGs 4Max/0 Button.jpg +++ /dev/null diff --git a/devtools/ImageTypeTest/JPGs 4Max/1 Button.jpg b/devtools/ImageTypeTest/JPGs 4Max/1 Button.jpg Binary files differdeleted file mode 100755 index 8551018..0000000 --- a/devtools/ImageTypeTest/JPGs 4Max/1 Button.jpg +++ /dev/null diff --git a/devtools/ImageTypeTest/JPGs 4Max/2 Button.jpg b/devtools/ImageTypeTest/JPGs 4Max/2 Button.jpg Binary files differdeleted file mode 100755 index 6421230..0000000 --- a/devtools/ImageTypeTest/JPGs 4Max/2 Button.jpg +++ /dev/null diff --git a/devtools/ImageTypeTest/JPGs 4Max/3 Button.jpg b/devtools/ImageTypeTest/JPGs 4Max/3 Button.jpg Binary files differdeleted file mode 100755 index b32dbb8..0000000 --- a/devtools/ImageTypeTest/JPGs 4Max/3 Button.jpg +++ /dev/null diff --git a/devtools/ImageTypeTest/JPGs 4Max/4 Button.jpg b/devtools/ImageTypeTest/JPGs 4Max/4 Button.jpg Binary files differdeleted file mode 100755 index 12bbf98..0000000 --- a/devtools/ImageTypeTest/JPGs 4Max/4 Button.jpg +++ /dev/null diff --git a/devtools/ImageTypeTest/JPGs 4Max/5 Button.jpg b/devtools/ImageTypeTest/JPGs 4Max/5 Button.jpg Binary files differdeleted file mode 100755 index 25577d8..0000000 --- a/devtools/ImageTypeTest/JPGs 4Max/5 Button.jpg +++ /dev/null diff --git a/devtools/ImageTypeTest/JPGs 4Max/6 Button.jpg b/devtools/ImageTypeTest/JPGs 4Max/6 Button.jpg Binary files differdeleted file mode 100755 index 86600b4..0000000 --- a/devtools/ImageTypeTest/JPGs 4Max/6 Button.jpg +++ /dev/null diff --git a/devtools/ImageTypeTest/JPGs 4Max/7 Button.jpg b/devtools/ImageTypeTest/JPGs 4Max/7 Button.jpg Binary files differdeleted file mode 100755 index ed66268..0000000 --- a/devtools/ImageTypeTest/JPGs 4Max/7 Button.jpg +++ /dev/null diff --git a/devtools/ImageTypeTest/JPGs 4Max/8 Button.jpg b/devtools/ImageTypeTest/JPGs 4Max/8 Button.jpg Binary files differdeleted file mode 100755 index a7d8ea7..0000000 --- a/devtools/ImageTypeTest/JPGs 4Max/8 Button.jpg +++ /dev/null diff --git a/devtools/ImageTypeTest/JPGs 4Max/9 Button.jpg b/devtools/ImageTypeTest/JPGs 4Max/9 Button.jpg Binary files differdeleted file mode 100755 index 15c3d40..0000000 --- a/devtools/ImageTypeTest/JPGs 4Max/9 Button.jpg +++ /dev/null diff --git a/devtools/ImageTypeTest/JPGs 4Max/Attack Button.jpg b/devtools/ImageTypeTest/JPGs 4Max/Attack Button.jpg Binary files differdeleted file mode 100755 index 0e6c7d4..0000000 --- a/devtools/ImageTypeTest/JPGs 4Max/Attack Button.jpg +++ /dev/null diff --git a/devtools/ImageTypeTest/JPGs 4Max/Battle Hand.jpg b/devtools/ImageTypeTest/JPGs 4Max/Battle Hand.jpg Binary files differdeleted file mode 100755 index c66747f..0000000 --- a/devtools/ImageTypeTest/JPGs 4Max/Battle Hand.jpg +++ /dev/null diff --git a/devtools/ImageTypeTest/JPGs 4Max/Blank Button.jpg b/devtools/ImageTypeTest/JPGs 4Max/Blank Button.jpg Binary files differdeleted file mode 100755 index 5b29ee1..0000000 --- a/devtools/ImageTypeTest/JPGs 4Max/Blank Button.jpg +++ /dev/null diff --git a/devtools/ImageTypeTest/JPGs 4Max/Clear Button.jpg b/devtools/ImageTypeTest/JPGs 4Max/Clear Button.jpg Binary files differdeleted file mode 100755 index 05a9f54..0000000 --- a/devtools/ImageTypeTest/JPGs 4Max/Clear Button.jpg +++ /dev/null diff --git a/devtools/ImageTypeTest/JPGs 4Max/Enter Button.jpg b/devtools/ImageTypeTest/JPGs 4Max/Enter Button.jpg Binary files differdeleted file mode 100755 index c53c9bb..0000000 --- a/devtools/ImageTypeTest/JPGs 4Max/Enter Button.jpg +++ /dev/null diff --git a/devtools/ImageTypeTest/JPGs 4Max/Hand.jpg b/devtools/ImageTypeTest/JPGs 4Max/Hand.jpg Binary files differdeleted file mode 100755 index 5c34f67..0000000 --- a/devtools/ImageTypeTest/JPGs 4Max/Hand.jpg +++ /dev/null diff --git a/devtools/ImageTypeTest/JPGs 4Max/Item Button.jpg b/devtools/ImageTypeTest/JPGs 4Max/Item Button.jpg Binary files differdeleted file mode 100755 index cef3992..0000000 --- a/devtools/ImageTypeTest/JPGs 4Max/Item Button.jpg +++ /dev/null diff --git a/devtools/ImageTypeTest/JPGs 4Max/Magic Button.jpg b/devtools/ImageTypeTest/JPGs 4Max/Magic Button.jpg Binary files differdeleted file mode 100755 index 8b1b039..0000000 --- a/devtools/ImageTypeTest/JPGs 4Max/Magic Button.jpg +++ /dev/null diff --git a/devtools/ImageTypeTest/JPGs 4Max/Pause Screen.jpg b/devtools/ImageTypeTest/JPGs 4Max/Pause Screen.jpg Binary files differdeleted file mode 100755 index 7fd0d65..0000000 --- a/devtools/ImageTypeTest/JPGs 4Max/Pause Screen.jpg +++ /dev/null diff --git a/devtools/ImageTypeTest/JPGs 4Max/Special Button.jpg b/devtools/ImageTypeTest/JPGs 4Max/Special Button.jpg Binary files differdeleted file mode 100755 index 694884a..0000000 --- a/devtools/ImageTypeTest/JPGs 4Max/Special Button.jpg +++ /dev/null diff --git a/devtools/ImageTypeTest/JPGs 4Max/bounce.py b/devtools/ImageTypeTest/JPGs 4Max/bounce.py deleted file mode 100755 index db16274..0000000 --- a/devtools/ImageTypeTest/JPGs 4Max/bounce.py +++ /dev/null @@ -1,70 +0,0 @@ -import sys, pygame, time -pygame.init() - -size = width, height = 600,400 -print "\n\n ---- ---- ---- ---- ---- ---- \nFiltype test - Authors Dave Silverman and Scott Mengel" -print "Set size to 1200 x 900 px" -speed = [2, 2] -black = 255, 255, 255 - -screen = pygame.display.set_mode(size) - -ball = pygame.image.load("1 Button.jpg") -ballrect = ball.get_rect() -i=1 -print "Ball Loaded, collision detection ready, Initiating Loop:" - -# R is the Renewed time -# init is the time started -# tt is the test time, gathered by adding the previous test time with -#the new elapsed time which is test.time()'s difference from init - -r=0 - -start = time.time() - -while 1: - # Homemade switcher for the purpose of selecting which img to load - switcher = { - 1: pygame.image.load("2 Button.jpg"), - 2: pygame.image.load("3 Button.jpg"), - 3: pygame.image.load("4 Button.jpg"), - 4: pygame.image.load("5 Button.jpg"), - 5: pygame.image.load("6 Button.jpg"), - 6: pygame.image.load("7 Button.jpg"), - 7: pygame.image.load("8 Button.jpg"), - 8: pygame.image.load("9 Button.jpg"), - 9: pygame.image.load("1 Button.jpg") - } - ball = switcher.get(i,pygame.image.load("1 Button.jpg")) - - #ball = pygame.Surface(rect.size).convert() - #ball.blit(self.sheet, (0,0), rect) - colorkey = (255, 153, 0) - ball.set_colorkey(colorkey, pygame.RLEACCEL) - - i=i+1 - - if i>9: i=1 - - for event in pygame.event.get(): - if event.type == pygame.QUIT: sys.exit() - - ballrect = ballrect.move(speed) - - if ballrect.left < 0 or ballrect.right > width: - speed[0] = -speed[0] - if ballrect.top < 0 or ballrect.bottom > height: - speed[1] = -speed[1] - - screen.fill(black) - screen.blit(ball, ballrect) - pygame.display.flip() - - r=r+1 - - val=1/((time.time()-start)/r) - print val - print r - if r > 500: - sys.exit(0) diff --git a/devtools/ImageTypeTest/PNGs Indexed/1 Button.png b/devtools/ImageTypeTest/PNGs Indexed/1 Button.png Binary files differdeleted file mode 100755 index 6faafa1..0000000 --- a/devtools/ImageTypeTest/PNGs Indexed/1 Button.png +++ /dev/null diff --git a/devtools/ImageTypeTest/PNGs Indexed/2 Button.png b/devtools/ImageTypeTest/PNGs Indexed/2 Button.png Binary files differdeleted file mode 100755 index 6abdc88..0000000 --- a/devtools/ImageTypeTest/PNGs Indexed/2 Button.png +++ /dev/null diff --git a/devtools/ImageTypeTest/PNGs Indexed/3 Button.png b/devtools/ImageTypeTest/PNGs Indexed/3 Button.png Binary files differdeleted file mode 100755 index 5481253..0000000 --- a/devtools/ImageTypeTest/PNGs Indexed/3 Button.png +++ /dev/null diff --git a/devtools/ImageTypeTest/PNGs Indexed/4 Button.png b/devtools/ImageTypeTest/PNGs Indexed/4 Button.png Binary files differdeleted file mode 100755 index 9da909e..0000000 --- a/devtools/ImageTypeTest/PNGs Indexed/4 Button.png +++ /dev/null diff --git a/devtools/ImageTypeTest/PNGs Indexed/5 Button.png b/devtools/ImageTypeTest/PNGs Indexed/5 Button.png Binary files differdeleted file mode 100755 index 2ce9ba6..0000000 --- a/devtools/ImageTypeTest/PNGs Indexed/5 Button.png +++ /dev/null diff --git a/devtools/ImageTypeTest/PNGs Indexed/6 Button.png b/devtools/ImageTypeTest/PNGs Indexed/6 Button.png Binary files differdeleted file mode 100755 index a280c37..0000000 --- a/devtools/ImageTypeTest/PNGs Indexed/6 Button.png +++ /dev/null diff --git a/devtools/ImageTypeTest/PNGs Indexed/7 Button.png b/devtools/ImageTypeTest/PNGs Indexed/7 Button.png Binary files differdeleted file mode 100755 index 3c91653..0000000 --- a/devtools/ImageTypeTest/PNGs Indexed/7 Button.png +++ /dev/null diff --git a/devtools/ImageTypeTest/PNGs Indexed/8 Button.png b/devtools/ImageTypeTest/PNGs Indexed/8 Button.png Binary files differdeleted file mode 100755 index c9acde9..0000000 --- a/devtools/ImageTypeTest/PNGs Indexed/8 Button.png +++ /dev/null diff --git a/devtools/ImageTypeTest/PNGs Indexed/9 Button.png b/devtools/ImageTypeTest/PNGs Indexed/9 Button.png Binary files differdeleted file mode 100755 index 7ffd035..0000000 --- a/devtools/ImageTypeTest/PNGs Indexed/9 Button.png +++ /dev/null diff --git a/devtools/ImageTypeTest/PNGs Indexed/bounce.py b/devtools/ImageTypeTest/PNGs Indexed/bounce.py deleted file mode 100755 index df34a0e..0000000 --- a/devtools/ImageTypeTest/PNGs Indexed/bounce.py +++ /dev/null @@ -1,70 +0,0 @@ -import sys, pygame, time -pygame.init() - -size = width, height = 600,400 -print "\n\n ---- ---- ---- ---- ---- ---- \nFiltype test - Authors Dave Silverman and Scott Mengel" -print "Set size to 1200 x 900 px" -speed = [2, 2] -black = 255, 255, 255 - -screen = pygame.display.set_mode(size) - -ball = pygame.image.load("1 Button.png") -ballrect = ball.get_rect() -i=1 -print "Ball Loaded, collision detection ready, Initiating Loop:" - -# R is the Renewed time -# init is the time started -# tt is the test time, gathered by adding the previous test time with -#the new elapsed time which is test.time()'s difference from init - -r=0 - -start = time.time() - -while 1: - # Homemade switcher for the purpose of selecting which img to load - switcher = { - 1: pygame.image.load("2 Button.png"), - 2: pygame.image.load("3 Button.png"), - 3: pygame.image.load("4 Button.png"), - 4: pygame.image.load("5 Button.png"), - 5: pygame.image.load("6 Button.png"), - 6: pygame.image.load("7 Button.png"), - 7: pygame.image.load("8 Button.png"), - 8: pygame.image.load("9 Button.png"), - 9: pygame.image.load("1 Button.png") - } - ball = switcher.get(i,pygame.image.load("1 Button.png")) - - #ball = pygame.Surface(rect.size).convert() - #ball.blit(self.sheet, (0,0), rect) - colorkey = (255, 153, 0) - ball.set_colorkey(colorkey, pygame.RLEACCEL) - - i=i+1 - - if i>9: i=1 - - for event in pygame.event.get(): - if event.type == pygame.QUIT: sys.exit() - - ballrect = ballrect.move(speed) - - if ballrect.left < 0 or ballrect.right > width: - speed[0] = -speed[0] - if ballrect.top < 0 or ballrect.bottom > height: - speed[1] = -speed[1] - - screen.fill(black) - screen.blit(ball, ballrect) - pygame.display.flip() - - r=r+1 - - val=1/((time.time()-start)/r) - print val - print r - if r > 500: - sys.exit(0) diff --git a/devtools/ImageTypeTest/PNGs Transparent/1 Button.png b/devtools/ImageTypeTest/PNGs Transparent/1 Button.png Binary files differdeleted file mode 100755 index dab1239..0000000 --- a/devtools/ImageTypeTest/PNGs Transparent/1 Button.png +++ /dev/null diff --git a/devtools/ImageTypeTest/PNGs Transparent/2 Button.png b/devtools/ImageTypeTest/PNGs Transparent/2 Button.png Binary files differdeleted file mode 100755 index 56312a7..0000000 --- a/devtools/ImageTypeTest/PNGs Transparent/2 Button.png +++ /dev/null diff --git a/devtools/ImageTypeTest/PNGs Transparent/3 Button.png b/devtools/ImageTypeTest/PNGs Transparent/3 Button.png Binary files differdeleted file mode 100755 index 4ceb540..0000000 --- a/devtools/ImageTypeTest/PNGs Transparent/3 Button.png +++ /dev/null diff --git a/devtools/ImageTypeTest/PNGs Transparent/4 Button.png b/devtools/ImageTypeTest/PNGs Transparent/4 Button.png Binary files differdeleted file mode 100755 index 38d640a..0000000 --- a/devtools/ImageTypeTest/PNGs Transparent/4 Button.png +++ /dev/null diff --git a/devtools/ImageTypeTest/PNGs Transparent/5 Button.png b/devtools/ImageTypeTest/PNGs Transparent/5 Button.png Binary files differdeleted file mode 100755 index dcc14d4..0000000 --- a/devtools/ImageTypeTest/PNGs Transparent/5 Button.png +++ /dev/null diff --git a/devtools/ImageTypeTest/PNGs Transparent/6 Button.png b/devtools/ImageTypeTest/PNGs Transparent/6 Button.png Binary files differdeleted file mode 100755 index cb2f933..0000000 --- a/devtools/ImageTypeTest/PNGs Transparent/6 Button.png +++ /dev/null diff --git a/devtools/ImageTypeTest/PNGs Transparent/7 Button.png b/devtools/ImageTypeTest/PNGs Transparent/7 Button.png Binary files differdeleted file mode 100755 index 497ed6f..0000000 --- a/devtools/ImageTypeTest/PNGs Transparent/7 Button.png +++ /dev/null diff --git a/devtools/ImageTypeTest/PNGs Transparent/8 Button.png b/devtools/ImageTypeTest/PNGs Transparent/8 Button.png Binary files differdeleted file mode 100755 index 693ac1e..0000000 --- a/devtools/ImageTypeTest/PNGs Transparent/8 Button.png +++ /dev/null diff --git a/devtools/ImageTypeTest/PNGs Transparent/9 Button.png b/devtools/ImageTypeTest/PNGs Transparent/9 Button.png Binary files differdeleted file mode 100755 index e83b570..0000000 --- a/devtools/ImageTypeTest/PNGs Transparent/9 Button.png +++ /dev/null diff --git a/devtools/ImageTypeTest/PNGs Transparent/bounce.py b/devtools/ImageTypeTest/PNGs Transparent/bounce.py deleted file mode 100755 index 284947c..0000000 --- a/devtools/ImageTypeTest/PNGs Transparent/bounce.py +++ /dev/null @@ -1,65 +0,0 @@ -import sys, pygame, time -pygame.init() - -size = width, height = 600,400 -print "\n\n ---- ---- ---- ---- ---- ---- \nFiltype test - Authors Dave Silverman and Scott Mengel" -print "Set size to 1200 x 900 px" -speed = [2, 2] -black = 255, 255, 255 - -screen = pygame.display.set_mode(size) - -ball = pygame.image.load("1 Button.png") -ballrect = ball.get_rect() -i=1 -print "Ball Loaded, collision detection ready, Initiating Loop:" - -# R is the Renewed time -# init is the time started -# tt is the test time, gathered by adding the previous test time with -#the new elapsed time which is test.time()'s difference from init - -r=0 - -start = time.time() - -while 1: - # Homemade switcher for the purpose of selecting which img to load - switcher = { - 1: pygame.image.load("2 Button.png"), - 2: pygame.image.load("3 Button.png"), - 3: pygame.image.load("4 Button.png"), - 4: pygame.image.load("5 Button.png"), - 5: pygame.image.load("6 Button.png"), - 6: pygame.image.load("7 Button.png"), - 7: pygame.image.load("8 Button.png"), - 8: pygame.image.load("9 Button.png"), - 9: pygame.image.load("1 Button.png") - } - ball = switcher.get(i,pygame.image.load("1 Button.png")) - - i=i+1 - - if i>9: i=1 - - for event in pygame.event.get(): - if event.type == pygame.QUIT: sys.exit() - - ballrect = ballrect.move(speed) - - if ballrect.left < 0 or ballrect.right > width: - speed[0] = -speed[0] - if ballrect.top < 0 or ballrect.bottom > height: - speed[1] = -speed[1] - - screen.fill(black) - screen.blit(ball, ballrect) - pygame.display.flip() - - r=r+1 - - val=1/((time.time()-start)/r) - print val - print r - if r > 500: - sys.exit(0) diff --git a/devtools/ImageTypeTest/imageTest.py b/devtools/ImageTypeTest/imageTest.py deleted file mode 100644 index 71d39fd..0000000 --- a/devtools/ImageTypeTest/imageTest.py +++ /dev/null @@ -1,112 +0,0 @@ -import sys, pygame, time -pygame.init() - -print "Full Test - Authors Dave Silverman and Scott Mengel" -print "Set size to 600 x 400 px" -print "Running..." - -#-------------------------------------------------------------- -#CONSTANTS AND VARIABLES - -make=input("How many images would you like to load? ") -img={} -ft="" #filetype -r=0 #frame refreshes -i=1 #cycles images -size = width, height = 600,400 #screen sizes -t=0 #trial number n -colorkey=(255, 152, 0) - -ftArr=[ ["bmp","BMPs 16-Bits/"] , ["bmp","BMPs 24-Bits/"] , ["bmp","BMPs 32-Bits/"] , ["gif","GIFs/"] , ["gif","GIFs Transparent/"] , ["jpg","JPGs 1Low/"] , ["jpg","JPGs 2Medium/"] , ["jpg","JPGs 3High/"] , ["jpg","JPGs 4Max/"] , ["png","PNGs Indexed/"] , ["png","PNGs Transparent/"] ] - -screen = pygame.display.set_mode(size) #Screen Set 600x400 -background = 152, 251, 152 # pale green - -#The switch function -#------------------------------------------------------------- -def chngImg(): - cnt=make - while cnt>0: - switcher = { - 1: pygame.image.load("%s2 Button.%s"%(ft[1],ft[0])), - 2: pygame.image.load("%s3 Button.%s"%(ft[1],ft[0])), - 3: pygame.image.load("%s4 Button.%s"%(ft[1],ft[0])), - 4: pygame.image.load("%s5 Button.%s"%(ft[1],ft[0])), - 5: pygame.image.load("%s6 Button.%s"%(ft[1],ft[0])), - 6: pygame.image.load("%s7 Button.%s"%(ft[1],ft[0])), - 7: pygame.image.load("%s8 Button.%s"%(ft[1],ft[0])), - 8: pygame.image.load("%s9 Button.%s"%(ft[1],ft[0])), - 9: pygame.image.load("%s1 Button.%s"%(ft[1],ft[0])) - } - img[cnt,0]=switcher.get(i,pygame.image.load("%s1 Button.%s"%(ft[1],ft[0]))) - #img[cnt,0].set_colorkey(colorkey, pygame.RLEACCEL) - #img[cnt,0].resize(200,200) this is for resizing an image - #pygame.transform.scale(img[cnt,0],(200, 200)) - img[cnt,0] = pygame.transform.scale(img[cnt,0],(20, 20)) - cnt=cnt-1 -#----------------------------------------------------------------- -#Collision detection - -def collision(): - cnt=make - while cnt>0: - if img[cnt,1].left < 0 or img[cnt,1].right > width: - img[cnt,2]=[ -img[cnt,2][0], img[cnt,2][1] ] - if img[cnt,1].top < 0 or img[cnt,1].bottom > height: - img[cnt,2]=[ img[cnt,2][0], -img[cnt,2][1] ] - img[cnt,1] = img[cnt,1].move(img[cnt,2]) - screen.blit(img[cnt,0],img[cnt,1]) - cnt=cnt-1 - pygame.display.flip() -#----------------------------------------------------------------- -#----------------------------------------------------------------- -#----------------------------------------------------------------- -#----------------------------------------------------------------- -while 1: - cnt=make - ft=ftArr[t] - print "Testing "+ft[1]+"N Button."+ft[0] - trial=5 - while trial>0: - while cnt>0: - img[cnt,0]= pygame.image.load("%s1 Button.%s"%(ft[1],ft[0])) #image.load - img[cnt,0] = pygame.transform.scale(img[cnt,0],(20, 20)) - img[cnt,1]= img[cnt,0].get_rect() - img[cnt,2]= [2,2] #speed - m=cnt*40 # named m cause i wanted some m&ms - img[cnt,1]=img[cnt,1].move(m,m) #see? it wasn't as tastey though - cnt=cnt-1 - r=0 - start=time.time() -# ----------------------------------------------------------------- - while 1: - chngImg() - i=i+1 - if i>9: i=1 - - for event in pygame.event.get(): - if event.type == pygame.QUIT: sys.exit() - -# speed1=collision(ballrect1,speed1) -# ballrect1 = ballrect1.move(speed1) - - collision() - screen.fill(background) - -# cnt=make -# while cnt>0: -# screen.blit(ball1, ballrect1) -# screen.blit(img[cnt,0],img[cnt,1]) -# cnt=cnt-1 -# -# pygame.display.flip() - - r=r+1 - if r>500: break - -# ----------------------------------------------------------------- -# ----------------------------------------------------------------- - - print 1/((time.time()-start)/r) - trial=trial-1 - t=t+1 diff --git a/devtools/ImageTypeTest/test.py b/devtools/ImageTypeTest/test.py deleted file mode 100755 index c06596a..0000000 --- a/devtools/ImageTypeTest/test.py +++ /dev/null @@ -1,109 +0,0 @@ -#! /usr/bin/env python -import sys, pygame, time -pygame.init() - -print "Full Test - Authors Dave Silverman and Scott Mengel" -print "Set size to 600 x 400 px" -print "Running..." - -#-------------------------------------------------------------- -#CONSTANTS AND VARIABLES - -make=input("How many images would you like to load? ") -img={} -ft="" #filetype -r=0 #frame refreshes -i=1 #cycles images -size = width, height = 600,400 #screen sizes -t=0 #trial number n -colorkey=(255, 152, 0) - -ftArr=[ ["bmp","BMPs 16-Bits/"] , ["bmp","BMPs 24-Bits/"] , ["bmp","BMPs 32-Bits/"] , ["gif","GIFs/"] , ["gif","GIFs Transparent/"] , ["jpg","JPGs 1Low/"] , ["jpg","JPGs 2Medium/"] , ["jpg","JPGs 3High/"] , ["jpg","JPGs 4Max/"] , ["png","PNGs Indexed/"] , ["png","PNGs Transparent/"] ] - -screen = pygame.display.set_mode(size) #Screen Set 600x400 -background = 152, 251, 152 # pale green - -#The switch function -#------------------------------------------------------------- -def chngImg(): - cnt=make - while cnt>0: - switcher = { - 1: pygame.image.load("%s2 Button.%s"%(ft[1],ft[0])), - 2: pygame.image.load("%s3 Button.%s"%(ft[1],ft[0])), - 3: pygame.image.load("%s4 Button.%s"%(ft[1],ft[0])), - 4: pygame.image.load("%s5 Button.%s"%(ft[1],ft[0])), - 5: pygame.image.load("%s6 Button.%s"%(ft[1],ft[0])), - 6: pygame.image.load("%s7 Button.%s"%(ft[1],ft[0])), - 7: pygame.image.load("%s8 Button.%s"%(ft[1],ft[0])), - 8: pygame.image.load("%s9 Button.%s"%(ft[1],ft[0])), - 9: pygame.image.load("%s1 Button.%s"%(ft[1],ft[0])) - } - img[cnt,0]=switcher.get(i,pygame.image.load("%s1 Button.%s"%(ft[1],ft[0]))) - #img[cnt,0].set_colorkey(colorkey, pygame.RLEACCEL) - cnt=cnt-1 -#----------------------------------------------------------------- -#Collision detection - -def collision(): - cnt=make - while cnt>0: - if img[cnt,1].left < 0 or img[cnt,1].right > width: - img[cnt,2]=[ -img[cnt,2][0], img[cnt,2][1] ] - if img[cnt,1].top < 0 or img[cnt,1].bottom > height: - img[cnt,2]=[ img[cnt,2][0], -img[cnt,2][1] ] - img[cnt,1] = img[cnt,1].move(img[cnt,2]) - screen.blit(img[cnt,0],img[cnt,1]) - cnt=cnt-1 - pygame.display.flip() -#----------------------------------------------------------------- -#----------------------------------------------------------------- -#----------------------------------------------------------------- -#----------------------------------------------------------------- -while 1: - cnt=make - ft=ftArr[t] - print "Testing "+ft[1]+"N Button."+ft[0] - trial=5 - while trial>0: - while cnt>0: - img[cnt,0]= pygame.image.load("%s1 Button.%s"%(ft[1],ft[0])) #image.load - img[cnt,1]= img[cnt,0].get_rect() - img[cnt,2]= [2,2] #speed - m=cnt*40 # named m cause i wanted some m&ms - img[cnt,1]=img[cnt,1].move(m,m) #see? it wasn't as tastey though - cnt=cnt-1 - r=0 - start=time.time() -# ----------------------------------------------------------------- - while 1: - chngImg() - i=i+1 - if i>9: i=1 - - for event in pygame.event.get(): - if event.type == pygame.QUIT: sys.exit() - -# speed1=collision(ballrect1,speed1) -# ballrect1 = ballrect1.move(speed1) - - collision() - screen.fill(background) - -# cnt=make -# while cnt>0: -# screen.blit(ball1, ballrect1) -# screen.blit(img[cnt,0],img[cnt,1]) -# cnt=cnt-1 -# -# pygame.display.flip() - - r=r+1 - if r>500: break - -# ----------------------------------------------------------------- -# ----------------------------------------------------------------- - - print 1/((time.time()-start)/r) - trial=trial-1 - t=t+1 |