'Can't load images in Pygame using Pydroid 3 app. The error says unsupported file format for both jpg and png. But pygame.image.get_extended() = True
import sys
import pygame
pygame.init()
screen = pygame.display.set_mode((0,0))
red = (255,0,0)
blue = (0,0,255)
img = pygame.image.load("car.png")
while True:
for event in pygame.event.get():
if event.type == pygame.QUIT:
pygame.quit()
sys.exit()
screen.blit(img,(0,0))
screen.fill(red)
pygame.display.flip()
""" Examples on the app use png images, when I run pygame.image.get_extened() is says True so I should be able to use files other than BMP right?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
