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.


Reply via email to