A note on map transfer protocol

This is what the map packet looks like when it sends you the map data:

http://pastebin.com/5M0b0AE3

It is an array of numbers that is about 4-5 thousand characters long, and pretty much carries every block there is in the game. The one that I posted up here is Bombing Run, and if you look you can see that it pretty much looks like a sideways version of the map.

From what I've gathered at the moment this is what each number represents:

0 = empty space
1 = wall, angled walls are 1.1, 1.2, etc
2 = normal white tile
3 = Blue flag
4 = Red flag
5 = Boost pad
6 = Powerups (They use 6.2 and 6.3 for some reason, still unknown)
7 = spikes
8 & 9 are unknown, I assume red and blue tiles
10 = bombs

As a note, this was gotten from the websockets stream which you get when you connect to the actual game port (as opposed to the stream from the port 81, which is the join game protocol).

Posted Jun 15, 2014, 6:39 PM UTC · edited

31
LuckySpammer•
var TILE = {
    EMPTY: 0,
    WALL: 1,
    WALL45 : 1.1,
    WALL135 : 1.2,
    WALL225 : 1.3,
    WALL315 : 1.4,
    FLOOR: 2,
    REDFLAG: 3,
    BLUEFLAG: 4,
    SPEEDPAD: 5,
    POWERUP: 6,
    SPIKES: 7,
    SWITCH: 8,
    FIELD: 9,
    DYNAMITE: 10,
    REDFLOOR: 11,
    BLUEFLOOR: 12,
    PORTAL: 13,
    REDSPEEDPAD: 14,
    BLUESPEEDPAD: 15,
    YELLOWFLAG: 16,
    REDENDZONE: 17,
    BLUEENDZONE: 18
};
7