What do you want to save?
Add Code snippet
New code examples
-
Python 2022-01-29 12:30:57
display text in pygame
import pygame pygame.init() window = pygame.display.set_mode((500, 500)) def set_text(string, coordx, coordy, fontSize): #Function to set text font = pygame.font.Font('freesansbold.ttf', fontSize) #(0, 0, 0) is black, to make black text te... Add solution -
Other 2021-09-19 11:31:01
pygame exe error
If your pygame app not working when you convert it to exe then your problem is probably the font font = pygame.font.Font(None, 32) line 3 will not work. you have to specify which font you want font = pygame.font.SysFont("comicsansms", 32) line 5... Add solution -
Python 2021-09-12 11:04:01
fdriving gam in python
import pygame import time import random pygame.init() display_width = 800 display_height = 600 black = (0,0,0) white = (255,255,255) red = (255,0,0) car_width = 73 gameDisplay = pygame.display.set_mode((display_width,display_height)) pygame.display.s... Add solution