Hi there,

I'm just starting out with cocos2d and have noticed something strange. When
I move a sprite (or text) away from the center of the screen it appears that
it is becoming blurred, almost like its out of focus.

Am I doing something wrong?

See the following screenshot:
http://img195.imageshack.us/img195/2963/helloworld.png

And the source to generate it (using cocos2d 0.3.0)

import sys
import os
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..'))
#

import cocos

class HelloWorld(cocos.layer.Layer):
    def __init__(self, x, y):
        super( HelloWorld, self ).__init__()
        self.hx = x
        self.hy = y

        # a cocos.text.Label is a wrapper of pyglet.text.Label
        # with the benefit of being a cocosnode
        label = cocos.text.Label('Hello, World!',
            font_name='Times New Roman',
            font_size=32,
            anchor_x='center', anchor_y='center')

        label.position = self.hx,self.hy
        self.add( label )

if __name__ == "__main__":
    # director init takes the same arguments as pyglet.window
    cocos.director.director.init()

    # We create a new layer, an instance of HelloWorld
    hello_layer1 = HelloWorld (320,240)
    hello_layer2 = HelloWorld (0,0)
    hello_layer3 = HelloWorld (640,480)
    hello_layer4 = HelloWorld (0,480)
    hello_layer5 = HelloWorld (640,0)

    # A scene that contains the layer hello_layer
    main_scene = cocos.scene.Scene ()
    main_scene.add(hello_layer1)
    main_scene.add(hello_layer2)
    main_scene.add(hello_layer3)
    main_scene.add(hello_layer4)
    main_scene.add(hello_layer5)

    # And now, start the application, starting with main_scene
    cocos.director.director.run (main_scene)

--~--~---------~--~----~------------~-------~--~----~
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