Hello everybody at the Pyglet user group!
Last weekend I participated in Ludum Dare 26, a competition to make a game
from scratch (not including the programming language or any libraries) in
48 hours based on a theme given at the start of the competition. This
compo's theme was 'minimalism' and I'd like to share my
entry: http://www.ludumdare.com/compo/ludum-dare-26/?action=preview&uid=21185
I'd also like to share a couple of tips I learnt throughout the competition
regarding distributing a Pyglet application:
***Use a freezing utility, While Linux and Mac OS come with Python
installed, the user may actually not know how to run a script and most
distros don't come with Python 3; you also don't want to bother your
Windows users with downloading Python. I recommend cx_Freeze because it
supports both Python 2 and 3 and, while the documentation isn't very clear,
once you learn how to make a setup script it is easy to use.
***Disable the Pyglet shadow window environmet variable* before* you import
pyglet.
import os
os.putenv('PYGLET_SHADOW_WINDOW', '0')
If I recall correctly (someone correct me if I'm mistaken), Pyglet creates
an OpenGL context when imported to facilitate loading and sharing
resources. Disabling it means you have to create a context (read: window)
before loading any resources and it makes multi-windowing harder, but some
GPUs don't support this feature and won't run your application.
***Some people will have trouble rendering batches. They can blit images
all right, it's just batches (and maybe sprites too) that won't draw. This
is not a problem with Pyglet however, it is an issue with outdated ATI
drivers, but it could become cumbersome to ask your users to update their
drivers. I suggest you change lines 369 and 373 in pyglet/sprite.py from
v2i to v2f, it won't affect your game in any way as far as I can tell and
will fix the problem.
Thank you for reading!
Zim the fox/
Simon Echeverri.
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pyglet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.