Eeem... My map is divided into many cells. Every cells holds information which is loaded on level start once (from image using colors), into maparray massive; This array is constant.

(maparray[Xcellposition][Ycellpositon][colorRED])
(maparray[Xcellposition][Ycellpositon][colorBLUE])
(maparray[Xcellposition][Ycellpositon][colorGREEN])

On top of it, every frame some entities are moving. Every entity also has its "map-cell" representation. So, I copy maparray to maparray2, add entity dynamic cell info to maparray2 then, and pass this complete map information for further pathfindings and interactions.


I never used memcpy(), is it safe and easy to play with it?


What kills me not, that makes me stronger.

***Working on RPG/RTS***