diff options
Diffstat (limited to 'devtools/ImageTypeTest/BMPs 16-Bits')
22 files changed, 0 insertions, 173 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) |