Skip to content

Free games for graphing calculators: NumWorks, TI-Nspire CX, Casio fx-CG50 and soon TI-84 Plus CE. Balatro, Celeste, Hollow Knight, Minecraft and more.

Celeste: Badeline's boosts keep all their places, and the summit's lookout its whole path

Mason Chenacedcd7fb0e5
diff --git a/games/celeste/src/ch2.c b/games/celeste/src/ch2.c
index 2a7f0872..ebc7c53c 100644
--- a/games/celeste/src/ch2.c
+++ b/games/celeste/src/ch2.c
@@ -1284,13 +1284,14 @@ static void lspr_update(LSpr *s) {
if (s->anim == LA_LOOKRIGHT || s->anim == LA_LOOKLEFT) s->anim = LA_LOOKING; /* goto */
s->frame = 0;
}
+#define LOOK_NODES 28 /* the summit's lookout (7A's g-03) has the most */
typedef struct {
LSpr spr;
Talk talk;
V2 cam, speed, cam_start, cam_start_center, last_dir;
float wait, node_pct, t;
int16_t hud;
- int16_t nodes[8][2];
+ int16_t nodes[LOOK_NODES][2];
Walk walk;
Step zs; /* the summit's Level.ZoomTo */
uint8_t nnodes, node, step, interacting, summit, only_y, at_top;
@@ -1537,7 +1538,7 @@ static void new_lookout(const EData *d) {
look_tex[0][i] = tex(path2(p, "objects/lookout/lookout", NULL, i));
look_tex[1][i] = tex(path2(p, "objects/lookout/nobackpack", NULL, i));
}
- l->nnodes = (uint8_t)(d->nnodes < 8 ? d->nnodes : 8);
+ l->nnodes = (uint8_t)(d->nnodes < LOOK_NODES ? d->nnodes : LOOK_NODES);
for (int i = 0; i < l->nnodes; i++) {
V2 n = ed_node(d, i);
l->nodes[i][0] = (int16_t)n.x, l->nodes[i][1] = (int16_t)n.y;
diff --git a/games/celeste/src/ch6.c b/games/celeste/src/ch6.c
index 59de361f..45fc8a7f 100644
--- a/games/celeste/src/ch6.c
+++ b/games/celeste/src/ch6.c
@@ -876,7 +876,7 @@ static const uint8_t BBF_IDLE[] = {0, 1, 2, 3, 4, 5}, BBF_FLASH[] = {6, 7, 8, 9,
BBF_BLINK[] = {12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25};
static const FAnim BB_ANIMS[3] = {{BBF_IDLE, 6, 0, 255, 0.08f}, {BBF_FLASH, 6, 0, BB_IDLE, 0.08f}, {BBF_BLINK, 14, 0, BB_IDLE, 0.08f}};
static uint16_t bb_tex[26];
-#define BB_NODES 8
+#define BB_NODES 9 /* with her own place: 7A's e-13 has the most, 8 nodes */
typedef struct {
FSpr spr;
CSpr dummy; /* BadelineDummy: her sprite (the hair is not drawn) */