Example #1
0
import pygame

from display.displaymapper import WINDOW_WIDTH, WINDOW_HEIGHT
from gamevariables import GAME_FPS
from match import Match
from libs.FpsClock import FpsClock


__author__ = 'Thomas'

window = pygame.display.set_mode((WINDOW_WIDTH,WINDOW_HEIGHT)) #makes the window
pygame.display.set_caption("FootSim") #sets the game caption
pygame.font.init()

timer = FpsClock(GAME_FPS)

match = Match(window)

while True:
    match.playMatchTurn()
    pygame.display.update()
    timer.tick()