Added 3 more starter slots

This commit is contained in:
Ninjdai 2023-11-10 10:50:25 +01:00
parent 2230c67818
commit 297177d420

View File

@ -24,7 +24,7 @@
#include "constants/songs.h" #include "constants/songs.h"
#include "constants/rgb.h" #include "constants/rgb.h"
#define STARTER_MON_COUNT 3 #define STARTER_MON_COUNT 6 // MOAR STARTERS
// Position of the sprite of the selected starter Pokemon // Position of the sprite of the selected starter Pokemon
#define STARTER_PKMN_POS_X (DISPLAY_WIDTH / 2) #define STARTER_PKMN_POS_X (DISPLAY_WIDTH / 2)
@ -98,16 +98,22 @@ static const struct WindowTemplate sWindowTemplate_StarterLabel =
static const u8 sPokeballCoords[STARTER_MON_COUNT][2] = static const u8 sPokeballCoords[STARTER_MON_COUNT][2] =
{ {
{60, 64}, {60, 54},
{120, 88}, {120, 78},
{180, 64}, {180, 54},
{60, 74},
{120, 98},
{180, 74},
}; };
static const u8 sStarterLabelCoords[STARTER_MON_COUNT][2] = static const u8 sStarterLabelCoords[STARTER_MON_COUNT][2] =
{ {
{0, 9}, {0, 8},
{16, 10}, {16, 9},
{8, 4}, {8, 3},
{0, 10},
{16, 11},
{8, 5},
}; };
static const u16 sStarterMon[STARTER_MON_COUNT] = static const u16 sStarterMon[STARTER_MON_COUNT] =
@ -115,6 +121,9 @@ static const u16 sStarterMon[STARTER_MON_COUNT] =
SPECIES_CHESPIN, SPECIES_CHESPIN,
SPECIES_FENNEKIN, SPECIES_FENNEKIN,
SPECIES_FROAKIE, SPECIES_FROAKIE,
SPECIES_CHIKORITA,
SPECIES_CYNDAQUIL,
SPECIES_TOTODILE,
}; };
static const struct BgTemplate sBgTemplates[3] = static const struct BgTemplate sBgTemplates[3] =
@ -203,9 +212,12 @@ static const struct OamData sOam_StarterCircle =
static const u8 sCursorCoords[][2] = static const u8 sCursorCoords[][2] =
{ {
{60, 32}, {60, 22},
{120, 56}, {120, 46},
{180, 32}, {180, 22},
{60, 42},
{120, 66},
{180, 42},
}; };
static const union AnimCmd sAnim_Hand[] = static const union AnimCmd sAnim_Hand[] =
@ -459,6 +471,19 @@ void CB2_ChooseStarter(void)
gSprites[spriteId].sTaskId = taskId; gSprites[spriteId].sTaskId = taskId;
gSprites[spriteId].sBallId = 2; gSprites[spriteId].sBallId = 2;
// Create three more Pokeball sprites
spriteId = CreateSprite(&sSpriteTemplate_Pokeball, sPokeballCoords[3][0], sPokeballCoords[3][1], 2);
gSprites[spriteId].sTaskId = taskId;
gSprites[spriteId].sBallId = 3;
spriteId = CreateSprite(&sSpriteTemplate_Pokeball, sPokeballCoords[4][0], sPokeballCoords[4][1], 2);
gSprites[spriteId].sTaskId = taskId;
gSprites[spriteId].sBallId = 4;
spriteId = CreateSprite(&sSpriteTemplate_Pokeball, sPokeballCoords[5][0], sPokeballCoords[5][1], 2);
gSprites[spriteId].sTaskId = taskId;
gSprites[spriteId].sBallId = 5;
sStarterLabelWindowId = WINDOW_NONE; sStarterLabelWindowId = WINDOW_NONE;
} }