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 :

ftaghn!

(log in to comment)

Comments

What troubles are you having drawing the tiles to a textures? What library are you using?
I'm using pyglet, and i've tried something like:

 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)


Guess what?! i've found the mistak, i can't blit a texture into a texture (because of opengl design), but i can do the job with an image_data. i'll modify my code tomorrow. Thx a lot for your question ^^

If you want speed you may want so use a batch (speed rendering) + opengl transforms (for the scroll). It's hard to do it first time, but one you "see it" it's easy!
herrv, you might want to look into cocos2d as a layer on top of pyglet which handles TMX file loading/rendering/scrolling/etc.

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 :-)
Thank you guys for your help.  i want to do the game using pyglet, but i'll take a look to cocos2d.
 I'm going to use batch and change tiles image object  into sprites.