pixel nightmare
As i was fighting against Pyxel edit, It came from deep space to punish me to be a so bad pixel drawer.Here he is, the world crusher, master of the universe, with his endless hunger AZATHOTH!
hum i guess it's time for me to go to sleep.
What i've done TODAY :
- Torture Pyxel Edit to make some tiles and tiles_map : done
- Display tiles_map on screen and scroll it : ok but slow
- Draw tiles into a texture to manage screen resize : fail
ftaghn!
(log in to comment)
Comments
screen_image.blit_into(background_image, screen_image.width//2, screen_image.height//2)
screen_image and background_image are load with :
pyglet.resource.image('background.png').get_texture(rectangle=True)
It doesn't currently handle object layers in TMX files but does handle tile layers just fine. I'm working on the object layer support but am distracted by Real Life, sadly :-)
I'm going to use batch and change tiles image object into sprites.
Joshua on 2013/04/15 23:39:
What troubles are you having drawing the tiles to a textures? What library are you using?