Sign in to follow this  
MattSmith

Library Overkill? [python]

Recommended Posts

I've begun learning how to use various api's for a game I'm about to begin in Python, and I'm afraid I might be using *too* many libraries. Anyways, here's what I'm basically planning, at the moment. Keep in mind, it will be multiplatform for Windows and Linux, and possibly Mac if I can get other people to test it. 1. Pyglet -- Game loop, window, etc. Also, for rendering the background layers in batches. 2. Rabbyt -- For animated sprites. 3. Pymunk -- Physics engine for various needs in the game. 4. Pygame -- Optional component. I'll be using it optionally for joystick input (something very important for my game since it's 2 players locally) and possibly sound if Pyglet continues to have the issues with sound that it does. Anyways, my plan is to stash all of these in py2exe for Windows distribution. That's a lot of dependencies (particularly Rabbyt and pygame) which would make it difficult for users. Would using these 4 libraries be overkill? Furthermore, what might be the most straightforward way to distribute the final product on Linux? Thanks for any thoughts [edit] Forgot to mention why I'm using pyglet/rabbyt: I'm planning on doing a lot of color blending and alpha effects, so hardware rendering would probably be beneficial. That said, would it be better to just use pygame and rabbyt?

Share this post


Link to post
Share on other sites
Quote:
Original post by MattSmith
I've begun learning how to use various api's for a game I'm about to begin in Python, and I'm afraid I might be using *too* many libraries. Anyways, here's what I'm basically planning, at the moment. Keep in mind, it will be multiplatform for Windows and Linux, and possibly Mac if I can get other people to test it.

1. Pyglet -- Game loop, window, etc. Also, for rendering the background layers in batches.

2. Rabbyt -- For animated sprites.

3. Pymunk -- Physics engine for various needs in the game.

4. Pygame -- Optional component. I'll be using it optionally for joystick input (something very important for my game since it's 2 players locally) and possibly sound if Pyglet continues to have the issues with sound that it does.


Anyways, my plan is to stash all of these in py2exe for Windows distribution. That's a lot of dependencies (particularly Rabbyt and pygame) which would make it difficult for users. Would using these 4 libraries be overkill? Furthermore, what might be the most straightforward way to distribute the final product on Linux?

Thanks for any thoughts

[edit] Forgot to mention why I'm using pyglet/rabbyt: I'm planning on doing a lot of color blending and alpha effects, so hardware rendering would probably be beneficial. That said, would it be better to just use pygame and rabbyt?

Doesn't sound too bad, although for recommendations as to how to distribute it on Linux, assuming it's open source you could just make an apt package for it and ensure all the dependencies are there

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this