Answers for "pygame window set up python"

2

how to make a pygame window

import pygame 
pygame.init()

"""this is how to make a pygame window, the 500,500 is the size of the window
btw(it is your choice what the size is ) """

var = pygame.display.set_mode((500,500))

"""this is how to change the title of the window"""
pygame.display.set_caption('example')
Posted by: Guest on July-04-2020
0

how to set up pygame

import pygame
import os
import sys
import random
pygame.init()
screen = pygame.display.set_mode((800, 500))
Posted by: Guest on October-31-2020

Python Answers by Framework

Browse Popular Code Answers by Language