Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 952e2a4e53
Fetching contributors…

Cannot retrieve contributors at this time

executable file 24 lines (16 sloc) 0.455 kb
#!/usr/bin/env python
import pygame
import lambdooz
pygame.init()
screen = pygame.display.set_mode((800, 600))
clk = pygame.time.Clock()
fps = 60
model = lambdooz.models.Marathon(2000, 10)
controller = lambdooz.controllers.Game(model)
view = lambdooz.views.Marathon(model, screen)
while True:
duration = clk.tick(fps)
model.synchronize(duration)
controller.synchronize(duration)
view.synchronize(duration)
pygame.display.flip()
Jump to Line
Something went wrong with that request. Please try again.