Hello. I bough a new phone recently, an android one, and have decided to port starcraft to it. It will be a nice little learning experience. So I want the port to use the original files. (Graphics, Tilesets, scripts, etc.) with some files removed to save space. I read up on internet about how the tiles are stored.
Quote
VX4: MegaTile Graphics
This file contains references to the MiniTile images and states if they are flipped.
Struct size: 32 bytes (16 shorts)
Max ref. ID: 65535
Offset Type Name Description
+0x00 16xSHORT Images The first bit (bit0) is the horizontal flip flag, the remaining 15 bits (bit1-15) are the VR4 index.
This file contains references to the MiniTile images and states if they are flipped.
Struct size: 32 bytes (16 shorts)
Max ref. ID: 65535
Offset Type Name Description
+0x00 16xSHORT Images The first bit (bit0) is the horizontal flip flag, the remaining 15 bits (bit1-15) are the VR4 index.
Like the above states I use the C++ code
Quote
index = megatile.images[mit]/2;
flip = !megatile.images[mit] >> 15;//FoUND problem this should be << 15!!!!!
minitile = miniTiles[index];
flip = !megatile.images[mit] >> 15;//FoUND problem this should be << 15!!!!!
minitile = miniTiles[index];
This is my source
Leaving the source. Feel free to use it .
Post has been edited 5 time(s), last time on Nov 6 2011, 11:09 am by Fortis.
None.