Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to integrate with other pygame resources? #67

Open
icarito opened this issue Jun 19, 2014 · 1 comment
Open

How to integrate with other pygame resources? #67

icarito opened this issue Jun 19, 2014 · 1 comment

Comments

@icarito
Copy link
Contributor

icarito commented Jun 19, 2014

For instance, I'd like to somehow integrate gummworld2 tmx map rendering: http://pygame.org/project-Gummworld2-1733-4718.html

I can think maybe I should use an Actor clas for implementing the equivalent of a main loop?

Would be nice to get your advice on the topic.

@acbart
Copy link
Member

acbart commented Dec 29, 2014

I think the experience will vary a lot depending on what you're integrating. In theory, you can always import pygame and treat it as usual - in practice, Spyral is doing a lot to Pygame that can go against your expectations (I'm not sure what would happen if you started flipping the display manually, for instance). In this system's example, I think you would need to work at a pretty deep level in Spyral to do the integration, since these are both frameworks on top of pygame.

In the case of this renderer, we should figure out what their approach is in general, and then we can probably mimic it. I don't know how much code would be directly usable, but I'm 51% confident that we couldn't just use the library directly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants