#145380 - anox - Wed Nov 14, 2007 5:47 pm
Hey folks,
I am a Java and Perl Programmer with some C/C++ experience wanting to dig deeper into C/C++ by coding some GBA or DS apps.
Actually, I am looking foward to code a small game!
Jep and now to my question:
I was looking into some example code when I noticed a somehow "common" way of mapping..
Creating tiles and mapping them into huge arrays. These arrays then get iterated and show the implemented tiles.
1) Is this a good and adviced mapping procedure?
2) How about moving the map when the character moves? Do I then move every tile in the array one step?
Thanks for your help and excuse me if this is a obvious thing...
I mean I just looked at a map array which was over one page long having about 500 tiles. Ok, make the tiles bigger then you will have a smaller array but please tell me your thoughts on this.
-anoX
I am a Java and Perl Programmer with some C/C++ experience wanting to dig deeper into C/C++ by coding some GBA or DS apps.
Actually, I am looking foward to code a small game!
Jep and now to my question:
I was looking into some example code when I noticed a somehow "common" way of mapping..
Creating tiles and mapping them into huge arrays. These arrays then get iterated and show the implemented tiles.
1) Is this a good and adviced mapping procedure?
2) How about moving the map when the character moves? Do I then move every tile in the array one step?
Thanks for your help and excuse me if this is a obvious thing...
I mean I just looked at a map array which was over one page long having about 500 tiles. Ok, make the tiles bigger then you will have a smaller array but please tell me your thoughts on this.
-anoX