Skip to content

Latest commit

 

History

History
47 lines (31 loc) · 830 Bytes

File metadata and controls

47 lines (31 loc) · 830 Bytes

aprende-programacion-programando-videojuegos

por @gabopython

Curso de programación en youtube

drawing

instalar pygame en Windows

pip install pygame

Mac

pip3 install pygame

codigo base de pygame

import pygame
from pygame.locals import *


WIDTH, HEIGHT = 400, 500
screen = pygame.display.set_mode((WIDTH, HEIGHT))
clock = pygame.time.Clock()

# constants


# variables


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

    # code here

    pygame.display.update()
    screen.fill((0, 0, 0))
    clock.tick(30)