Relative Content

Tag Archive for pythoncsvpygame

(Updated) My pygame can’t read my csv file properly

import pygame import csv pygame.init() Width = 1900 Height = 950 screen = pygame.display.set_mode((Width, Height)) pygame.display.set_caption(“Dark Souls IV”) #def game variables Gravity = 0.7 Rows = 50 Cols = 100 Tile_size = Height // Rows Tile_types = 15 level = 1 start_game = False level_complete = False img_list = [] for x in range(Tile_types): img […]

My pygame can’t read my csv file properly

import pygame import random import csv import button pygame.init() Width = 1900 Height = 950 screen = pygame.display.set_mode((Width, Height)) pygame.display.set_caption(“Dark Souls IV”) #set framerate clock = pygame.time.Clock() FPS = 60 font = pygame.font.Font(“C:/Users/paull/OneDrive/Dokumente/Informatik/Pixeled.ttf”, 15) Black = (0, 0, 0) #def game variables Gravity = 0.7 Rows = 50 Cols = 100 Tile_size = Height // […]