Pygame

No description

fork
loading
Files
  • main.py
  • nohup.out
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import pygame, sys

from pygame.locals import * 

pygame.init() 

DISPLAYSURF = pygame.display.set_mode((760,560))

pygame.display.set_caption('GAME ok')

BLACK = (  0,   0,   0)
WHITE = (255, 255, 255)
RED = (255,   0,   0)
GREEN = (  0, 255,   0)
BLUE = (  0,   0, 255)

DISPLAYSURF.fill(WHITE)
pygame.draw.polygon(DISPLAYSURF,GREEN, ((146,0),(291, 106), (56,277), (0,106)))

while True:
	for event in pygame.event.get():
		if(event.type == QUIT):
			pygame.quit()
			sys.exit() 
	
	pygame.display.update()