Dune-II---The-Maker
Dune-II---The-Maker copied to clipboard
Feature/data pack
- Step to step, DataPack construction with SDL2 primitives
- Prototype test program by example
- Commented code
DataPack
A DataPack is composed by an header and data
Header
The header is organized like this
- title: on 4 bytes
- number of files: on 2 bytes (uint16_t) One line for each file that contains
- its identifier on 40 bytes
- its position in the data : offset on 4 bytes (uint32_t)
- the size of the file : sizeFile on 4 bytes (uint32_t)
Data
Data are organized like this file0 offset 0 to 0+sizeFile0 <-- offset1 file1 offset offset1 to offset1 + sizeFile1 <--- offset2 file2 offset offset2 to offset2 + sizeFile2 <--- offset3 file3 offset offset3 to offset3 + sizeFile3 <--- offset4 ...