};
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) {
.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,
--- /dev/null
+ ?? ######## 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
+
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));