Archived

This topic is now archived and is closed to further replies.

darkbard

Building a commercial-like game using only python

Recommended Posts

Guest Anonymous Poster
You could also probably write any turn based game you felt like

Share this post


Link to post
Share on other sites
Well, you are thinking in the right direction. You don''t have to use just C to write your games. In fact, the Unix philosophy is set against this. That''s how Python and numerous other scripting languages were born!

I would write the executable in C. Period. This is the program that loads up the scripts and data. Then it tells Python (the interpreter) to "do that voodoo that you do (to my scripts)."

Any process that''s very "heavy" (graphics, streaming, process control...) should not be written in Python in the final build. Those need to be hard-coded. (And the Unix philosophy also encourages you to use existing libraries of satisfying quality, but do help other dev''ers where you can.)

Use python for other things, especially things in your game. That way, game objects can be represented by scripts that are turned on and off.

Golden Rule: Use common sense.



==================
Benjamin Heath
==================

Share this post


Link to post
Share on other sites
quote:
Do you think I can build a commercial game using only python as porgramming language?? It could be too slow??


It depends on what you mean by commercial. If you mean Quake 4, then no. But you can write smaller games that run fine written in Python using Pygame (http://pygame.org/)



quote:
Original post by dist0rted
Uh hum... does python have graphics support? The only text-based games that I know of that will sell now-a-days are hacking games.


Yes. http://pygame.org/

Share this post


Link to post
Share on other sites
Again, it depends on exactly what you mean by "only python". If allow yourself to have a high-performance graphics/game engine written in some other language (like C/C++), then the answer is a resounding "yes". In fact, Humongous Entertainment writes all of their games in Python (using a proprietary engine underneath, which I assume is in C/C++).

Humongous does all those "Backyard" games ("Backyard Baseball", "Backyard Hockey", "Backyard Football" etc.). They're successful, professional, 2D games written in Python. If you want to read an article about them, try http://www.cygnus-software.com/papers/gamescriptinginpython.html

Also, there's a 3D engine written to be used with only Python that looks promising. Check it out at http://oomadness.tuxfamily.org/en/index.html

As you can see, I'm a big Python fan. If anyone else knows some good Python game success stories or resources, post 'em!



[edited by - BcS on January 9, 2004 6:46:42 PM]

Share this post


Link to post
Share on other sites