X-Git-Url: https://git.rohieb.name/hackover2013-badge-firmware.git/blobdiff_plain/e5255de0fe7c017b1bfc995a15eb232a302d591a..c63dbfcb347e10f9406053545eaf44dd4d9d9bdb:/mock/tools/level-converter.cc?ds=inline diff --git a/mock/tools/level-converter.cc b/mock/tools/level-converter.cc index f54b589..54be8f7 100644 --- a/mock/tools/level-converter.cc +++ b/mock/tools/level-converter.cc @@ -18,7 +18,7 @@ extern "C" { #include enum { - LEVEL_LINE_COUNT = 13 + LEVEL_LINE_COUNT = 14 }; #define PATH_PREFIX "../badge/jumpnrun/" @@ -33,10 +33,17 @@ namespace jnrcpp { ("tube_right" , JUMPNRUN_TILE_TYPE_TUBE_RIGHT ) ("brick" , JUMPNRUN_TILE_TYPE_BRICK ) ("square" , JUMPNRUN_TILE_TYPE_SQUARE ) + ("spike_up" , JUMPNRUN_TILE_TYPE_SPIKE_UP ) + ("spike_right" , JUMPNRUN_TILE_TYPE_SPIKE_RIGHT ) + ("spike_down" , JUMPNRUN_TILE_TYPE_SPIKE_DOWN ) + ("spike_left" , JUMPNRUN_TILE_TYPE_SPIKE_LEFT ) ; items.add - ("doc", JUMPNRUN_ITEM_TYPE_DOCUMENT) + ("doc" , JUMPNRUN_ITEM_TYPE_DOCUMENT ) + ("checkpoint" , JUMPNRUN_ITEM_TYPE_CHECKPOINT ) + ("key" , JUMPNRUN_ITEM_TYPE_KEY ) + ("doc_encrypted", JUMPNRUN_ITEM_TYPE_ENCRYPTED_DOCUMENT) ; enemies.add @@ -176,7 +183,7 @@ namespace jnrcpp { if(iter != objmap.end()) { unsigned char buf[3]; - buf[0] = static_cast(y + 1) << 4 | static_cast(x >> 8); + buf[0] = static_cast(y) << 4 | static_cast(x >> 8); buf[1] = static_cast(x); buf[2] = static_cast(find_type(types, iter->second, error));