Drawing 2D map from png images

Hi,

I have 2d images ( 64x64 png ) of different kinds of terrain. I would like to make from them a map.
How i should do this ? Should i import them as a textures, imagegroup, spritegroup ? How i should later render them in a scene ?

Thanks for any help :slight_smile:

Ok, so i have and idea. Should i add terrain images as textures to asssets, draw many primitives, like planes, load all terrain textures, create simpleeffects for each texture, and later draw individually all primitives in different locations using for each specific simple effect ?

Is this correct ?

Will then be possible to apply click event to primitives or something like this ?

Many textures should be painted once into one big texture. Then this texture should be redrawn only when it is needed, for example - when camera moves and another tiles should be shown. And it is not that hard to apply mouse events to map like this. You will just translate mouse click position to tile coordinates to know what tile was clicked.

Thanks for Your answer.

Ok, so this big texture i should apply to some kind of primitive like “plane”, yes ? Will it be possible then to make this “plane” and texture bigger than screen, and later just move camera to show different parts of it or make zoom in or zoom out or sth ?

And second question is there possibility to hmm, “draw on screen/gui” i mean without taking into consideration camera, what i draw in position lets say 0,0 will be always visible in left top corner of screen ?