diff --git a/assets-cg/icon-sel.png b/assets-cg/icon-sel.png index 7137b50..a706959 100644 Binary files a/assets-cg/icon-sel.png and b/assets-cg/icon-sel.png differ diff --git a/assets-cg/icon-uns.png b/assets-cg/icon-uns.png index 3c99f62..fdaa9ca 100644 Binary files a/assets-cg/icon-uns.png and b/assets-cg/icon-uns.png differ diff --git a/assets-cg/icon.xcf b/assets-cg/icon.xcf new file mode 100644 index 0000000..bf08502 Binary files /dev/null and b/assets-cg/icon.xcf differ diff --git a/src/duet.h b/src/duet.h index dccb064..8b1681a 100644 --- a/src/duet.h +++ b/src/duet.h @@ -60,7 +60,7 @@ typedef struct { #define PLAYER_X 60 #define PLAYER_R 40 #define PLAYER_SIZE 8 -#define CORRIDOR_SIZE 120 +#define CORRIDOR_SIZE 138 #define RECT_SPEED 50 /* px/tempo */ diff --git a/src/main.c b/src/main.c index 2ef3dd9..0bf59da 100644 --- a/src/main.c +++ b/src/main.c @@ -44,7 +44,7 @@ int main(void) __printf_enable_fp(); memset(&game, 0x00, sizeof game); - game.level = &level3; + game.level = &level4; game.current = game.level->blocks; game.time = -5.0; diff --git a/src/physics.c b/src/physics.c index a003dec..57be031 100644 --- a/src/physics.c +++ b/src/physics.c @@ -95,10 +95,10 @@ void rect_load(rect_t *r, rectmeta_t const *meta) switch(meta->position) { case Position_Left: - r->y = DHEIGHT/2 - CORRIDOR_SIZE/2 + r->w/2; + r->y = DHEIGHT/2 - CORRIDOR_SIZE/2 + r->h/2; break; case Position_Right: - r->y = DHEIGHT/2 + CORRIDOR_SIZE/2 - r->w/2; + r->y = DHEIGHT/2 + CORRIDOR_SIZE/2 - r->h/2; break; case Position_Middle: r->y = DHEIGHT/2;