Added empty init file to support folder
parent
a213b51705
commit
c241f279bd
|
@ -52,3 +52,5 @@ coverage.xml
|
||||||
# Sphinx documentation
|
# Sphinx documentation
|
||||||
docs/_build/
|
docs/_build/
|
||||||
|
|
||||||
|
include
|
||||||
|
local
|
||||||
|
|
10
game.py
10
game.py
|
@ -6,15 +6,23 @@ Avocados and stuff
|
||||||
import os, random
|
import os, random
|
||||||
import pygame
|
import pygame
|
||||||
from pygame.locals import *
|
from pygame.locals import *
|
||||||
|
|
||||||
from support import colors
|
from support import colors
|
||||||
import hud
|
import hud
|
||||||
|
|
||||||
|
# Move this outside
|
||||||
|
screen_width = 800
|
||||||
|
screen_height = 600
|
||||||
|
screen = pygame.display.set_mode((screen_width,screen_height))
|
||||||
|
bg = (0,0,0)
|
||||||
|
screen.fill(bg)
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
pygame.init()
|
pygame.init()
|
||||||
pygame.display.set_caption('Avocados')
|
pygame.display.set_caption('Avocados')
|
||||||
clock = pygame.time.Clock()
|
clock = pygame.time.Clock()
|
||||||
|
|
||||||
|
running = True
|
||||||
while running:
|
while running:
|
||||||
# Limit to 50 fps
|
# Limit to 50 fps
|
||||||
time_passed = clock.tick(30)
|
time_passed = clock.tick(30)
|
||||||
|
|
Loading…
Reference in New Issue