cars and run 2d
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
571 B

import pygame
from pygame.locals import *
pygame.init()
#Création de la fenêtre:
size = [800, 600]
fenetre = pygame.display.set_mode((size), RESIZABLE)
image = pygame.image.load("ton_image.png")
image.fill((255, 255, 255, 125), special_flags=BLEND_RGBA_MULT)
continuer = True
clock = pygame.time.Clock()
while continuer:
for event in pygame.event.get():
if event.type == QUIT:
continuer = False
clock.tick(30)
fenetre.fill(0)
fenetre.blit(image, (100, 100))
pygame.display.flip()
pygame.quit()