Hi Paul, i think it's related to opengl and the texture handler. There are
common issues about textures in others libs too.

You cant fixit using texture size power of two, or spritesheets:

http://www.opengl.org/discussion_boards/showthread.php/152075-Texture-borders





2013/6/5 Paul Pittlerson <[email protected]>

> Here is a more cocosy version :
>
> class Startbox(Layer):
>     def __init__(self):
>         Layer.__init__(self)
>
>         self.batch = BatchNode()
>         self.add(self.batch)
>
>         img = pyglet.image.load('images/map_sprites.png')
>
>         tileset = pyglet.image.ImageGrid(img, 3, 15, 96, 96)
>
>         self.all_sprites = []
>         x, y = 0, 0
>
>         for i in range(10):
>
>             for j in range(10):
>
>                 spr = Sprite(tileset[1])
>                 spr.x = x
>                 spr.y = y
>
>                 self.batch.add(spr)
>
>
>                 x += 96
>             y += 96
>             x = 0
>
> produces this result, note black lines:
>
>
> <https://lh5.googleusercontent.com/-BbhhaLPpkqg/Ua9jRgbfdWI/AAAAAAAAAQQ/a1O0aK_6rpM/s1600/screenshot-1370448526.png>
>
>
> How can we fix?
>
>  --
> You received this message because you are subscribed to the Google Groups
> "cocos2d discuss" 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/cocos-discuss?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
Hugo Ruscitti

www.pilas-engine.com.ar
www.losersjuegos.com.ar
www.gcoop.coop

-- 
You received this message because you are subscribed to the Google Groups 
"cocos2d discuss" 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/cocos-discuss?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to