Advertisement

Creating a game with Python

Started by January 20, 2015 01:29 PM
4 comments, last by SirFroweey 9 years, 11 months ago

Hello guys!

Sorry if this has been posted before, and it almost certainly has, but I could not see anything immediately (and if it is too old it may have been super-seeded anyway since!).

I am interested in learning Game Dev as a way of reinforcing my learning of Python. What do you recommend is the best set up for creating a game in Python in regards to software? What would I need to have set up to do this?

Does anyone have a link to a basic game written in Python that has the source code available?

Cheers :)

Ed

You should look for python programming with pygame, that's the api set I would recommend to learn game programming with python.

Here's a link to some tutorials, but you should use google as well to find exactly what you are looking for.

Good luck and have fun!

My Gamedev Journal: 2D Game Making, the Easy Way

---(Old Blog, still has good info): 2dGameMaking
-----
"No one ever posts on that message board; it's too crowded." - Yoga Berra (sorta)

Advertisement

I can recommend pySFML. It's a binding of popular SFML C++ library.

For source code, you can lurk github.com. There're many projects, small and big, you will surely find some reference there.

If you want better graphics than what Pygame is capable of, there are the graphic libraries of Direct Pythion 11 and PyOpenGL .

I cannot remember the books I've read any more than the meals I have eaten; even so, they have made me.

~ Ralph Waldo Emerson

I agree with the Pygame recommendation.

You could try http://inventwithpython.com/inventwithpython.pdf and then http://inventwithpython.com/makinggames.pdf. These include tutorials with the source code.

Good luck!

On Rye

You can use my creation: PyDark 2D Game framework. It's built on-top of Python and PyGame and allows you to quickly create 2D games with less code.

http://www.gamedev.net/topic/665124-pydark-2d-game-framework-pythonpygame-library/

This topic is closed to new replies.

Advertisement