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.

46 lines
852 B

4 days ago
"""
Jeu cars and run 2D
Script python:
"""
import pygame
from pygame.locals import *
from constantes import *
pygame.init()
#ouverture de la fenetre
fenetre = pygame.display.set_mode((largeur_fenetre, hauteur_fenetre))
fenetre.fill((0,128,255))
#Icone
icone = pygame.image.load(image_icone)
pygame.display.set_icon(icone)
#Titre
pygame.display.set_caption(titre_fenetre)
continuer = 1
while continuer:
for event in pygame.event.get(): #Attente des événements
if event.type == QUIT:
continuer = 0
#BOUCLE DE JEU:
if event.type == KEYDOWN:
if event.key == K_F1:
#boucle acceuil
fenetre.fill((0,0,0))
if event.key == K_F1:
#boucle niveau
pass
pygame.display.flip()
pygame.quit()