2010/12/14 Adam Borowski <kilob...@angband.pl>: > But then, I realized that this may be an overkill, and it wouldn't be that > costly to produce a "palette" of tiles present on the level. It appears > that most levels have only 10ish distinct tiles, and hardly ever more than > 20. Storing a list of that 10-20 names wouldn't be too bad.
This is an *excellent* idea. It's elegant, doesn't take up that much more space, and has no potential for hash collisions. (Also, you'd need one palette per tile page because the index space overlaps. You might also want to save a default value for a tile to revert to if that enum doesn't exist in the new version.) -enne ------------------------------------------------------------------------------ Lotusphere 2011 Register now for Lotusphere 2011 and learn how to connect the dots, take your collaborative environment to the next level, and enter the era of Social Business. http://p.sf.net/sfu/lotusphere-d2d _______________________________________________ Crawl-ref-discuss mailing list Crawl-ref-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/crawl-ref-discuss