Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Read and write Across levels #233

Open
hexjelly opened this issue Oct 3, 2020 · 1 comment
Open

Read and write Across levels #233

hexjelly opened this issue Oct 3, 2020 · 1 comment

Comments

@hexjelly
Copy link
Member

hexjelly commented Oct 3, 2020

There are multiple different Across level formats, so they need to have their own parsers (probably).
More or less copypaste the Elma level read/write structure, but for Across. How hard can it be? 🤷

Opening and then writing a level should return the same bytes (if possible?)

@hexjelly
Copy link
Member Author

hexjelly commented Oct 3, 2020

Reference: jon "information"

acros lev file structure
------------------------


Type       Size  Data
----------------------------
char[5]       5  "POT06"
double        8  integrity1?
double        8  integrity2?
double        8  integrity3?
double        8  integrity4?
              4  duno
char[14?]    14  Name of the lev
             45  000000000..........
double        8  Number of polygons + 0.4643643
POLYGON[]     -  
double        8  Number of objects + 0.4643643
OBJECT[]      -  


POLYGON:

Type     Size  Data
------------------------------------
dword       4  Number of vertice
VERTEX[]    -  A vertex is just two doubles : x and y. 16 bytes of course.


OBJECT:

Type     Size  Data
------------------------------------
double      8  Position : x
double      8  Position : y
dword       4  Type (1 = flower, 2 = food, 3 = killer, 4 = start)

Also see domi's python lib

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant