How to load and display image in pygame on screen||Hindi tutorial||PYTHON

Опубликовано: 03 Апрель 2026
на канале: CODING LIFE
240
2

Code as in Video:
=======================================
import pygame
pygame.init()

win = pygame.display.set_mode((800,800))

car = pygame.image.load('car.jpg')


#car = pygame.image.load('car.jpg')
#win.blit(car,(0,0))


over = False
while over == False:
for event in pygame.event.get():
if event.type == pygame.QUIT:
over = True

win.blit(car,(0,0))
pygame.display.update()