Removed test_main.py. Created audio.py.

This commit is contained in:
2013-01-23 13:31:24 -04:30
parent b924411032
commit b800e46d29
2 changed files with 3 additions and 39 deletions

3
audio.py Normal file
View File

@@ -0,0 +1,3 @@
############################################
# Created on 1-23-2013. Miguel Angel Astor #
############################################

View File

@@ -1,39 +0,0 @@
#! /usr/bin/env python
############################################
# Created on 1-10-2013. Miguel Angel Astor #
############################################
import pygame
from particle import ParticleSystem
def main():
pygame.init()
screen = pygame.display.set_mode([600,400])
done = False
clock = pygame.time.Clock()
white = (255,255,255)
ps = ParticleSystem(0, "Test", 'gfx/burbuja.png', 1000, 1000, 4, -190.0)
ps.start()
while not done:
for event in pygame.event.get():
if event.type == pygame.QUIT:
done = True
if event.type == pygame.KEYDOWN:
if event.key == pygame.K_ESCAPE:
done = True
ps.update()
screen.fill(white)
ps.draw(screen)
pygame.display.update()
pygame.display.set_caption("Test :: FPS " + str(int(clock.get_fps())))
clock.tick(60)
pygame.quit()
if __name__ =="__main__":
main()