Allegro.cc - Online Community

Allegro.cc Forums » Programming Questions » Python+allegro

This thread is locked; no one can reply to it. rss feed Print
Python+allegro
22 22
Member #4,265
January 2004

hi there

I wonder if allegro working with Python, or perhaps there are beter script languages for allegro

23yrold3yrold
Member #1,134
March 2001
avatar

I think someone wrote a library that binds Python and Allegro. Check SourceForge.
Lua works fine with Allegro too ...

--
Software Development == Church Development
Step 1. Build it.
Step 2. Pray.

Ashteth
Member #3,310
March 2003
avatar

I'm not currently using Python, but I will be shortly. We use Python at work so I decided to try it out by developing games:) Honestly though, if I wasn't in it for the dual use, I'm not certain that Python would be my first choice for game scripting but I reserve the right to change my opinion.

If you haven't found it already, here's the python sourceforge page:
http://pyallegro.sourceforge.net/

I just ordered this book off Amazon:
"Game Programming With Python (Game Development Series)" by Sean Riley

If you like, I'll let you know if its any good.

Karadoc ~~
Member #2,749
September 2002
avatar

Quote:

I wonder if allegro working with Python, or perhaps there are beter script languages for allegro

I'm using Python in my game. Why should it not work with allegro?

I've never heard of that pyallegro thing before though, I think I'll take a look right now :)(although I doubt I'll use it, the C/Python interface is pretty much finished in my game).

[edit]
I just had a scan over the pyallegro site; I couldn't work out what pyallegro actually does. oh well. shrug

-----------

Ashteth
Member #3,310
March 2003
avatar

I think pyallegro is supposed to be like the SDL pygame wrapper (http://pygame.org/), in other words it's a wrapper for most of the allegro functions in python. I haven't tried pyallegro (only glanced through the source), but I have tried pygame. Pygame works fairly well and I believe the aforementioned book I just purchased uses pygame heavily. If only pygame didn't use that awful SDL library:)

In my project, I probably won't use pyallegro or pygame as I tend to favor C++ over C and will probably bind my C++ Allegro wrapper using the Boost.Python C++ interface.

http://www.boost.org/libs/python/doc/index.html

Go to: