Lange Level richtig laden.
authorWintermute <wintermute@hannover.ccc.de>
Sun, 20 Oct 2013 15:16:02 +0000 (17:16 +0200)
committerWintermute <wintermute@hannover.ccc.de>
Sun, 20 Oct 2013 15:16:02 +0000 (17:16 +0200)
badge/jumpnrun/level_load.c
badge/jumpnrun/levels.txt
badge/jumpnrun/skynet.lv

index bf491f8..ae1a91f 100644 (file)
@@ -11,8 +11,8 @@
 #include <stdio.h>
 
 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;
index 9757ad3..243a4ac 100644 (file)
@@ -1,4 +1,3 @@
-smb
 skynet
 wrongturn
 smb
index 705b1fb..c2ca21c 100644 (file)
@@ -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
This page took 0.031566 seconds and 4 git commands to generate.