Hi
kivy and pygame works very differently, and i don't think mixing them is
really possible, you may be more interested in PGS4A if rewriting (most
of) your code is not an option for you.
If you want to mix both, you have to understand that in pygame, you draw
directly on the screen object, you do clear/bits/updates there with your
various textures of ingame objects every frame. In kivy, you place
widgets on the screen, these objects have canvas, that are persistant,
you shouldn't erase everything and redraw it every frame, you could
decide to just put one widget at the bottom of your widget tree, and
draw all of your current game on it, but that's not how you usually use
kivy.
To help us help you, maybe giving a set of snippets of how you currently
do your things with pygame, so we can try to come up with equivalences,
no promise, though, since as said, the fundamental way of working with
kivy is different of the one of pygame.
regards
On Wed, Feb 20, 2013 at 09:04:00PM -0800,
sakanac...@gmail.com wrote:
> Hi, so I made a game using pygame completely and it works quite well. I'm
> somewhat new to programming but i'd like to try this on android, so I
> figured that i'd try to integrate Kivy into my code seeing that it looks so
> promising. My first plan of action was to at least get a button (from kivy)
> onto my game's screen. But sadly I keep running into an issue. When i try
> to run my game, the entire block of code starts, but when it reaches the
> point where i have to return the widget (which creates a Kivy window), then
> my entire game crashes. I've been reading some of the documentation and the
> tutorials, but I really have no idea on *how* to start on converting my
> pygame code using Kivy.
>
> I guess at the very least i'd like to know how to get my original Window: "*
> thescreen*=pygame.display.set_mode((0,0),pygame.FULLSCREEN) " to stop
> displaying; And instead let the Kivy Window display, and let me do all the
> drawing on that Kivy window instead. Right now the variable for my Pygame's
> window is *thescreen*. How would i go about doing my drawing on the Kivy
> window instead? Is there a way that i can set Kivy's window to *thescreen*?
>
> I fear that maybe i will have to re-write EVERYTHING in Kivy and i can't
> implement my pygame code at all....
> If you need any more details and I haven't supplied enough just let me
> know! I'm sure my interpretation of Kivy and it's integration with Pygame
> is completely wrong, but i just wanted to get my problem out there and let
> you guys know how i was thinking.
> I'll be checking back constantly! Thank you!
>
> --
> You received this message because you are subscribed to the Google Groups "Kivy users support" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
kivy-users+...@googlegroups.com.
> For more options, visit
https://groups.google.com/groups/opt_out.
>
>