Original Post
Hello. I have a question about 2d graphics and network. Currently I am trying to do something like sending only the type of land a square is. ie. "G01" sent to the client represents "Grass01.png" and "Passable". To give some info, I use 64x64 mapsquares (or textures) and have a fixed resolution of 1024x768, so at any given time I can only see 16 (18 actually because I want 1 "row" as buffert") X length squares and 12(14) Y. So 18*14 squares need to be stored on the client, nothing more. When I move right I want to recieve only one "row" of squares to optimize the network traffic load. So I need 14 rows as I move in X++ way. Hope I aint explaining poorly. Now each mapsquare on client is a class containing the texture, and a few variables, like if its passable (grass, road) or not (rock, tree) etc.. theese all get set on clientside when I recieve the code for a specific type. Now how do I do this the best way? Do I somehow copy all the content of the array or vector on client "one step to the left" so that all the squares "jump" left. And if so, how? How do I copy inside a vector made of classes? Or is there some other way this is usually done in 2d games?