Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/anim
diff options
context:
space:
mode:
authorslm <jtmengel@gmail.com>2010-08-05 04:56:35 (GMT)
committer slm <jtmengel@gmail.com>2010-08-05 04:56:35 (GMT)
commitd64ea3c18599d3df0065b6466c90bbdf0411bd56 (patch)
tree2d230492a3558602b9841ff08ff4438647776f53 /anim
parent3b059d14fd5de2efd69beef7a6b1e362bacb1dd8 (diff)
Deleted depreciated directories of tests - finalized the prototype of the Drawable Object test to be included in the complete test kit.
Diffstat (limited to 'anim')
-rwxr-xr-xanim/completeTest/fileTypeTests.py51
-rwxr-xr-xanim/completeTest/ioexample.py20
-rw-r--r--anim/completeTest/localfile1
-rw-r--r--anim/completeTest/testresult.csv0
-rwxr-xr-xanim/spriteTest.py109
-rwxr-xr-xanim/test.py109
6 files changed, 0 insertions, 290 deletions
diff --git a/anim/completeTest/fileTypeTests.py b/anim/completeTest/fileTypeTests.py
deleted file mode 100755
index f770b45..0000000
--- a/anim/completeTest/fileTypeTests.py
+++ /dev/null
@@ -1,51 +0,0 @@
-#! /usr/bin/env python
-#import sys
-
-
-print "\n\nWelcome to the master File Type Tester Interface"
-print "Authors: Scott 'JT' Mengel and Dave Silverman"
-print "\nPlease select the test(s) you want to run in the order you want to run them."
-print "Enter 'Exit' into the prompt to close the program. (NOTE: not working yet)\n"
-print "0. Run all tests"
-print "1. Simple File Type Variety Test, as images (NOTE: not working yet)"
-print "2. Simple File Type variety Test, as sprites (NOTE: not working yet)"
-print "3. Selected Scalability Test (NOTE: not working yet)"
-
-file=open('./testresult.csv','a')
-i=int(1)
-keyIn="temp val"
-
-
-#= .image() Animation Test ========
-#- test ---------------------------
-def imgTest():
- print "imgTest"
-
-
-#= .sprite() Animation Test =======
-#- test ---------------------------
-def spriteTest():
- print "spriteTest"
-
-
-#= Scalability Test ===============
-#- test ---------------------------
-def scaleTest():
- print "scaleTest"
-
-
-#= Super (every) Test =============
-#- test ---------------------------
-def superTest():
- print "superTest"
-
-list=[superTest,imgTest, spriteTest, scaleTest]
-
-while True:
- keyIn=raw_input(">")
-
- try:
- temp = int(keyIn)
- list[temp]()
- except:
- break
diff --git a/anim/completeTest/ioexample.py b/anim/completeTest/ioexample.py
deleted file mode 100755
index 020e09e..0000000
--- a/anim/completeTest/ioexample.py
+++ /dev/null
@@ -1,20 +0,0 @@
-#! /usr/bin/env python
-#
-print "\nWelcome to the master File Type Tester Interface"
-print "Authors: Scott 'JT' Mengel and Dave Silverman"
-print "\nPlease select the test(s) you want to run, in the order you want to run them, seperated by commas.\n"
-print "1. Simple File Type Variety Test, as images"
-print "2. Simple File Type variety Test, as sprites"
-print "3. Selected Scalability Test"
-file=open('./localfile','a')
-keyIn=0
-
-while 1:
- try:
- keyIn = int(raw_input(">"))
- print "You have selected %i"%keyIn
- file.seek(5)
- file.write("File Accessed!%s"%str(keyIn))
- break
- except ValueError:
- print "Error: out of bounds."
diff --git a/anim/completeTest/localfile b/anim/completeTest/localfile
deleted file mode 100644
index 4f70f41..0000000
--- a/anim/completeTest/localfile
+++ /dev/null
@@ -1 +0,0 @@
-File Accessed!1 \ No newline at end of file
diff --git a/anim/completeTest/testresult.csv b/anim/completeTest/testresult.csv
deleted file mode 100644
index e69de29..0000000
--- a/anim/completeTest/testresult.csv
+++ /dev/null
diff --git a/anim/spriteTest.py b/anim/spriteTest.py
deleted file mode 100755
index c06596a..0000000
--- a/anim/spriteTest.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
diff --git a/anim/test.py b/anim/test.py
deleted file mode 100755
index c06596a..0000000
--- a/anim/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