TheTerminator_of_the_informatic
-
13 oct. 2021 à 20:18
toniocraft
Messages postés1Date d'inscriptionmercredi 20 octobre 2021StatutMembreDernière intervention20 octobre 2021
-
20 oct. 2021 à 17:53
J'ai essayé de faire un moteur physic avec pygame mais un bug se produit. Quelqu'un peut m'aidez svp? voici les deux source:
import pygame
from coolGame import *
pygame.init()
pg = pygame
screen = pg.display.set_mode((660,660))
level = "Ressource\level.csv"
f = open(level,"r")
x = 0
y = 0
for line in f.readlines():
data = line.split(",")
for cell in data:
if cell == "1":
WATER(x ,y ,screen)
else:
print(":(")
x += 33
y += 33
Running = True
while Running:
pg.display.flip()
for event in pygame.event.get():
if event.type == pygame.QUIT:
running = False
pygame.quit()