Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

i'm learning something about game programming from a book about "pyGame". pyGame is simple, but... python is a little complex and different from my previous knoweledge about programming.

I know "classical" language: C# (also C/C++), Java ... I know a lot of people love Python but for me is a little harder to learn!

So I'm looking something like "pyGame" but for java or for c# ... A library with which I can do almost the same thing i can do with pygame (so .. do more with less code ... and headache).

share|improve this question

closed as not constructive by Tetrad Jan 22 '12 at 7:37

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.If this question can be reworded to fit the rules in the help center, please edit the question.

5  
Honestly, I would spend an afternoon with the Python Tutorial (docs.python.org/tutorial). Python has a few oddities, but it's a fairly simple language to learn. –  drxzcl Oct 13 '10 at 7:56
3  
You won't find much that lets you do more with less code than Pygame. Pygame's rendering model is simple to the point of stupidity and uselessness on modern computers (CPU-side framebuffers), and the interface is nearly as high-level as you can get for those. –  user744 Oct 13 '10 at 8:52
3  
complex? python? sbrotfl. Dive into Python is one of the best guides I've ever read diveintopython.org/toc/index.html –  Lohoris Oct 13 '10 at 10:25
    
I learned Python in an afternoon (from years of C++ experience) and within a week I was writing more functionality faster in Pygame. –  dash-tom-bang Oct 13 '10 at 22:28
3  
On a second look at this question, it is very misleading. The title suggests 'What other libraries are there for python?' but the question is actually 'what 2D APIs are there for java or C#?' which is totally different. –  The Communist Duck Dec 31 '10 at 13:29
add comment

8 Answers 8

up vote 6 down vote accepted

Love offers a similar level of complexity as PyGame, though I'm not sure you will find Lua much easier than Python. If you want to just go with something more direct, look for bindings for SDL (SDL.NET for example) for your favorite language, or even just use it directly in C. Many PyGame APIs are just thin wrappers for SDL functionality.

share|improve this answer
    
Thank you, i didn't know SDL.NET . I think it is what i'm looking for;)! –  stighy Oct 13 '10 at 9:48
1  
nitpick: It's LÖVE. –  egarcia Oct 14 '10 at 15:07
    
The LÖVE library is actually easier to start out with than PyGame's because a lot of nice little things like sprite animation are already done for you. –  James Jan 2 '11 at 1:21
add comment

I'm not familiar with pyGame but if you're looking for a nice easy framework to use for game development why not use XNA 4.0? It's free and lets you create games that can be played on the XBox 360, Zune HD or Windows Phone 7.

The benefit of using this is you can very easily leverage your C# knowledge and start working right away with learning the framework instead of wrestling with the language.

I highly suggest you start learning XNA by following this great series of tutorials made by Riemers.

share|improve this answer
3  
Being familiar with both, XNA is nowhere near similar to PyGame. The graphics APIs are far lower level and it doesn't offer anything like the basic sprite system in PyGame. –  coderanger Oct 12 '10 at 22:25
    
Then that settles it; XNA would probably be your best choice OP. It's very simple to use and effective. –  Sergio Oct 12 '10 at 22:53
    
@coderanger: XNA has sprites. msdn.microsoft.com/en-us/library/bb194908.aspx. They are considerably better than Pygame sprites, since they can actually use hardware acceleration. (And thereby good rotation, shaders, etc.) –  user744 Oct 13 '10 at 8:50
1  
I strongly recommend XNA for beginners. I've had a pretty good experience with it. –  Michael Coleman Dec 13 '10 at 23:10
1  
I'd point out that XNA's platform support is completely different from PyGame's. It's hardly a replacement if you are targeting any non-MS device. –  egarcia Dec 31 '10 at 17:49
show 3 more comments

Ctrl+C Ctrl+V from another question I posted on

Slick is a nice 2D Java library based off of LWJGL. It handles the game loop, rendering, and contains useful functionality to implement sprites.

It comes bundled with many different demos and examples.

Things like tilemaps, sprite sheets, etc are all built in. Basically lets you focus on the game, not how to write an engine.

share|improve this answer
    
What does Ctrl+P do? –  DMan Dec 14 '10 at 1:17
    
Typing mistake =p Ctrl+V –  David Young Dec 31 '10 at 1:37
add comment

http://wiki.python.org/moin/PythonGames has the list of python game engines/libraries. Some of the game engines in the list are not Python only. Ogre and Panda are well known ones in both you can use c++.

share|improve this answer
add comment

If you know C, I'd recommend Allegro, game programming library. That's what I used when I was getting into game dev, and it served me well back then. It has similar capabilities to SDL, but for me it was always simpler, and more straightforward. They even say on the website that there are bindings for C#, but I have no idea how those work.

http://www.talula.demon.co.uk/allegro/

Also, I find it very weird, that you say you know C++ but can't learn Python. Python is way simpler and easier to use than C++.

share|improve this answer
add comment

SDL is made with c and is perhaps the most popular game programming library. Also I think I did read somewhere that pyGame is based on it.

http://www.libsdl.org/

share|improve this answer
add comment
  • angel-engine is for simple prototyping but is pretty complete.
  • panda 3d is a full fledged 3d engine with commercial games using it, but has a relatively simple python interface if you don't want to get fancy (just look at the simplest examples).

Both are well documented.

share|improve this answer
add comment

Honestly I don't think anything can do better than pygame: SDL is simple enough, so it's a good choice. Python, when thinking about programmer-friendliness, is like the best language ever. I don't think you can do much better than pygame.

share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.