ambros neuer Vogel, wolfpros Level. Den wir wohl besser als secret level
authorWintermute <wintermute@hannover.ccc.de>
Thu, 17 Oct 2013 19:17:34 +0000 (21:17 +0200)
committerWintermute <wintermute@hannover.ccc.de>
Thu, 17 Oct 2013 19:17:34 +0000 (21:17 +0200)
verstecken.

badge/jumpnrun/enemies.c
badge/jumpnrun/levels.txt
badge/jumpnrun/wrongturn.lv [new file with mode: 0644]
mock/tools/level-converter.cc

index 3e2c4db..edc1f82 100644 (file)
@@ -68,8 +68,12 @@ static badge_sprite const anim_giraffe[] = {
 };
 
 static badge_sprite const anim_bird[] = {
+  { 9, 7, (uint8_t const *) "\x10\x0c\x05\xf7\x4a\xa9\x58\x10" },
+  { 9, 7, (uint8_t const *) "\x10\x0c\x05\x87\x47\xa2\x70\x10" }
+/*
   { 10, 8, (uint8_t const *) "\x10\x10\x18\x14\x38\x2e\x29\x29\x2e\x10" },
   { 10, 8, (uint8_t const *) "\x10\x10\x18\x14\x38\x78\xa8\xa8\x78\x10" }
+*/
 };
 
 static void enemy_animation_advance(jumpnrun_enemy *enemy) {
@@ -489,8 +493,8 @@ jumpnrun_enemy_type const jumpnrun_enemy_type_data[JUMPNRUN_ENEMY_TYPE_COUNT] =
     .animation_ticks_per_frame = 24,
     .animation_length          = ARRAY_SIZE(anim_bird),
     .animation_frames          = anim_bird,
-    .extent                    = { FIXED_INT_I(10), FIXED_INT_I(8) },
-    .hitbox                    = { { FIXED_INT_I(2), FIXED_INT_I(3) },
+    .extent                    = { FIXED_INT_I(9), FIXED_INT_I(7) },
+    .hitbox                    = { { FIXED_INT_I(1), FIXED_INT_I(3) },
                                    { FIXED_INT_I(7), FIXED_INT_I(3) } },
     .spawn_inertia             = { FIXED_POINT_I(0, -400), FIXED_POINT_I(0, -150) },
     .collision_tiles           = enemy_collision_tiles_bounce_horiz,
index c6bfbe0..88ed79c 100644 (file)
@@ -1,3 +1,4 @@
+wrongturn
 smb
 foo
 gnobbel
diff --git a/badge/jumpnrun/wrongturn.lv b/badge/jumpnrun/wrongturn.lv
new file mode 100644 (file)
index 0000000..af86928
--- /dev/null
@@ -0,0 +1,30 @@
+                                                                ??   ########                                                    01                           ????????01?????????????????????????????#                                   
+                               01                                           #       01                                           23           01                      23                             #                                   
+                               23                                          K#       23                                           23           23 01                   23                             #                                   
+                             #####                                   ##########     #####                                   ###  23           23 23                   23  01                 01      #                                   
+      P                             ?                           01             ##       #       01            01          ##  #  23 M01      ######                   23  #####################      #                                   
+                                                                23         M     ##     #       ##            ##       ###    #  23  23   MM #    #                   23                     23      #                                   
+      #               01                ?                       23   #######       ##   #         ##        ##     ####       #  230123######     #                   23   CMKCMKCMKCMK   D  23      #                                   
+                      23                             01         23          ##          #           #      #                  #  ##2323        #  #                   23 CMKCMKCMKCMKCMKCMK  23      #                                   
+                      23       ?            ?        23  CC     23            ##    M   #            #    #                        2323       ##  # C K M C K M C K M ######################### M##  #                                   
+                      23                             #############              #########            #    #                        ####      ##    #####################                     ######  #                                   
+                    M 23                                     #                                        #  #                  ? ?             ###                                                      #                                   
+                      23                                     #                                        #  #                                 ####     C K M C K                                        #                                   
+            #########################            #######################################       ########  #####      #####    #    ##############  ################# # # # #   #   #   #   # # # # ####################################  #
+
+[tiles]
+0 tube_top_left
+1 tube_top_right
+2 tube_left
+3 tube_right
+# brick
+? square
+
+[items]
+D doc
+
+[enemies]
+C cat
+M mushroom
+K kaninchen
+
index ca7e58a..04651af 100644 (file)
@@ -174,7 +174,7 @@ namespace jnrcpp {
 
           if(iter != objmap.end()) {
             unsigned char buf[3];
-            buf[0] = static_cast<uint8_t>(y) << 4 | static_cast<uint8_t>(x >> 8);
+            buf[0] = static_cast<uint8_t>(y + 1) << 4 | static_cast<uint8_t>(x >> 8);
             buf[1] = static_cast<uint8_t>(x);
             buf[2] = static_cast<uint8_t>(find_type(types, iter->second, error));
 
This page took 0.0281 seconds and 4 git commands to generate.