The Daily Click ::. Forums ::. Klik Coding Help ::. Array File Sizes...
 

Post Reply  Post Oekaki 
 

Posted By Message

Kris

Possibly Insane

Registered
  17/05/2002
Points
  2017
6th April, 2007 at 08:42:00 -

could you pack more than one value into each byte? If you only have 4 different types of tile, you can fit 4 tiles per byte (2 bits each) with a bit of maths.

also you could try coding some sort of run-length encoding (saving repeating data as one item with a 'length' stored)

zip extension sounds much better than both of those, though...

 
"Say you're hanging from a huge cliff at the top of mt. everest and a guy comes along and says he'll save you, and proceeds to throw religious pamphlets at you while simultaniously giving a sermon." - Dustin G

jpSoul



Registered
  25/10/2003
Points
  1714
6th April, 2007 at 09:41:51 -

generally the arrays data used for the levels are fairly repetitive, the zip compression ratio is huge on this kind of file

Image Edited by the Author.

 
n/a
   

Post Reply



 



Advertisement

Worth A Click