On 20 October 2011 00:28,  <[email protected]> wrote:
> So I added conditional code with a 'if True...' that will run the old code
> and issue a deprecation warning. The fixed code is present on the False
> branch so that new code can bundle cocos and use the correct bahavior.
>
> The next cocos release will switch to the correct behavior.

Based on this intention I've now activated the new branch in the
repository in commit r1190

I modified the code to use the pyglet.resource file opening so the
code is also zip-safe. That is:

+    pic = pyglet.image.load('fire.png', file=pyglet.resource.file('fire.png'))
+    texture = pic.get_texture()

I really should just add an atlas=True arg to pyglet.resource.image ...


     Richard

ps. sorry, my editor also automatically cleans up whitespace in files
I open so there's often a couple of extra lines with no changes except
whitespace.

-- 
You received this message because you are subscribed to the Google Groups 
"cocos2d discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/cocos-discuss?hl=en.

Reply via email to