<div dir="ltr"><div><div><div><div><div>Hello everybody,<br></div>I'm a student working for an university project and I'm fairly new to the "cairo world", sorry if my question may seem trivial to you but I cannot find an answer in the documentation (and the fact that english is not my first language didn't help at all).<br>
</div>I'm trying to create a graphical interface for a simple 2d videogame and I need a simple and pratical way to represent the game's world.<br><br>My idea was to create a .png image of the world then load it into a gtk window, then if something changes in the game (for example the character moves) recreate the .png image with the newer information and reload it in the window and so on.<br>
<br></div>To do this I need to divide the surface where I'm drawing the scenary into "tiles" (as suggested me in the gtk mailing list) and draw/update them while the game goes on.<br>Is there any way to do this? (and maybe give a name at every tiles so I can reference them in every update?)<br>
<br></div>Thanks for your help, I hope I've explained my problem clearly.<br><br></div>Marco F.<br></div>