Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- import pygame, sys
- from pygame.locals import *
- pygame.init()
- (windows_width, windows_height, windows_title) = (600, 400, "Simple Figure")
- screen = pygame.display.set_mode((windows_width,windows_height),0,32)
- pygame.display.set_caption(windows_title)
- windows_bgcolor = (255,255,255)
- mainLoop = True
- clock = pygame.time.Clock()
- milli = seconds = 0.0
- #initial data here
- while mainLoop:
- for event in pygame.event.get():
- if event.type == QUIT:
- mainLoop = False
- screen.fill(windows_bgcolor)
- #calc time
- milli = clock.tick()
- seconds = milli / 1000.0
- #create frame here
- pygame.display.update()
- pygame.quit()
- #destroy data here
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement