Large pixmap strategy needed
- From: Dave Swegen <dave recursive prestel co uk>
- To: gtk-list redhat com
- Subject: Large pixmap strategy needed
- Date: Sat, 5 Dec 1998 13:43:34 +0000
The game I'm writing has a map that is 1500x500 in size, and I was hoping
someone might be able to suggest how to tackle a few issues that I have
regarding it:
1) What format to save the map as: xpms are easy to load and display, but
it would turn out quite large (just under 700k), so #including it is out
of the question (unless I store it RLE encoded somehow).
2) Do I convert the whole map to a pixmap at once, or, as one approach I
had which was to split it up into vertical strips and only display the
strips I need, which would also solve another problem:
3) The map needs to wrap around horizontally. How (apart from the method
mentioned above) could this be handled?
4) How are pixmaps stored? I will need to flood-fill regions, and
depending on what approach I take I might have to work on the pixmap
directly (or is this inadvisable?)
Any thoughts on the matter would be much appreciated.
Cheers
Dave
--
Dave Swegen <dave@recursive.prestel.co.uk>
.plan: To find a job working with Linux
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]