Fix next_level image glitch: reset camera scroll and improve image color quantization

This commit is contained in:
2026-06-23 22:05:10 +02:00
parent 3aa20fdb60
commit cb19677f98
5 changed files with 185 additions and 183 deletions
+3
View File
@@ -169,6 +169,9 @@ void engine_update(uint8_t keys, uint8_t prev_keys) {
} else if (game_over == 2) {
// Mostra la schermata "Going Deeper"
HIDE_SPRITES;
// Reset scroll so the full screen image is aligned
SCX_REG = 0;
SCY_REG = 0;
set_bkg_data(0, next_level_TILE_COUNT, next_level_tiles);
set_bkg_tiles(0, 0, 20, 18, next_level_map);
}