Add Team and Bag pages to the Start menu

This commit is contained in:
LyokoAgents committed 2026-10-29 00:30:06 +00:00
1 parent dd6b92300e
commit 79a27ccbae
8 files changed
+194 -66

No files matched your search

+23 -2
View File
@@ -1,4 +1,5 @@
#include "game.h"
static void draw_bag_summary(void);
void status(const char *message)
{
@@ -81,7 +82,14 @@ void draw_team_member(int member)
large_text(28, 76, "VISIT PROFESSOR MELLON", ink);
text(28, 96, "HER HOUSE IS EAST OF GREENLEAF VILLAGE", ink);
}
/* A small bag summary is visible even before you receive Sprout. */
draw_bag_summary();
rectangle(0, 142, WIDTH, 18, cream);
text(8, 148, "LEFT RIGHT TEAM A CHOOSE B SELECT BACK", ink);
}
static void draw_bag_summary(void)
{
u16 ink = RGB(5, 8, 11);
rectangle(24, 118, 8, 8, ink);
rectangle(25, 119, 6, 3, RGB(29, 8, 9));
rectangle(25, 122, 6, 3, RGB(31, 31, 28));
@@ -94,6 +102,19 @@ void draw_team_member(int member)
count_text[count_index] = 0;
text(88, 119, count_text, ink);
if (rod_owned) text(133, 119, "POKE ROD", ink);
}
void draw_bag(void)
{
u16 ink = RGB(5, 8, 11), cream = RGB(30, 30, 26);
rectangle(0, 0, WIDTH, HEIGHT, RGB(15, 24, 20));
status("YOUR BAG");
rectangle(8, 25, 224, 112, ink);
rectangle(10, 27, 220, 108, cream);
large_text(24, 45, "ITEMS", ink);
text(24, 66, "POKE BALLS ARE USED DURING BATTLE", ink);
text(24, 80, "THIS SCREEN IS READ ONLY", ink);
draw_bag_summary();
rectangle(0, 142, WIDTH, 18, cream);
text(8, 148, "ARROWS TEAM A CHOOSE PARTNER B BACK", ink);
text(8, 148, "A B BACK START CLOSE", ink);
}