Added bare-bones game.py

master
David Raison 2014-08-30 15:28:07 +02:00
parent 6aaf5755f6
commit a213b51705
1 changed files with 29 additions and 0 deletions

29
game.py Normal file
View File

@ -0,0 +1,29 @@
#!/usr/bin/env python3
"""
Avocados and stuff
"""
import os, random
import pygame
from pygame.locals import *
from support import colors
import hud
def main():
pygame.init()
pygame.display.set_caption('Avocados')
clock = pygame.time.Clock()
while running:
# Limit to 50 fps
time_passed = clock.tick(30)
for event in pygame.event.get():
if event.type == pygame.QUIT:
running = False
pygame.display.flip()
if __name__ == '__main__':
main()