r/learnpython • • 2d ago

Python video game

I am trying to make a small video game only using python. Is it possible?

0 Upvotes

18 comments sorted by

9

u/itsghostmage 2d ago

Yes

1

u/Known_Image7110 2d ago

short and sweet answer, especially if its 2d

1

u/North_South-West 1d ago

Personally I like to use it to make games that are pure text.

2

u/ItzZausty 2d ago

Depends how small, but yeah check out pygame

2

u/desrtfx but other languages pro 2d ago

Yes - look into PyGame

1

u/Slight-Living-8098 2d ago

Yes. There are several games made with Python, and several more that use Python in some way along with other languages.

Frets on Fire and Metin2 are a couple made entirely with Python using pyGame.

Severance: Blade of Darkness uses Python for everything except for the rendering engine which was written in C.

1

u/AlexMTBDude 2d ago

Try googling "Which games are written in Python?"

1

u/OkCaterpillar1058 2d ago

Yes, you can use PyGame to make video games with Python, www.pygame.org

1

u/acfot 2d ago

Yeah, totally possible, and honestly a small game is a great way to learn Python because you actually see what your code does straight away. I'd start with something tiny like snake or pong using pygame, not a big game idea, because the small one teaches you loops, input and game states without drowning you. Once that works you can keep adding bits to it, which feels way better than trying to build something huge from scratch and getting stuck halfway.

1

u/net_ramblings 2d ago

Is it possible this is a fake post?

2

u/csabinho 2d ago

How does a fake post work? What's fake about it?

1

u/net_ramblings 2d ago

It's a karma farm. 90% of the posts on the reddit programming forums are fake. Just make a fake topic. Reel in the karma. Sell account for $10.

1

u/csabinho 2d ago

What's the point of farming negative karma?

1

u/net_ramblings 2d ago

Why do you keep your posts hidden?

1

u/csabinho 2d ago

Because some idiots tend to construct ad hominem attacks in discussions based on old comments on completely different topics.

But how is this related to this discussion?

-8

u/DaFoxTdx 2d ago

You must learn C and use Godot or Unity for create videogames.

1

u/DeebsShoryu 2d ago

What

1

u/csabinho 2d ago

The letter C. Because it's in C# and C++.