Added bare-bones game.py
parent
6aaf5755f6
commit
a213b51705
|
@ -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()
|
Loading…
Reference in New Issue