.
This commit is contained in:
@ -12,15 +12,15 @@ have the special objective of being really small.
|
||||
|
||||
The file would use the .level file extension.
|
||||
|
||||
The file could contain anything, the used data is enclosed in between an header and a parser.
|
||||
This could be used to add Music, images and other stuff in the level file for instance
|
||||
The file can contain anything, the used data is enclosed between a header and a footer.
|
||||
This could be used to add: musics, images and other stuff in the level file itself
|
||||
|
||||
Only one Header and One Footer should be present in the file.
|
||||
The parser will only read the first one it finds so to avoid problem, it is best practise to put the
|
||||
level data at the top of the file.
|
||||
|
||||
- The HEADER will be defined by the characters 'S', 'M', 'S'
|
||||
- The FOOTER will be defined by the characters 'S', 'M', 'E'
|
||||
- The HEADER will be defined by the succesion of the characters 'S', 'M' then 'S'
|
||||
- The FOOTER will be defined by the succesion of the characters 'S', 'M', then 'E'
|
||||
- The bytes in between are the level data
|
||||
- byte 1: Width of the map
|
||||
- byte 2: Height of the map
|
||||
@ -32,7 +32,7 @@ level data at the top of the file.
|
||||
- 4 last bits: height
|
||||
- next bytes -> Width * Height (+1 if Width * Height % 8 is not 0)
|
||||
- Position ( only for saved file )
|
||||
- 'F' if the piece is in float state ( not placed)
|
||||
- 'F' and 'L' on 2 bytes for floating positions when the piece is not placed
|
||||
- x and y on 2 bytes for position if the piece is placed
|
||||
|
||||
## Known Limitation
|
||||
|
Reference in New Issue
Block a user