Syntactic Confectionery Delight | |
PerlMonks |
Re: Tile mapsby shotgunefx (Parson) |
on Feb 14, 2003 at 04:45 UTC ( [id://235178]=note: print w/replies, xml ) | Need Help?? |
I would assign a number to each tile image (01021.jpg)
Then just use an A0A to store it. If the maps are big might be able to use a PDL to gain some efficency or even just store each map row as a packed string. The later would certainly take less memory then an AOA of numbers. You could do the map storing, munging in XS as well and gain much speed and lower your mem consumption. Hope this helps. -Lee "To be civilized is to deny one's nature."
In Section
Meditations
|
|