python - Error with a pygame project very early into it -


basically have far , appear there wrong computer or py.game.

here code far:

import pygame  pygame.init()  gamedisplay = pygame.display.set_mode((1280,720)) pygame.display.set_caption('python platformer')  python_char = pygame.image.load('python_char') 

when run in python launcher 2 errors.

  1. 20:52:53.731 warning: 140: application, or library uses, using deprecated carbon component manager hosting audio units. support removed in future release. also, makes host incompatible version 3 audio units. please transition api's in audiocomponent.h.

  2. line 8, in python_char = pygame.image.load('python_char')

i left out directory because dont see them being of if needed can add them in.

the code entered here has 1 issue me. make sure have right version of pygame installed corresponds python version. second error, change ('python_char') supported image file. example:

python_char=pygame.image.load('snake.png') 

but replace snake.png name of image.


Comments

Popular posts from this blog

html - Styling progress bar with inline style -

java - Oracle Sql developer error: could not install some modules -

How to use autoclose brackets in Jupyter notebook? -