Skip to content
← Back to Community
Pygame Sprite Graphics?
Profile icon
_olatobi_

Does repl.it support sprite graphics? If so, how do you implement them?

Answered by Kai_Justice [earned 5 cycles]
View Answer
Voters
Profile icon
AnthonyEfthimia
Profile icon
Kai_Justice
Profile icon
_olatobi_
Comments
hotnewtop
Profile icon
Kai_Justice

You'll have to import an image file if you want anything complicated, this website has a good amount of documentation on sprites.

Profile icon
_olatobi_

@Kai_Justice So do I have to download an image file locally on my PC?

Profile icon
Kai_Justice

@olatobi Yes, you'll have to download the image on your pc and upload it to replit.

Profile icon
_olatobi_

@Kai_Justice i've downloaded all the images that I need to use, do you know exactly how to implement them as sprites in my code?

  • thank you for the help so far
Profile icon
Kai_Justice

@olatobi I'm not exactly indepth at using pygame but here's what I've come up with on loading sprites.

Profile icon
_olatobi_

@Kai_Justice thanks so much man, I really appreciate your help :)

Profile icon
[deleted]

repl.it supports all the features of pygame (except maybe audio). I believe they implement that by piping an X11 screen to your repl using Websockets.

Profile icon
NarwhalFanatic

I believe you maybe able to import an image as a file and then assign a sprite that file. Haven't tested it though.