Python How can I add pictures to my python game using JGrasp and PyGame?

  • Thread starter Thread starter ignacio_cabero
  • Start date Start date
  • Tags Tags
    Pictures Python
Click For Summary
To incorporate images into a text-based video game using Python, utilizing the PyGame library is recommended for its comprehensive functionality. For simpler needs, the Python Image Library (PIL) can be employed to display images without the complexity of a full game framework. Both resources provide essential tools for integrating graphics into Python projects effectively.
ignacio_cabero
Messages
3
Reaction score
0
Hello. I am creating a text-based video game using python, and I was wondering how I could put pictures from my Mac into the game. I am using JGrasp if it helps to know.
 
Technology news on Phys.org
Take a look at the PyGame library
http://www.pygame.org/news.html

If that's too heavyweight and you *just* want to show an image then you can use Python Image Library

http://www.pythonware.com/products/pil/
 
Learn If you want to write code for Python Machine learning, AI Statistics/data analysis Scientific research Web application servers Some microcontrollers JavaScript/Node JS/TypeScript Web sites Web application servers C# Games (Unity) Consumer applications (Windows) Business applications C++ Games (Unreal Engine) Operating systems, device drivers Microcontrollers/embedded systems Consumer applications (Linux) Some more tips: Do not learn C++ (or any other dialect of C) as a...

Similar threads

  • · Replies 10 ·
Replies
10
Views
3K
Replies
3
Views
2K
Replies
6
Views
3K
  • · Replies 17 ·
Replies
17
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 9 ·
Replies
9
Views
4K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K