Capa Royale — o battle royale made in Brazil 🇧🇷/exemplo pitfall em python

 import pygame import sys # Inicializa o Pygame pygame.init() # Tela LARGURA, ALTURA = 800, 400 TELA = pygame.display.set_mode((LARGURA, ALTURA)) pygame.display.set_caption("Mini Pitfall") # Cores PRETO = (0, 0, 0) VERDE = (0, 200, 0) AZUL = (0, 100, 255) CINZA = (100, 100, 100) # Jogador jogador = pygame.Rect(50, 300, 40, 60) vel_y = 0 gravidade = 1 no_chao = True # Obstáculo (buraco) buraco = pygame.Rect(300, 360, 100, 40) # Relógio clock = pygame.time.Clock() # Loop do jogo while True:     TELA.fill(CINZA)     # Eventos     for evento in pygame.event.get():         if evento.type == pygame.QUIT:             pygame.quit()             sys.exit()     # Movimento do jogador     teclas = pygame.key.get_pressed()     if teclas[pygame.K_RIGHT]:         jogador.x += 5     if teclas[pygame.K_LEFT]:       ...

FLAMENGO VS ATLÉTICO MINEIRO


 

Comments

Popular posts from this blog

🏡 Transforme seu espaço em renda extra com o Airbnb!

Capa Royale — o battle royale made in Brazil 🇧🇷/exemplo pitfall em python

Como mudar para os Estados Unidos sendo brasileiro