Answers for "how to fill the screen in pygame"

0

pygame fullscreen

infoObject = pygame.display.Info()
pygame.display.set_mode((infoObject.current_w, infoObject.current_h))
Posted by: Guest on June-05-2021
1

.fill pygame

while running:
    event = pygame.event.poll()
    if event.type == pygame.QUIT:
        running=0
    screen.fill((0,0,255))
    pygame.display.flip()
Posted by: Guest on April-05-2020
0

how to make a screen in pygame

so here i will be giving the most basic and most easy method

import pygame
# initialize pygame
pygame.init()
screen = pygame.display.set_mode((1370, 710))
#1370,710 gives a full screen
Posted by: Guest on June-09-2021

Python Answers by Framework

Browse Popular Code Answers by Language