Difference between revisions of "Technical"

From Elma Wiki
Jump to navigation Jump to search
Line 2: Line 2:
  
 
== Elasto Mania ==
 
== Elasto Mania ==
'''Note:''' All Elasto Mania files are in little-endian format
+
'''Note:''' All Elasto Mania files are in little-endian format.
 +
The type name will depend on what programming language you are working with, here's a short equivalency list between the most common ones as a reference:
 +
{| class="wikitable"
 +
! Bytes || C || Python* || Rust
 +
|-
 +
| 1 || char || c || u8
 +
|-
 +
| 2 || short || h || i16
 +
|-
 +
| 4 || int || i || i32
 +
|-
 +
| 4 || uint || I || u32
 +
|-
 +
| 4 || float || f || f32
 +
|-
 +
| 8 || double || d || f64
 +
|}
 +
 
 +
<nowiki>*</nowiki> Using struct formatting [https://docs.python.org/3/library/struct.html]
 +
 
 
=== Levels ===
 
=== Levels ===
  <nowiki></nowiki>
+
  <nowiki>8)</nowiki>
  
 
==== Language Examples ====
 
==== Language Examples ====

Revision as of 17:05, 25 March 2016

Technical information for Elasto Mania files, available APIs and various development stuff.

Elasto Mania

Note: All Elasto Mania files are in little-endian format. The type name will depend on what programming language you are working with, here's a short equivalency list between the most common ones as a reference:

Bytes C Python* Rust
1 char c u8
2 short h i16
4 int i i32
4 uint I u32
4 float f f32
8 double d f64

* Using struct formatting [1]

Levels

8)

Language Examples

C/C++
wow test
Python
wow test
Rust
wow test

Replay files

Action SuperCross

Levels

Replay files