mirror of
https://github.com/GearsProgress/Poke_Transporter_GB.git
synced 2026-09-11 02:25:41 -05:00
Compress the graphics (mostly), fix potential vram memcpy issue
This greatly decreases the ROM size, from 245 KB to 198 KB with no visual
changes (that I am aware of)
Changes:
- Enable compression on every graphic but the Pokemon sprites (which are
too large for the GBA to decompress).
- Change grit from emitting .s files to .c files so GCC can strip unused
palettes and maps
- Fix the empty tiles
- Trim down the font to skip 00-1F and 80-FF which were all zeroes
- needs a slight workaround because the Pokemon name display was printing
an invisible FF byte
- Switch memcpy to tonccpy which is vram safe
- Limit palette sizes.
Signed-off-by: easyaspi314 <6258309+easyaspi314@users.noreply.github.com>
This commit is contained in:
@@ -114,17 +114,16 @@ int Box_Menu::box_main(Pokemon_Party party_data)
|
||||
Simplified_Pokemon curr_pkmn = party_data.get_simple_pkmn(index);
|
||||
if (curr_pkmn.is_valid)
|
||||
{
|
||||
char nickname[11] = {' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', '\0'};
|
||||
tte_set_pos(40, 72);
|
||||
for (int i = 0; i < 10; i++)
|
||||
{
|
||||
nickname[i] = gen_3_Intern_char_array[curr_pkmn.nickname[i]];
|
||||
if (curr_pkmn.nickname[i] == 0xFF)
|
||||
{
|
||||
i = 10;
|
||||
break;
|
||||
}
|
||||
tte_putc(gen_3_Intern_char_array[curr_pkmn.nickname[i]]);
|
||||
}
|
||||
tte_set_pos(40, 72);
|
||||
tte_write(nickname);
|
||||
|
||||
if (curr_pkmn.is_shiny)
|
||||
{
|
||||
tte_set_pos(40, 80);
|
||||
|
||||
Reference in New Issue
Block a user