Replace victory sequence with going deeper background and mysterious music

This commit is contained in:
2026-06-23 22:01:09 +02:00
parent f14e2645d2
commit 3aa20fdb60
7 changed files with 381 additions and 24 deletions
+13 -9
View File
@@ -17,7 +17,7 @@
#include "player.h"
#include "enemy.h"
#include "gameover.h"
#include "victory.h"
#include "next_level.h"
#include "stamina.h"
#include "title_bg.h"
@@ -94,7 +94,6 @@ void engine_init(void) {
set_sprite_data(0, player_TILE_COUNT, player_tiles);
set_sprite_data(player_TILE_COUNT, enemy_TILE_COUNT, enemy_tiles);
set_sprite_data(player_TILE_COUNT + enemy_TILE_COUNT, gameover_TILE_COUNT, gameover_tiles);
set_sprite_data(player_TILE_COUNT + enemy_TILE_COUNT + gameover_TILE_COUNT, victory_TILE_COUNT, victory_tiles);
// Load stamina_tiles AFTER the background tiles to prevent VRAM overlap in the shared block (indices > 127)
set_sprite_data(tiles_TILE_COUNT, stamina_TILE_COUNT * 2, stamina_tiles);
@@ -163,9 +162,16 @@ void engine_update(uint8_t keys, uint8_t prev_keys) {
game_over_timer--;
// Quando scade il timer drammatico...
if (game_over_timer == 0) {
// ...Svuota lo schermo
memset(map_buffer, 0, sizeof(map_buffer));
set_bkg_tiles(0, 0, 32, 32, map_buffer);
if (game_over == 1) {
// ...Svuota lo schermo
memset(map_buffer, 0, sizeof(map_buffer));
set_bkg_tiles(0, 0, 32, 32, map_buffer);
} else if (game_over == 2) {
// Mostra la schermata "Going Deeper"
HIDE_SPRITES;
set_bkg_data(0, next_level_TILE_COUNT, next_level_tiles);
set_bkg_tiles(0, 0, 20, 18, next_level_map);
}
// Imposta i timer audio per far iniziare la musica finale dal modulo sound.c
// La musica verrà suonata dall'interrupt play_music_tick in background.
@@ -180,11 +186,9 @@ void engine_update(uint8_t keys, uint8_t prev_keys) {
}
}
} else {
// Dopo il timer, disegna i metasprite di VITTORIA o GAME OVER fissi in mezzo allo schermo
// Dopo il timer, disegna i metasprite di GAME OVER fissi in mezzo allo schermo
if (game_over == 1) {
move_metasprite(gameover_metasprites[0], player_TILE_COUNT + enemy_TILE_COUNT, 8, 88, 120);
} else if (game_over == 2) {
move_metasprite(victory_metasprites[0], player_TILE_COUNT + enemy_TILE_COUNT + gameover_TILE_COUNT, 8, 88, 120);
}
// Il giocatore rimane visibile al centro, il nemico scompare se vinto o appare se sconfitto.
@@ -211,7 +215,7 @@ void engine_update(uint8_t keys, uint8_t prev_keys) {
if ((keys & J_START) && !(prev_keys & J_START)) {
// Nasconde la grafica testuale e ricarica tutto l'engine
move_metasprite(gameover_metasprites[0], player_TILE_COUNT + enemy_TILE_COUNT, 8, 0, 0);
move_metasprite(victory_metasprites[0], player_TILE_COUNT + enemy_TILE_COUNT + gameover_TILE_COUNT, 8, 0, 0);
SHOW_SPRITES;
engine_init();
}
}
+278
View File
@@ -0,0 +1,278 @@
//AUTOGENERATED FILE FROM png2asset
// Conversion args: /next_level.png -c /next_level.c -map -bpp 2 -noflip -max_palettes 1
#include <stdint.h>
#include <gbdk/platform.h>
#include <gbdk/metasprites.h>
BANKREF(next_level)
const palette_color_t next_level_palettes[4] = {
RGB8(255,255,255), RGB8( 85, 85, 85), RGB8( 0, 0, 0), RGB8( 0, 0, 0)
};
const uint8_t next_level_tiles[3856] = {
0x00,0xff,0x09,0xf6,0x3f,0x80,0x54,0xab,0x88,0x67,0x90,0x4f,0x80,0x5f,0x00,0xbf,
0x00,0x3f,0x80,0x7f,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,
0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,
0x02,0xfd,0x00,0xff,0x00,0xfe,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,
0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x10,0xcf,0x00,0xff,0x00,0xff,
0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x02,0xfd,0x02,0xfd,0x06,0xf9,0x0a,0xf5,
0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0xd8,0x27,0xf8,0x07,
0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x80,0x7f,0x80,0x7f,
0x00,0xff,0x80,0x7f,0xc0,0x3f,0xd0,0x2f,0xa8,0x57,0xac,0x53,0xb0,0x4b,0xaa,0x55,
0x00,0xff,0x00,0xff,0x00,0xff,0x01,0xfc,0x02,0xf9,0x00,0xff,0x00,0xff,0x00,0xfe,
0x40,0x3f,0x00,0x7f,0x00,0xff,0x20,0xcf,0x10,0xcf,0x10,0x8f,0x20,0x1f,0x14,0x03,
0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x01,0xfe,0x03,0xfc,0x06,0xf9,
0x0a,0xf5,0x16,0xe9,0x2a,0xd5,0x4a,0xb5,0x9a,0x65,0x36,0xc9,0x55,0xaa,0xa5,0x5a,
0xf2,0x0d,0xe0,0x1f,0xca,0x35,0x83,0x7c,0x79,0x86,0xf8,0x07,0xf0,0x0f,0xf0,0x0f,
0x00,0xff,0x00,0xff,0x00,0xff,0x80,0x7f,0x80,0x7f,0x40,0xbf,0x60,0x9f,0x80,0x7f,
0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x01,0xfe,0x01,0xfe,0x02,0xfd,0x02,0xfd,
0xc5,0x2a,0x92,0x6d,0xe2,0x05,0x89,0x76,0x24,0xdb,0x28,0xd3,0xa6,0x59,0x22,0xdd,
0x00,0xff,0x00,0x7f,0x40,0xbf,0x00,0xdf,0x80,0x67,0x40,0xbf,0x20,0xdf,0x00,0xff,
0x00,0xfe,0x11,0xee,0x18,0xe4,0x18,0xe4,0x78,0x80,0x30,0xc0,0x00,0xf0,0x00,0xe0,
0x1c,0x03,0x00,0x07,0x00,0x03,0x01,0x02,0x03,0x00,0x03,0x00,0x03,0x00,0x00,0x00,
0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x80,0x7f,0x80,0x7f,0xc0,0x3f,0xc0,0x3f,
0x00,0xff,0x00,0xff,0x01,0xfe,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,
0x0d,0xf2,0x33,0xcc,0xc4,0x3b,0x08,0xf7,0x00,0xff,0x01,0xfe,0x00,0xff,0x00,0xff,
0xa5,0x5a,0x45,0xba,0x45,0xba,0xc9,0x36,0x88,0x77,0x10,0xef,0x10,0xef,0x20,0xdf,
0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x80,0x7f,0x80,0x7f,0x40,0xbf,0x00,0xff,
0xf0,0x0f,0xf2,0x0d,0xf4,0x0b,0xec,0x13,0xc8,0x37,0x80,0x7f,0x00,0xff,0x20,0xdf,
0x01,0xfe,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x20,0xdf,
0x02,0xfd,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,
0x20,0xde,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,
0x20,0xdf,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,
0x40,0xa0,0x40,0xa0,0x00,0xe0,0x00,0xe0,0x10,0xe0,0x30,0xc1,0x18,0xe1,0x08,0xf1,
0x00,0x00,0x00,0x00,0x80,0x00,0x00,0x00,0x01,0x00,0x13,0x20,0x97,0x20,0x8c,0x33,
0xc0,0x3f,0xc0,0x3f,0xc0,0x3f,0x80,0x7f,0x00,0xff,0x80,0x7f,0x00,0xff,0x00,0xff,
0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x08,0xf7,0x02,0xf4,
0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0xc0,0x3f,
0x60,0x9f,0xa0,0x5f,0x01,0xfe,0x00,0xff,0x02,0xfd,0x00,0xff,0x18,0xe7,0x10,0xef,
0x20,0xdf,0x20,0xdf,0x20,0xdf,0x00,0xff,0x00,0xff,0x00,0xff,0x10,0xef,0x00,0xff,
0x00,0xff,0x00,0xff,0x00,0xff,0x03,0xfc,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,
0x00,0xff,0x00,0xff,0x00,0xff,0x81,0x7e,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,
0x0c,0xf3,0x00,0xff,0x00,0xff,0xd0,0x2f,0x00,0xff,0x00,0xff,0x00,0xfe,0x00,0xff,
0x48,0x37,0x00,0xbf,0x00,0xbf,0x00,0xff,0x00,0xff,0x00,0x7f,0x00,0xcf,0x00,0x2f,
0x04,0xeb,0x01,0xde,0x16,0xc0,0x00,0xe1,0x10,0xea,0x00,0xf0,0x00,0xe9,0x08,0xe0,
0x20,0xdf,0x80,0x7f,0x00,0x7f,0x00,0xbf,0x20,0x5f,0x00,0x97,0x00,0x5f,0x00,0x9f,
0x20,0xdf,0x40,0xbf,0x40,0xbf,0x40,0xbf,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,
0x20,0xdf,0x40,0xbf,0x40,0xbf,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,
0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x07,0xf8,0x00,0xff,
0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x80,0x7f,0x00,0xff,
0x20,0xdf,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0xe4,0x1b,0x00,0xff,
0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x3f,0xc0,0x00,0xff,
0x04,0xfa,0x04,0xfb,0x04,0xfb,0x08,0xf7,0x08,0xf7,0x73,0x8c,0xf3,0x0c,0x00,0xff,
0x10,0xe7,0x10,0x24,0x08,0xf6,0x41,0xbe,0x01,0xfe,0x08,0xf7,0x1e,0xe1,0x00,0xff,
0x0f,0xf0,0x08,0x77,0x00,0x7f,0x00,0x38,0xc0,0x14,0x65,0x8a,0x14,0xeb,0x00,0xff,
0xc0,0x26,0x00,0xf1,0x80,0x17,0x10,0x08,0xc0,0x0f,0xa1,0x44,0x44,0xa2,0x00,0xe2,
0x40,0x1f,0x60,0x1f,0x80,0x6f,0xa2,0x4d,0x62,0x95,0xd0,0x2f,0x00,0x5f,0x0c,0xb3,
0x6c,0x93,0x00,0xff,0x00,0xff,0x00,0xff,0x5e,0xa1,0x80,0x7f,0x00,0xff,0x00,0xff,
0x80,0x7f,0x78,0x87,0x7f,0x80,0x3f,0xc0,0x1f,0xe0,0x0f,0xf0,0x07,0xf8,0xc0,0x3f,
0x02,0xfd,0x00,0xff,0x81,0x7e,0xf9,0x06,0xfc,0x03,0xfe,0x01,0xfe,0x01,0x00,0xff,
0x00,0xff,0x00,0xff,0x00,0xff,0x80,0x7f,0x80,0x7f,0xc0,0x3f,0xf8,0x07,0x00,0xff,
0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x20,0xdf,0x20,0xdf,0x00,0xff,
0x00,0xff,0x00,0xff,0x01,0xfe,0x02,0xfd,0x06,0xf9,0x0d,0xf2,0x19,0xe6,0x13,0xec,
0x00,0xff,0x10,0xef,0x10,0xef,0x10,0xef,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,
0x00,0xff,0x00,0xff,0x02,0xfd,0x00,0xff,0x00,0xff,0x0c,0xf3,0x0c,0xf3,0x00,0xff,
0x00,0xff,0x20,0xdf,0x00,0xff,0x80,0x7f,0x80,0x7f,0x00,0xff,0x00,0xff,0x00,0xff,
0x00,0xff,0x00,0xff,0x00,0xff,0x10,0xef,0x10,0xef,0x20,0xdf,0x23,0xdc,0x27,0xd8,
0x00,0xff,0x07,0xf8,0x1f,0xe0,0x3f,0xc0,0x7f,0x80,0xfe,0x00,0xfe,0x00,0xfe,0x00,
0x80,0x30,0x8f,0x30,0x9f,0x20,0x1f,0x60,0x1f,0x60,0x3f,0x40,0x3f,0x40,0x3f,0xc0,
0x3f,0xc0,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xe3,0x00,
0x00,0xff,0xef,0x10,0xef,0x10,0xce,0x31,0xe0,0x1f,0x80,0x71,0x00,0xe0,0x00,0xcf,
0xe6,0x11,0xc0,0x31,0x80,0x78,0x20,0xd8,0x70,0x8c,0x32,0xc8,0x00,0x7d,0x40,0x2e,
0x04,0x7b,0xac,0x53,0xe8,0x07,0x10,0xcf,0x20,0x1f,0x08,0x77,0x30,0xcf,0xe0,0x1f,
0x3e,0xc1,0x3e,0xc1,0x3f,0xc0,0x3f,0xc0,0x3f,0xc0,0x0f,0xf0,0x62,0x9d,0x60,0x9f,
0x83,0x7c,0x03,0xdc,0x03,0xc4,0x04,0xc3,0x02,0x81,0x00,0xa1,0x00,0x61,0x84,0x69,
0xc0,0x3f,0xfd,0x02,0xff,0x00,0xff,0x00,0xff,0x00,0x7f,0x80,0x7f,0x80,0x7f,0x80,
0x06,0xf1,0xc7,0x30,0xcf,0x30,0xe3,0x18,0xe3,0x18,0xf3,0x08,0xf1,0x0c,0xf1,0x0c,
0x00,0xff,0x80,0x7f,0xe0,0x1f,0xf0,0x0f,0xf8,0x07,0xfc,0x03,0xfe,0x01,0xff,0x00,
0x00,0xff,0x00,0xff,0x40,0xbf,0x40,0xbf,0x40,0xbf,0x20,0xdf,0x20,0xdf,0x20,0xdf,
0x01,0xfe,0x02,0xfc,0x0c,0xf3,0x21,0xde,0x00,0xff,0x04,0xfb,0x18,0xe7,0x00,0xff,
0xa2,0x5d,0x04,0xbb,0xb4,0x4b,0x0b,0xf4,0x11,0xee,0x93,0x6c,0x61,0x9c,0x7c,0x83,
0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x01,0xfe,0x01,0xfe,
0x30,0xcf,0x03,0xfc,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,
0x00,0xff,0xff,0x00,0x00,0xff,0x01,0xfe,0x01,0xfe,0x01,0xfe,0x03,0xfc,0x04,0xf9,
0x07,0xb8,0xc0,0x3f,0x00,0xff,0x00,0xe0,0x3f,0xc0,0x3f,0xc0,0x7b,0x84,0xf7,0x08,
0xfe,0x00,0x00,0xc0,0x00,0xff,0x00,0x01,0xfc,0x01,0xf8,0x01,0xf8,0x03,0xf9,0x02,
0x3f,0xc0,0x00,0xc0,0x00,0xff,0x00,0x00,0xff,0x00,0xff,0x00,0xfc,0x03,0xf3,0x0c,
0x04,0x03,0x00,0x7f,0x00,0xff,0x4e,0x31,0x11,0xee,0x69,0x96,0xf8,0x07,0x18,0xe7,
0x48,0x87,0x3c,0x83,0x78,0x87,0x08,0xf7,0x00,0x3f,0xc1,0x3e,0x61,0x9e,0x01,0xfe,
0xe0,0x17,0x44,0x9b,0x00,0xfb,0x02,0xf9,0x03,0xfc,0x01,0xfc,0x81,0x7e,0x80,0x7f,
0x00,0xff,0x00,0x3f,0x00,0xff,0x00,0xff,0x40,0xbf,0x20,0xdf,0x00,0xff,0xe0,0x1f,
0xfa,0x05,0xf6,0x09,0x07,0xb0,0x17,0xe0,0x07,0xf8,0x09,0xf4,0x10,0xee,0x00,0xff,
0x44,0xab,0x00,0xff,0x00,0xff,0xe1,0x1e,0xf0,0x0f,0xec,0x13,0xde,0x21,0x3f,0x40,
0xff,0x00,0x00,0x00,0x00,0xff,0xff,0x00,0xff,0x00,0x7f,0x80,0x1f,0xe0,0x8f,0x70,
0xf1,0x0c,0x10,0x0c,0x00,0xff,0xfc,0x03,0xfc,0x03,0xfe,0x01,0xfe,0x01,0xfe,0x01,
0xff,0x00,0x02,0x00,0x00,0xff,0x0c,0x03,0x7f,0x00,0x7f,0x00,0x7f,0x00,0x3f,0x80,
0x90,0x6f,0x9f,0x60,0x00,0xff,0x00,0xff,0x04,0xfb,0xe4,0x1b,0xe2,0x1d,0xf2,0x0d,
0x00,0xff,0xbe,0x41,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,
0x00,0xff,0x01,0xfe,0x00,0xff,0x08,0xf7,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,
0x84,0x7b,0x08,0xf7,0x00,0xff,0x10,0xef,0x20,0xdf,0x00,0xff,0x00,0xff,0x00,0xff,
0x00,0xff,0x00,0xff,0x00,0x7f,0xc0,0x3f,0x60,0x9f,0x90,0x67,0x86,0x79,0xc1,0x3e,
0x02,0xfd,0x02,0xfd,0x04,0xfb,0x04,0xfb,0x38,0xc7,0x00,0xff,0x01,0xfe,0x00,0xff,
0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x7f,0x80,0x00,0xff,0x9f,0x60,0x00,0xff,
0x0c,0xf1,0x08,0xf1,0x1c,0xe3,0x3c,0xc3,0xf8,0x07,0x00,0xff,0x83,0x0c,0x63,0x8c,
0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0x00,0xff,0x00,0xff,0xf9,0x00,0xfe,0x00,
0xf9,0x02,0xf1,0x06,0xf3,0x04,0xe2,0x05,0x38,0xc7,0x00,0xff,0x98,0x67,0xb8,0x47,
0xe6,0x19,0x8e,0x71,0x32,0xcd,0x7d,0x82,0xfe,0x01,0x7f,0x00,0x7f,0x80,0x1f,0xe0,
0x40,0x9e,0x03,0xec,0x0c,0xf3,0x03,0xfc,0x00,0xff,0x00,0x7f,0x80,0x3f,0x80,0x1f,
0x01,0xfe,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,
0x70,0x8f,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x40,0xbf,0xe0,0x1f,
0x00,0xff,0x80,0x7f,0x80,0x7f,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,
0x1f,0x80,0x6f,0x80,0x77,0x80,0x79,0x80,0x38,0xc7,0x70,0x8e,0x30,0xcc,0x13,0xe8,
0xe7,0x18,0xe0,0x1f,0x8e,0x71,0x3f,0xc0,0x3f,0x80,0x7f,0x00,0xff,0x00,0xfc,0x03,
0xfe,0x01,0xff,0x00,0x3f,0xc0,0x1f,0xe0,0x8f,0x70,0x80,0x7f,0x00,0xff,0x00,0xff,
0x3f,0x80,0x3f,0x80,0x0f,0x80,0x0f,0x80,0x02,0xc0,0x00,0xff,0x0f,0xf0,0x07,0xf0,
0xf3,0x0c,0xf1,0x0e,0xf9,0x06,0xf9,0x06,0x80,0x07,0x00,0xff,0xfc,0x03,0xfc,0x03,
0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x40,0xbf,
0x00,0xff,0x00,0xff,0x00,0xff,0x80,0x7f,0x80,0x7f,0x00,0xff,0x00,0xff,0x40,0xbf,
0xa1,0x5e,0x00,0xff,0x50,0xaf,0x20,0xdf,0x00,0xff,0x06,0xf9,0x02,0xfd,0x80,0x7f,
0x00,0xff,0x20,0xdf,0x40,0xbf,0x40,0xbf,0x40,0xbf,0x00,0xff,0x00,0xff,0x00,0xff,
0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x03,0xfc,
0xc3,0x0c,0xc7,0x18,0xc7,0x18,0xe7,0x18,0xef,0x10,0xcf,0x30,0xcf,0x30,0x8f,0x70,
0xfe,0x00,0xfe,0x00,0xfe,0x00,0xfe,0x00,0xff,0x00,0xfe,0x01,0xfe,0x01,0xfc,0x03,
0xb8,0x47,0x30,0xcf,0x60,0x9f,0x40,0xbf,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,
0x0d,0xf2,0x0f,0xf0,0x07,0xf8,0x03,0xfc,0x01,0xfe,0x00,0xff,0x00,0xff,0x00,0xff,
0xc0,0x0f,0xe8,0x07,0xfa,0x05,0xf5,0x08,0xec,0x10,0x1f,0xe0,0x3e,0xc0,0x0f,0xf0,
0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0x7f,0x00,0x3f,0x00,0x0f,0xc0,0x07,
0x60,0x9f,0x60,0x9f,0x20,0xdf,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,
0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xfe,0x00,0xfc,0x01,0xfa,
0x03,0xf0,0x07,0xf8,0x31,0xce,0x18,0xc7,0x3e,0x01,0x7f,0x00,0xfc,0x03,0xf8,0x07,
0xf8,0x07,0xf8,0x07,0xe0,0x1f,0xc0,0x3f,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,
0x01,0xfe,0x01,0xfe,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,
0x07,0xf0,0x03,0xf0,0x03,0xf0,0x0b,0xf0,0x33,0xc8,0x01,0xfc,0x03,0xfc,0x01,0xfe,
0xfc,0x03,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,
0x20,0xdf,0x20,0xdf,0x20,0xdf,0x10,0xef,0x90,0x6f,0x90,0x6f,0x90,0x6f,0x89,0x76,
0x40,0xbf,0x20,0xdf,0x20,0xdf,0x30,0xcf,0x10,0xef,0x10,0xef,0x00,0xff,0x00,0xff,
0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xfb,0x08,0x73,0x00,0x73,0x00,0xf7,
0x0f,0xf0,0x00,0xff,0x0f,0xf0,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,
0xfe,0x01,0x00,0xff,0xe0,0x1f,0x60,0x9f,0x40,0xbf,0x40,0xbf,0x80,0x7f,0x80,0x7f,
0x8f,0x70,0x00,0xff,0x77,0x80,0x7b,0x84,0x7d,0x82,0x7f,0x80,0x3f,0xc0,0x3f,0xc0,
0xfc,0x03,0x00,0xff,0x0e,0x31,0x1f,0x20,0x5f,0x20,0x5f,0x20,0x1f,0x60,0x1f,0x60,
0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x80,0x7f,0xc0,0x3f,0xe0,0x1f,0xf8,0x07,
0x05,0xf8,0x03,0xfc,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,
0xf4,0x0b,0xf1,0x08,0xc6,0x30,0x3e,0xc0,0x18,0xe2,0x08,0xf1,0x0f,0xf0,0x03,0xfc,
0x00,0xff,0x00,0xff,0x00,0x7f,0x00,0x3f,0xc0,0x1f,0xf0,0x07,0xf8,0x03,0xc0,0x30,
0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xfe,0x01,0xfc,0x0b,0xf4,0x0d,0xe2,
0x06,0xf1,0x0e,0xe0,0x5f,0x80,0x3f,0x00,0x7e,0x01,0xfc,0x03,0xf8,0x07,0xe0,0x1f,
0xf0,0x0f,0x20,0xdf,0x80,0x7f,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,
0x00,0xff,0x00,0xff,0x00,0xff,0x03,0xfc,0x07,0xf8,0x0f,0xf0,0x1f,0xe0,0x3f,0xc0,
0x60,0x9f,0x00,0xff,0x03,0xc0,0x1f,0xc0,0x9f,0x40,0x9f,0x40,0x8f,0x60,0x8e,0x61,
0x0f,0xf0,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,
0x00,0xff,0x00,0xff,0x00,0xff,0x10,0xef,0x10,0xef,0x10,0xef,0x00,0xff,0x00,0xff,
0x00,0xff,0x00,0xff,0x04,0xfb,0x04,0xfb,0x02,0xfd,0x02,0xfd,0x01,0xfe,0x00,0xff,
0x00,0xf7,0x10,0xef,0x10,0xef,0x20,0xdf,0x00,0xff,0x00,0xff,0x86,0x61,0x80,0x7f,
0x00,0xff,0x00,0xff,0x00,0xff,0x78,0x87,0x00,0xff,0x00,0xff,0xb4,0x03,0xf0,0x07,
0x80,0x7f,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,
0x1e,0xe0,0x1e,0xe0,0x0e,0xf0,0x0f,0xf0,0x03,0xfc,0x00,0xff,0x00,0xfc,0x03,0xfc,
0x1f,0x60,0x3f,0xc0,0x3f,0xc0,0x3f,0xc0,0x06,0xf9,0x00,0xff,0x00,0x00,0xff,0x00,
0xfc,0x03,0xff,0x00,0xff,0x00,0xff,0x00,0x06,0xf9,0x00,0xff,0x00,0x07,0xe1,0x06,
0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x60,0x9f,0x00,0xff,0xf8,0x07,0xfe,0x01,
0xc7,0x20,0x2b,0xc4,0x3f,0xc0,0x0f,0xf0,0x05,0xf8,0x03,0xfc,0x01,0xfe,0x00,0xff,
0x1e,0x01,0xff,0x00,0xfe,0x01,0xfe,0x01,0xf8,0x07,0xf0,0x0f,0xa0,0x1f,0x00,0xff,
0x40,0xbf,0x80,0x7f,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,
0x00,0xff,0x01,0xfe,0x03,0xfc,0x07,0xf8,0x0f,0xf0,0x00,0xff,0x60,0x98,0xe3,0x18,
0x7f,0x80,0xff,0x00,0xff,0x00,0xff,0x00,0xe0,0x1f,0x00,0xff,0x00,0x00,0xff,0x00,
0x8e,0x61,0x8c,0x63,0x8c,0x73,0x80,0x7f,0x80,0x7f,0x00,0xff,0x00,0x1f,0xe0,0x1f,
0x08,0xf7,0x0c,0xf3,0x0c,0xf3,0x04,0xfb,0x06,0xf9,0x00,0xff,0x01,0xfe,0x03,0xfc,
0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0xc0,0x3f,0x00,0xff,
0x00,0xff,0x00,0xff,0x40,0xbf,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,
0x00,0xf7,0x00,0xf7,0x00,0xf7,0x10,0xef,0x10,0xef,0x10,0xef,0x00,0xff,0x00,0xff,
0xff,0x00,0xff,0x00,0xff,0x00,0x7f,0x80,0x3f,0xc0,0x1f,0xe0,0x0f,0xf0,0x07,0xf8,
0xf3,0x04,0xf3,0x04,0xf3,0x04,0xeb,0x04,0xe3,0x0c,0xe3,0x0c,0xe3,0x0c,0xe3,0x0c,
0xff,0x00,0xff,0x00,0xf7,0x08,0xc7,0x38,0xe1,0x0e,0xf1,0x02,0xfe,0x01,0xff,0x00,
0x00,0xff,0xc0,0x3f,0xe0,0x1f,0xe0,0x1f,0xf8,0x07,0xfe,0x01,0xff,0x00,0xff,0x00,
0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x80,0x7f,
0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x01,0xfe,0x03,0xfc,0x07,0xf8,
0x01,0xfe,0x03,0xfc,0x0f,0xf0,0x0f,0xf0,0x7f,0x80,0xff,0x00,0xff,0x00,0xff,0x00,
0xf3,0x08,0xf3,0x08,0xf3,0x08,0xf5,0x08,0xf1,0x0c,0xf1,0x0c,0xf1,0x0c,0xf1,0x0c,
0xff,0x00,0xff,0x00,0xff,0x00,0xfe,0x01,0xfc,0x03,0xf8,0x07,0xf0,0x0f,0xe0,0x1f,
0xc2,0x3d,0x82,0x7d,0x02,0xfd,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,
0x02,0xfd,0x02,0xfd,0x02,0xfd,0x01,0xfe,0x01,0xfe,0x01,0xfe,0x00,0xff,0x00,0xff,
0x00,0xff,0x00,0xff,0x1e,0xe1,0x38,0xc7,0x00,0xff,0x01,0xfe,0x01,0xfe,0x00,0xff,
0x00,0xff,0x00,0xff,0x00,0xff,0x1c,0xe3,0x1c,0xe3,0x00,0xff,0x00,0xff,0x00,0xff,
0x00,0xff,0x00,0xff,0x00,0xff,0xf9,0x06,0xf9,0x06,0x21,0xde,0x23,0xdc,0x23,0xdc,
0x00,0xff,0x38,0xc7,0x00,0xff,0xf8,0x07,0xc0,0x01,0x84,0x00,0xbe,0x00,0x3a,0x04,
0x01,0xfe,0x01,0xfe,0x00,0xff,0x00,0xff,0x00,0xf8,0x00,0xf3,0x00,0xf7,0x00,0x67,
0xe1,0x0e,0x60,0x9f,0x00,0xff,0x3f,0xc0,0x1c,0x20,0x00,0x1c,0x00,0xdc,0x00,0xcc,
0xff,0x00,0x00,0xff,0x00,0xff,0x1f,0xe0,0xaf,0x40,0xa7,0x40,0xa3,0x40,0x2b,0xc0,
0xff,0x00,0x18,0xe7,0x00,0xff,0xff,0x00,0xdf,0x00,0xde,0x00,0xdc,0x00,0xdd,0x00,
0x80,0x7f,0x00,0xff,0x00,0xff,0x38,0x07,0x02,0x05,0x63,0x00,0xf3,0x00,0xfb,0x00,
0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xf8,0x80,0x7b,0xc0,0x3b,0xe0,0x1b,
0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0x3e,0x00,0x8e,0x00,0xee,0x00,0xe6,
0x00,0xff,0x00,0xff,0x00,0xff,0x01,0xfe,0x00,0x02,0x1c,0x62,0x3d,0x42,0x7d,0x02,
0x1f,0xe0,0x09,0xf6,0x00,0xff,0xff,0x00,0x00,0x00,0xbf,0x00,0xbf,0x00,0xbf,0x00,
0xff,0x00,0x80,0x7f,0x00,0xff,0x8c,0x03,0xc0,0x00,0xdc,0x02,0xde,0x01,0xde,0x01,
0xe1,0x1c,0x01,0xfe,0x00,0xff,0x3c,0xc3,0xf0,0x00,0x70,0x07,0x00,0x37,0x00,0x37,
0xc0,0x3f,0x80,0x7f,0x00,0xff,0xff,0x00,0x00,0x18,0x00,0x7b,0x80,0x7b,0x80,0x7b,
0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0x1f,0x00,0xcf,0x00,0xef,0x00,0xe7,
0x80,0x7f,0x00,0xff,0x00,0xff,0x78,0x87,0x40,0x9f,0x60,0x9f,0x20,0xdf,0x00,0xdf,
0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x08,0xc7,0x00,0xff,0x00,0xff,
0xc0,0x3f,0x00,0xff,0x00,0xff,0x1e,0xe1,0x30,0xcf,0x20,0xdf,0x10,0xef,0x18,0xe7,
0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x08,0xf7,0x00,0xff,
0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x80,0x7f,0xc0,0x3f,0x00,0xff,
0x22,0x1d,0x04,0x7b,0x00,0x78,0x04,0x3a,0x00,0x3e,0x00,0xbe,0x00,0x8c,0x00,0xc1,
0x00,0xef,0x00,0xef,0x00,0x6f,0x00,0x67,0x00,0x67,0x00,0x77,0x00,0x71,0x00,0xf8,
0x00,0xcc,0x00,0xec,0x00,0xec,0x00,0xec,0x00,0xcc,0x00,0xdc,0x00,0x9c,0x00,0x3c,
0x29,0xc0,0x0d,0xe0,0x00,0xec,0x00,0xee,0x00,0xef,0x00,0xef,0x00,0xef,0x00,0xef,
0xdd,0x00,0xdd,0x00,0xdd,0x00,0x5d,0x00,0x00,0x5c,0x00,0x1c,0x00,0x9e,0x00,0x9f,
0xf3,0x04,0xf3,0x04,0xc3,0x00,0xf3,0x00,0xf3,0x00,0x1b,0xe0,0x03,0x70,0x00,0x07,
0xf0,0x0b,0xf8,0x03,0xfa,0x01,0xfa,0x01,0xfb,0x00,0xfb,0x00,0xbb,0x40,0x00,0xf8,
0x00,0xe6,0x02,0xf4,0x02,0xf4,0x06,0xe0,0x06,0xe0,0xee,0x00,0x8e,0x00,0x00,0x3e,
0x7d,0x02,0x01,0x02,0x7d,0x02,0x7d,0x02,0x7c,0x02,0x7c,0x02,0x7d,0x02,0x00,0x01,
0xbf,0x00,0x81,0x00,0xbf,0x00,0xbc,0x03,0x80,0x3f,0x00,0xbf,0x00,0xbf,0x00,0x80,
0xdc,0x03,0xd0,0x0e,0xc0,0x00,0x00,0xdf,0x00,0xdf,0x00,0xdf,0x00,0xdf,0x00,0xdf,
0x00,0x37,0x00,0x70,0x00,0x77,0x00,0xf7,0x00,0xf7,0x00,0xf7,0x00,0xf7,0x00,0xf0,
0x80,0x7b,0x00,0x3b,0x80,0x78,0x80,0x7b,0x80,0x7b,0x41,0xba,0x41,0xba,0x00,0x1b,
0x00,0xef,0x00,0xcf,0x10,0x0f,0x10,0x8f,0x00,0xdf,0x80,0x4f,0x00,0xef,0x00,0xe7,
0x20,0xdf,0x30,0xcf,0x10,0xef,0x10,0xef,0x10,0xef,0x00,0xef,0x00,0xff,0x00,0xff,
0x10,0xef,0x00,0xff,0x08,0xf7,0x08,0xf7,0x00,0xff,0x04,0xfb,0x04,0xfb,0x00,0xff,
0x00,0xff,0x1f,0xe0,0x00,0xff,0x00,0xff,0x00,0xff,0x01,0xfe,0x01,0xfe,0x00,0xff,
0x00,0xff,0xc0,0x3f,0x00,0xff,0x80,0x7f,0x80,0x7f,0x00,0xff,0x00,0xff,0x00,0xff,
0x00,0xff,0x7d,0x80,0x0e,0xf1,0x01,0xfe,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,
0x00,0xff,0x00,0x7f,0xc1,0x3e,0xc0,0x1f,0x40,0x9f,0x60,0x9f,0x40,0xbf,0x40,0xbf,
0x00,0xff,0x00,0xff,0xc0,0x3f,0xe0,0x1f,0x20,0xdf,0x20,0xdf,0x00,0xff,0x00,0xff,
0x00,0xff,0x3c,0xc3,0x04,0xfb,0x04,0xfb,0x04,0xfb,0x00,0xff,0x00,0xff,0x00,0xff,
0x00,0xff,0x1f,0xe0,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,
0x00,0xff,0xff,0x00,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,
0x00,0xff,0x8f,0x70,0xd8,0x27,0x50,0xaf,0x50,0xaf,0x50,0xaf,0x00,0xff,0x00,0xff,
0x00,0xff,0xcf,0x30,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,
0x00,0xff,0xc0,0x3f,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,
0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xf7,
0x00,0xff,0x08,0xe7,0x28,0xc7,0x00,0xdf,0x00,0xdf,0x20,0xdf,0x10,0xef,0x10,0xef,
0x00,0xff,0x00,0xfc,0x03,0xfc,0x02,0xfd,0x01,0xfe,0x01,0xfe,0x00,0xff,0x00,0xff,
0x00,0xff,0xdf,0x20,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x80,0x7f,0x80,0x7f,
0x00,0xff,0x00,0xff,0x00,0xff,0x80,0x7f,0x00,0xff,0x01,0xfe,0x00,0xfe,0x00,0xfc,
0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x06,0xf9,0x00,0xff,0x04,0xfb,0x04,0xfb,
0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0xfe,0x01,0x1e,0xe1,0x00,0xff,
0xc0,0x3f,0x80,0x7f,0x00,0xff,0x00,0xff,0x00,0xff,0x38,0xc3,0x0e,0xf1,0x06,0xf9,
0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x3e,0xc1,0x00,0xff,0x00,0xff,
0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0xe0,0x1f,0x00,0xff,
0x10,0xef,0x11,0xee,0x00,0xff,0x00,0xff,0x00,0xff,0x0f,0xf0,0x0c,0xf3,0x04,0xfb,
0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0xf8,0x07,0x00,0xff,0x00,0xff,
0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x20,0xdf,0xe0,0x1f,0x00,0xff,0x00,0xff,
0x00,0xf8,0x00,0xf0,0x00,0xfc,0x02,0xfc,0x00,0xfe,0x00,0xff,0x00,0xff,0x00,0xff
};
const unsigned char next_level_map[360] = {
0x00,0x01,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x03,
0x01,0x02,0x02,0x02,0x02,0x02,0x02,0x04,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x05,0x02,0x02,0x02,
0x06,0x07,0x02,0x02,0x08,0x02,0x09,0x0a,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x0b,0x0c,0x02,0x02,0x02,
0x0d,0x0e,0x02,0x0f,0x10,0x11,0x12,0x13,0x14,0x02,0x02,0x02,0x02,0x02,0x15,0x16,0x17,0x18,0x02,0x02,
0x19,0x1a,0x02,0x1b,0x1c,0x1d,0x1e,0x1f,0x20,0x21,0x22,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02,
0x23,0x24,0x02,0x02,0x25,0x26,0x27,0x28,0x02,0x29,0x2a,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02,
0x2b,0x2c,0x2d,0x2e,0x2f,0x30,0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x02,0x02,0x3a,0x02,0x3b,
0x3c,0x02,0x3d,0x3e,0x3f,0x40,0x41,0x42,0x43,0x44,0x45,0x46,0x47,0x48,0x49,0x4a,0x4b,0x02,0x4c,0x4d,
0x02,0x4e,0x4f,0x50,0x51,0x52,0x53,0x54,0x55,0x56,0x57,0x58,0x59,0x5a,0x5b,0x5c,0x5d,0x5e,0x5f,0x60,
0x61,0x62,0x63,0x64,0x65,0x66,0x67,0x68,0x69,0x02,0x6a,0x6b,0x6c,0x6d,0x6e,0x6f,0x70,0x71,0x15,0x72,
0x73,0x74,0x75,0x76,0x77,0x78,0x79,0x7a,0x7b,0x02,0x7c,0x7d,0x7e,0x7f,0x80,0x81,0x82,0x83,0x02,0x84,
0x85,0x86,0x87,0x88,0x89,0x8a,0x02,0x8b,0x8c,0x8d,0x8e,0x8f,0x90,0x02,0x02,0x91,0x92,0x93,0x94,0x95,
0x96,0x97,0x98,0x99,0x9a,0x9b,0x9c,0x02,0x02,0x9d,0x9e,0x9f,0x02,0x02,0xa0,0xa1,0xa2,0x02,0xa3,0xa4,
0xa5,0xa6,0x02,0x69,0xa7,0xa8,0xa9,0xaa,0xab,0x02,0x02,0x02,0xac,0xad,0xae,0xaf,0xb0,0xab,0xb1,0x07,
0xb2,0xb3,0xb4,0xb5,0xb6,0xb7,0xb8,0xb9,0xba,0xbb,0xbc,0xbd,0xbe,0xbf,0xc0,0xc1,0xc2,0xc3,0xc4,0xc5,
0xc6,0xc7,0x1d,0xc8,0xc9,0xca,0xcb,0xcc,0xcd,0xce,0xcf,0xd0,0xd1,0xd2,0xd3,0xd4,0xd5,0xd6,0x02,0xd7,
0x02,0xd8,0xd9,0xda,0xdb,0xdc,0x02,0xdd,0xde,0xdf,0xe0,0xe1,0xe2,0x02,0xe3,0xe4,0xe5,0xe6,0x02,0xe7,
0x02,0xe8,0x02,0xe9,0xea,0xeb,0x02,0x02,0x02,0x2d,0xec,0x02,0x02,0x02,0x02,0xed,0xee,0x98,0xef,0xf0,
};
+29
View File
@@ -0,0 +1,29 @@
//AUTOGENERATED FILE FROM png2asset
// Conversion args: /next_level.png -c /next_level.c -map -bpp 2 -noflip -max_palettes 1
#ifndef METASPRITE_next_level_H
#define METASPRITE_next_level_H
#include <stdint.h>
#include <gbdk/platform.h>
#include <gbdk/metasprites.h>
#define next_level_TILE_ORIGIN 0
#define next_level_TILE_W 8
#define next_level_TILE_H 8
#define next_level_WIDTH 160
#define next_level_HEIGHT 144
#define next_level_TILE_COUNT 241
#define next_level_PALETTE_COUNT 1
#define next_level_COLORS_PER_PALETTE 4
#define next_level_TOTAL_COLORS 4
#define next_level_MAP_ATTRIBUTES 0
extern const unsigned char next_level_map[360];
#define next_level_map_attributes next_level_map
BANKREF_EXTERN(next_level)
extern const palette_color_t next_level_palettes[4];
extern const uint8_t next_level_tiles[3856];
#endif
+32 -12
View File
@@ -102,12 +102,23 @@ const uint16_t ch1_seq[128] = {
N_A2, N_A3, N_CS4, N_E4, N_A2, R, N_D3, R
};
// Victory Arpeggio (fast ascending)
const uint16_t victory_seq[16] = {
N_C4, N_E4, N_G4, N_C5,
N_E5, N_G5, 1950, 1950,
N_C5, N_E5, N_G5, 1950,
1950, 1950, 1950, R
// "Going Deeper" mysterious melody (80 steps)
const uint16_t next_level_seq[80] = {
// 1. Am (Relief but somewhat somber)
N_A3, N_C4, N_E4, N_A4, N_E4, N_C4, N_A3, R,
N_A3, N_C4, N_E4, N_A4, N_E4, N_C4, N_A3, R,
// 2. Fmaj7 (Mystery and opening up)
N_F3, N_A3, N_C4, N_E4, N_C4, N_A3, N_F3, R,
N_F3, N_A3, N_C4, N_E4, N_C4, N_A3, N_F3, R,
// 3. Dm (Getting darker)
N_D3, N_F3, N_A3, N_D4, N_A3, N_F3, N_D3, R,
N_D3, N_F3, N_A3, N_D4, N_A3, N_F3, N_D3, R,
// 4. E7 (Tension, unresolved)
N_E3, N_GS3, N_B3, N_D4, N_B3, N_GS3, N_E3, R,
N_E3, N_GS3, N_B3, N_D4, N_B3, N_GS3, N_E3, R,
// 5. C augmented (Eerie, strange descent)
N_C3, N_E3, N_GS3, N_C4, N_GS3, N_E3, N_C3, R,
N_C3, N_E3, N_GS3, N_C4, N_GS3, N_E3, N_C3, R
};
const uint16_t ch2_seq[128] = {
@@ -226,14 +237,23 @@ void play_gameover_step(uint8_t step) {
}
void play_victory_step(uint8_t step) {
if (step < 16) {
uint16_t n1 = victory_seq[step];
if (step < 80) {
uint16_t n1 = next_level_seq[step];
if (n1 != R) {
NR10_REG = 0x00;
NR11_REG = 0x80; // 50% duty
NR12_REG = 0xA7; // bright loud fade
NR12_REG = 0x83; // mystery fade
NR13_REG = n1 & 0xFF;
NR14_REG = (n1 >> 8) | 0x80;
// Add a bass note on the first beat of each chord (every 16 steps)
if (step % 16 == 0) {
NR21_REG = 0x80;
NR22_REG = 0xA7; // long fade
uint16_t bn = n1 / 2; // octave lower
NR23_REG = bn & 0xFF;
NR24_REG = (bn >> 8) | 0x80;
}
}
}
}
@@ -281,11 +301,11 @@ void play_music_tick(void) {
gameover_music_step++;
}
}
} else if (game_over == 2) { // Victory (Portal)
} else if (game_over == 2) { // Next Level (Going Deeper)
victory_music_timer++;
if (victory_music_timer >= 8) { // faster tempo
if (victory_music_timer >= 15) { // 15 frames per note = 4 notes/sec
victory_music_timer = 0;
if (victory_music_step < 16) {
if (victory_music_step < 80) {
play_victory_step(victory_music_step);
victory_music_step++;
}