#3432 - blindfold - Mon Feb 24, 2003 6:03 pm
hi,
does anyone knew a map editor, that supports rotated maps?
(this means I want to save my map in unsigned chars, not shorts...
#3434 - Lord Graga - Mon Feb 24, 2003 6:17 pm
I haven't tested those code pieces.
Code: |
u8 lower;
for(i=0;i<512;i++)
{
lower[i] = map[i*2];
high[i] = map[i*2]<<8;
bgmap[i] = lower + higher <<8;
} |
or:
Code: |
for(i=0;i<512;i++) (u16*)bgmap[i*2] = map[i*2];
|
#3533 - blindfold - Wed Feb 26, 2003 7:18 pm
to be honet I expected some tools links, or something, but thanks, I will try it.
#3545 - pollier - Thu Feb 27, 2003 1:35 am
Uh, I don't know any tools you could use, but if you use a text map editor with only 256 unique tiles, no horizonal or vertical flipping then you could probably get away with changing the declaration of the array (ie. const unsigned short -> const unsigned char) without so much as a compiler warning...
Just my two cents. I know, I'm going to need a rotation map editor soon as well.
_________________
(Works for me!)