PyGlet or Cocos2d?

1,020 views
Skip to first unread message

Eam onn

unread,
Jul 22, 2013, 1:58:14 PM7/22/13
to pyglet...@googlegroups.com
PyGame is pretty much dead(what, with no new updates in a while it's pretty much dead), and PyGlet is 10x better! Then I saw Cocos2d and it's 100x better then both combined. But I'm in a dilemma:

PyGlet is very fast(much much much MUCH faster then PyGame), but Cocos2d is meant to be even faster. Cocos2d is meant to be for Game Development, but as I'm sure we can all admit Python is slow. It's a slow language. So for hobby open source games, should I use Cocos2d still? I want to make a simple side-scroller, and Cocos2d can render Tiled maps AFAIK.

So yeah, for game development, should I go with Cocos2d or straight-up PyGlet. I'm up for the challenge of learning how to use Cocos2d.

My plan is to teach PyGame, Cocos2d and PyGlet, and make a game with each of them. I have a YouTube channel and I plan on teaching all of that there. I also plan on teaching Python itself, as well as a lot of other stuff! But that's beside the point.

Thanks! Any help is appreciated!

Richard Jones

unread,
Jul 22, 2013, 9:11:44 PM7/22/13
to pyglet...@googlegroups.com
PyGame and pyglet are pretty much at the same stage of their life in
terms of development: pretty stable. Maintenance releases would be
good, but they both work in most situations.

You also mention speed. This has not been an issue in the couple of
dozen games I've written in Python :-)

cocos2d is a very good choice. Your indicated plans should have no
problem in cocos2d, and will be easier than going with vanilla pyglet.

Good luck with your journey!


Richard
> --
> You received this message because you are subscribed to the Google Groups
> "pyglet-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to pyglet-users...@googlegroups.com.
> To post to this group, send email to pyglet...@googlegroups.com.
> Visit this group at http://groups.google.com/group/pyglet-users.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Eam onn

unread,
Jul 23, 2013, 11:36:19 AM7/23/13
to pyglet...@googlegroups.com
Thanks! I've been playing around with Cocos2d, and it is awesome! Sure, it hasn't been updated since 2012, but does it need to be updated? Sure, some other features would be nice, but it's good at the state that it's in. It's the newest framework out of them all(PyGame and PyGlet). It's too bad that there is a lack of doc's on it. That's why I want to make tutorials on it!

I spend about 20 minutes just playing around with the actions in Cocos. It's way of doing things is awesome, and it makes sense, but it takes time to get used to it's way of doing things(like to understand about subclassing layers).

Anyway, thank you for your help! Maybe I'll have learned enough of Cocos to participate in then next PyWeek(whenever that might be!).

Ernesto Perez

unread,
Oct 14, 2014, 5:12:06 AM10/14/14
to pyglet...@googlegroups.com
Any progress with those tutorials for cocos2d? Can you share the link?

Vim

unread,
Oct 14, 2014, 9:09:52 AM10/14/14
to pyglet...@googlegroups.com
I have recently made the switch from Pyglet to Cocos2d for similar reasons that the responses here mentioned. I've found the programming guides in their documentation very helpful. There is definitely a lot missing in the documentation though, and most googling results in Cocos2d-x discussions. I eventually cloned the source code and for my own personal investigating about what features are available and how to use them. Definitely feels a lot cooler to learn a package directly from the source code (like a real computer scientist!).

Also, there's also lots of random guides in the google repository. Get the latest source code at their github.

Hope this helps.



ps. I don't feel like I've betrayed Pyglet because Cocos2d is built on top of it. I still use Pyglet every day. 

Brad Busse

unread,
Oct 14, 2014, 12:45:50 PM10/14/14
to pyglet...@googlegroups.com
I've looked occasionally at switching to cocos2d, but on my system it has some kind of freezing bug upon any user interaction.  For example, all of the test/test_menu_foo.py scripts freeze upon execution, and can't be closed normally thereafter.  Anyone else encounter anything similar?

Regardless, since google doesn't resolve the problem, I don't have time to sort the issue out myself, and pyglet's more than fine anyway, I end up just sticking with vanilla pyglet/kytten.  Wouldn't mind trying out another gui library if anyone has suggestions, though.

But one day, cocos2d.  One day.


For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages