From db23b2361f86b618d00e10d97b6166646012ef7b Mon Sep 17 00:00:00 2001 From: Wintermute Date: Sun, 20 Oct 2013 17:16:02 +0200 Subject: [PATCH] Lange Level richtig laden. --- badge/jumpnrun/level_load.c | 6 +++--- badge/jumpnrun/levels.txt | 1 - badge/jumpnrun/skynet.lv | 5 ++--- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/badge/jumpnrun/level_load.c b/badge/jumpnrun/level_load.c index bf491f8..ae1a91f 100644 --- a/badge/jumpnrun/level_load.c +++ b/badge/jumpnrun/level_load.c @@ -11,8 +11,8 @@ #include typedef struct { - uint8_t x; - uint16_t y; + uint16_t x; + uint8_t y; uint8_t type; } level_thing; @@ -20,7 +20,7 @@ static level_thing jumpnrun_level_parse_blob(unsigned char blob[3]) { level_thing result; result.y = blob[0] >> 4; - result.x = ((blob[0] & 0xf) << 8) | blob[1]; + result.x = ((blob[0] & 0x0f) << 8) | blob[1]; result.type = blob[2]; return result; diff --git a/badge/jumpnrun/levels.txt b/badge/jumpnrun/levels.txt index 9757ad3..243a4ac 100644 --- a/badge/jumpnrun/levels.txt +++ b/badge/jumpnrun/levels.txt @@ -1,4 +1,3 @@ -smb skynet wrongturn smb diff --git a/badge/jumpnrun/skynet.lv b/badge/jumpnrun/skynet.lv index 705b1fb..c2ca21c 100644 --- a/badge/jumpnrun/skynet.lv +++ b/badge/jumpnrun/skynet.lv @@ -4,15 +4,14 @@ ??? ????? ????? ??????^^^^^ - RRRRRRR ????? - P ^^^^???? ??????^^ ??? R ???????? R + P RRRRRRR ????? + ^^^^???? ??????^^ ??? R ???????? R ???? ????? ^ ^ ?????? ????? R ??? R R ??????????????????????????????????? ????? R >>>>>>d ?????^^ ?????^ c ??????????? ^^^???? R ???? ^^^^^^^???? ????? - [tiles] 0 tube_top_left 1 tube_top_right -- 2.20.1