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.
C calculatorcalculator-gamescasiochesscrossy-roaddrive-madfx-cg50gamesgeometry-dashgraphing-calculatorndlessnumworksnumworks-appsnumworks-calculatornumworks-gamenumworks-gamestetristi-84-plus-ceti-nspire
Celeste: Core keeps its rules after a death
Mason Chen91e617f767db
diff --git a/games/celeste/src/level.c b/games/celeste/src/level.cindex 0d405dd3..b4649c70 100644--- a/games/celeste/src/level.c+++ b/games/celeste/src/level.c@@ -569,6 +569,7 @@ void level_reload(void) {/* ---------------------------------------------------------------- transitions */static void transition_to(int index, V2 dir) {+ g_session.core_mode = (uint8_t)g_level.core_mode; /* Level.TransitionTo: a death in the next room keeps it */int slot = g_level.room_slot ^ 1;ents_remove_room(slot);/* Player.CleanUpTriggers: the triggers the player is in are left; the room's triggers do nothing more (they go at thediff --git a/games/celeste/src/player.c b/games/celeste/src/player.cindex 919c3515..6c064e79 100644--- a/games/celeste/src/player.c+++ b/games/celeste/src/player.c@@ -2853,6 +2853,7 @@ void player_spawn(V2 at, int intro) {p->hair_simulate = true;p->inventory_dashes = g_session.inv_dashes;p->inventory_dreamdash = g_session.dreamdash;+ p->inventory_norefills = g_session.no_refills; /* Core: dashes come back from crystals, not the ground */set_box(HB_NORMAL);hurtbox = HB_NORMAL_HURT;p->last_aim = v2(1, 0);diff --git a/games/celeste/tests/check.py b/games/celeste/tests/check.pyindex c8fb1789..412e7dcd 100644--- a/games/celeste/tests/check.py+++ b/games/celeste/tests/check.py@@ -128,6 +128,17 @@ out = run(["--chapter", "13", "--room", "c-10", "--nowipe"], 520,"300-500:r,306-316:j,314-315:x,314-460:g,330-460:u", what="5A's c-10")check("room c-12 " in out and " deaths 0 " in out, f"5A's c-10 was not crossed (its touch switches' gate): {out[-160:]}")+# 8A (Core): its inventory gives no dash back on the ground (PlayerInventory.Core, NoRefills), only its crystals do+out = run(["--chapter", "23", "--room", "b-00", "--nowipe"], 240, "60-61:x", what="8A's no refills")+check("room b-00 " in out and " dashes 1 " in out, f"8A's b-00: the ground gave the dash back: {out[-160:]}")++# 8A's c-01: its ice toggle (not persistent) turns the core cold; the next room keeps it (Level.TransitionTo saves it+# in the session), so a death there (Retry) comes back cold+out = run(["--chapter", "23", "--room", "c-01", "--nowipe", "--at", "296,44", "--tp", "30:650,136"], 450,+ "40-60:r,200-201:p,215-216:d,230-231:o", what="8A's cold mode after a death")+check("room c-02 " in out and " core 2/2" in out and " deaths 1 " in out,+ f"8A's c-02: a death turned the core hot again: {out[-160:]}")+# 6A's boss-00: after the intro (its dialog, OK pressed through), Badeline hit twice dives through the floor, a dash block only# she breaks, and the player follows her down into boss-01 (the second hit: the player put next to her, out of her shots)out = run(["--chapter", "16", "--room", "boss-00", "--nowipe", "--at", "352,144", "--tp", "1680:546,112"], 2100,diff --git a/games/celeste/tests/play.c b/games/celeste/tests/play.cindex e4d53669..ededdeac 100644--- a/games/celeste/tests/play.c+++ b/games/celeste/tests/play.c@@ -191,8 +191,9 @@ int main(int argc, char **argv) {if (shot_at[i] == fr) host_shot(shots[i]);}}- printf("room %s player %.0f,%.0f state %d dead %d\n", level_room_name(), g_player.ent ? g_player.ent->x : 0,- g_player.ent ? g_player.ent->y : 0, g_player.state, g_player.dead);+ printf("room %s player %.0f,%.0f state %d dead %d dashes %d core %d/%d\n", level_room_name(),+ g_player.ent ? g_player.ent->x : 0, g_player.ent ? g_player.ent->y : 0, g_player.state, g_player.dead,+ g_player.dashes, g_level.core_mode, g_session.core_mode);printf("session: chapter %d area %d mode %d deaths %u time %u berries %llx; save berries %llx deaths %u\n",g_session.chapter, g_session.area, g_session.mode, g_session.deaths, g_session.time,(unsigned long long)g_session.berries, (unsigned long long)save_mode()->berries, save_mode()->deaths);