data/claims/celeste-player.yamlCeleste (NoelFB/Celeste, Source/Player/Player.cs)
Game: Celeste.
A normal jump sets Madeline's vertical speed to the jump speed, −105 px/s. celeste-player/jump-speed
Value: -105 px/s
CodeCeleste: released class files (NoelFB/Celeste) ·Source/Player/Player.cs#L49private const float JumpSpeed = -105f;Checked by claude, 2026-10-20 — read the constant at the pinned commitChecked by a second AI model, 2026-10-27.Checked by a second AI model, 2026-10-28.−1.75 px/frame at 60 Hz (exact for a 1/60 s step). Negative is up.
Cited by: Celeste, Jump, Variable jump height
The jump function sets vertical speed to the jump speed plus any platform lift boost, saves it as the variable-jump speed, starts the variable-jump timer at the variable-jump time, and zeroes the grace timer. celeste-player/jump-function
About: Celeste Variable jump height
CodeCeleste: released class files (NoelFB/Celeste) ·Source/Player/Player.cs#L1660-L1673jumpGraceTimer = 0;
varJumpTimer = VarJumpTime;
…
Speed.Y = JumpSpeed;
Speed += LiftBoost;
varJumpSpeed = Speed.Y;Checked by claude, 2026-10-20 — read Jump() at the pinned commitChecked by a second AI model, 2026-10-27.Checked by a second AI model, 2026-10-28.Cited by: Celeste, Variable jump height
Celeste's gravity is 900 px/s²; each airborne update moves vertical speed toward the fall limit by the gravity times a multiplier times the update's time step. celeste-player/gravity
Value: 900 px/s²
CodeCeleste: released class files (NoelFB/Celeste) ·Source/Player/Player.cs#L24private const float Gravity = 900f;Celeste: released class files (NoelFB/Celeste) · Source/Player/Player.cs#L2957Speed.Y = Calc.Approach(Speed.Y, max, Gravity * mult * Engine.DeltaTime);Checked by claude, 2026-10-20 — read the constant and NormalUpdate's gravity block at the pinned commitChecked by a second AI model, 2026-10-27.Checked by a second AI model, 2026-10-28.15 px/s per update, i.e. 0.25 px/frame² at 60 Hz (exact for a 1/60 s step).
Cited by: Celeste, Gravity, Variable jump height
The half-gravity threshold is 40 px/s, the vertical speed below which (in either direction) holding jump halves gravity. celeste-player/half-grav-threshold
About: Celeste Variable jump height
Value: 40 px/s
CodeCeleste: released class files (NoelFB/Celeste) ·Source/Player/Player.cs#L25private const float HalfGravThreshold = 40f;Checked by claude, 2026-10-20 — read the constant at the pinned commitChecked by a second AI model, 2026-10-27.Checked by a second AI model, 2026-10-28.2/3 px/frame at 60 Hz.
Cited by: Variable jump height
Gravity halves while the absolute vertical speed is under the half-gravity threshold and jump is held (or auto-jump is on), so a held jump hangs at the top. celeste-player/half-grav-rule
About: Celeste Variable jump height
Value: 0.5 × gravity
CodeCeleste: released class files (NoelFB/Celeste) ·Source/Player/Player.cs#L2952float mult = (Math.Abs(Speed.Y) < HalfGravThreshold && (Input.Jump.Check || AutoJump)) ? .5f : 1f;Checked by claude, 2026-10-20 — read NormalUpdate's gravity block at the pinned commitChecked by a second AI model, 2026-10-27.Checked by a second AI model, 2026-10-28.Cited by: Celeste, Gravity, MDA framework, Variable jump height
The variable-jump time, how long holding jump can keep the take-off speed, is 0.2 s. celeste-player/var-jump-time
About: Celeste Variable jump height
Value: 0.2 s
CodeCeleste: released class files (NoelFB/Celeste) ·Source/Player/Player.cs#L51private const float VarJumpTime = .2f;Checked by claude, 2026-10-20 — read the constant at the pinned commitChecked by a second AI model, 2026-10-27.Checked by a second AI model, 2026-10-28.12 updates of exactly 1/60 s, but the float comparison can end it a frame early (see float-timer-frames).
Cited by: Celeste, Variable jump height
While the variable-jump timer runs, holding jump keeps Madeline rising no slower than the speed saved at take-off, canceling gravity; releasing zeroes the timer and cuts no speed. celeste-player/var-jump-rule
About: Celeste Variable jump height
CodeCeleste: released class files (NoelFB/Celeste) ·Source/Player/Player.cs#L2960-L2966//Variable Jumping
if (varJumpTimer > 0)
{
if (AutoJump || Input.Jump.Check)
Speed.Y = Math.Min(Speed.Y, varJumpSpeed);
else
varJumpTimer = 0;Checked by claude, 2026-10-20 — read NormalUpdate's variable-jumping block at the pinned commitChecked by a second AI model, 2026-10-27.Checked by a second AI model, 2026-10-28.Cited by: Celeste, MDA framework, Variable jump height
The normal limit on falling speed is 160 px/s; entering the normal state starts the current limit there and gravity approaches it. celeste-player/max-fall
Value: 160 px/s
CodeCeleste: released class files (NoelFB/Celeste) ·Source/Player/Player.cs#L23public const float MaxFall = 160f;Celeste: released class files (NoelFB/Celeste) · Source/Player/Player.cs#L2760-L2763maxFall = MaxFall;Checked by claude, 2026-10-20 — read the constant, NormalBegin and the max-fall block at the pinned commitChecked by a second AI model, 2026-10-27.Checked by a second AI model, 2026-10-28.2.667 px/frame at 60 Hz (8/3, not a finite decimal).
Cited by: Celeste, Gravity, Variable jump height
Holding down while falling at the normal limit or faster raises the limit toward a fast limit (240 px/s) at 300 px/s²; otherwise it eases back. celeste-player/fast-max-fall
Value: 240 px/s
CodeCeleste: released class files (NoelFB/Celeste) ·Source/Player/Player.cs#L27-L28private const float FastMaxFall = 240f;
private const float FastMaxAccel = 300f;Celeste: released class files (NoelFB/Celeste) · Source/Player/Player.cs#L2911-L2924if (Input.MoveY == 1 && Speed.Y >= mf)
…
maxFall = Calc.Approach(maxFall, mf, FastMaxAccel * Engine.DeltaTime);Checked by claude, 2026-10-20 — read the constants and the max-fall block at the pinned commitChecked by a second AI model, 2026-10-27.Checked by a second AI model, 2026-10-28.4 px/frame at 60 Hz.
The jump grace time, Celeste's coyote time, is 0.1 s. celeste-player/jump-grace-time
About: Celeste Coyote time
Value: 0.1 s
CodeCeleste: released class files (NoelFB/Celeste) ·Source/Player/Player.cs#L48private const float JumpGraceTime = 0.1f;Checked by claude, 2026-10-20 — read the constant at the pinned commitChecked by a second AI model, 2026-10-27.Checked by a second AI model, 2026-10-28.6 updates of exactly 1/60 s, but in practice 5 airborne frames (see float-timer-frames).
Cited by: Celeste, Coyote time
Grounded updates refill the jump grace timer; airborne ones subtract the update's time step before the normal state's update, which jumps on a press while it is above zero. celeste-player/jump-grace-rule
About: Celeste Coyote time
CodeCeleste: released class files (NoelFB/Celeste) ·Source/Player/Player.cs#L713-L720//Jump Grace
if (onGround)
…
jumpGraceTimer = JumpGraceTime;
…
else if (jumpGraceTimer > 0)
jumpGraceTimer -= Engine.DeltaTime;Celeste: released class files (NoelFB/Celeste) · Source/Player/Player.cs#L2970-L2975if (Input.Jump.Pressed)
…
if (jumpGraceTimer > 0)
{
Jump();Checked by claude, 2026-10-20 — read Update's timer block and NormalUpdate's jump block at the pinned commitChecked by a second AI model, 2026-10-27.Checked by a second AI model, 2026-10-28.Cited by: Celeste, Coyote time, Jump, Jump-input forgiveness, Variable jump height
In each update, the player's update ticks both jump timers, the state machine runs the normal state's update (gravity, hold, and new jump), and then the vertical move applies the vertical speed times the time step. celeste-player/update-order
About: Celeste Variable jump height
CodeCeleste: released class files (NoelFB/Celeste) ·Source/Player/Player.cs#L742-L744//Var Jump
if (varJumpTimer > 0)
varJumpTimer -= Engine.DeltaTime;Celeste: released class files (NoelFB/Celeste) · Source/Player/Player.cs#L908base.Update();Celeste: released class files (NoelFB/Celeste) · Source/Player/Player.cs#L934-L935MoveV(Speed.Y * Engine.DeltaTime, onCollideV);Celeste: released class files (NoelFB/Celeste) · Source/Player/Player.cs#L322-L323StateMachine.SetCallbacks(StNormal, NormalUpdate, null, NormalBegin, NormalEnd);Monocle Engine (public source, GitHub mirror JamesMcMahon/monocle-engine) · Monocle/Entity.cs#L95-L98 — public Monocle; an entity's update runs its components (the state machine is one, Player.cs L346)Components.Update();Checked by claude, 2026-10-20 — read Update, the constructor and NormalUpdate at the pinned commit, and Entity.Update in the public Monocle sourceChecked by a second AI model, 2026-10-27.Checked by a second AI model, 2026-10-28.So on the press frame the jump speed already moves her, and the first gravity is applied one update later.
Cited by: Celeste, Gravity, Jump, Variable jump height
In the public Monocle source, the approach function moves a value toward a target by at most a given step without overshooting. celeste-player/approach
Monocle/Util/Calc.cs#L852-L855return val > target ? Math.Max(val - maxMove, target) : Math.Min(val + maxMove, target);Checked by claude, 2026-10-20 — read Calc.Approach at the pinned mirror commitChecked by a second AI model, 2026-10-27.Checked by a second AI model, 2026-10-28.Celeste's own build of Monocle isn't public; this assumes Approach is unchanged.
Cited by: Variable jump height
Celeste's actors sit on whole pixels; the vertical move adds the float distance to a remainder, moves by its rounded value, and keeps the fraction. celeste-player/move-remainder
Actor BasicsxRemainder += amount;
int move = Round(xRemainder); if (move != 0)
{
xRemainder -= move;Celeste: released class files (NoelFB/Celeste) · Source/Player/Player.cs#L935 — the call site; Actor itself is not in the released filesMoveV(Speed.Y * Engine.DeltaTime, onCollideV);Checked by claude, 2026-10-20 — read the article (Wayback copy) and the MoveV call at the pinned commitChecked by a second AI model, 2026-10-27.Checked by a second AI model, 2026-10-28.The article shows MoveX; MoveY/MoveV is the same with Y. It writes Round() without a tie rule; the widget uses C#'s Math.Round (ties to even), which never matters here because the float remainders are never exactly .5.
Cited by: Celeste, Fixed-point arithmetic, Gravity, Subpixel, Variable jump height
Celeste's developers describe the game as locked to 60 updates per second, so the bundled PICO-8 port skips every second frame. celeste-player/fixed-60fps
About: Celeste Variable jump height
Value: 60 Hz
DeveloperCeleste: released class files (NoelFB/Celeste) ·Source/PICO-8/Emulator.cs#L268-L270// this is a pretty dumb hack but because Celeste is locked to 60fps
// and PICO-8 runs at 30 ... we just skip every 2nd frameChecked by claude, 2026-10-20 — read the comment in Emulator.Update at the pinned commitChecked by a second AI model, 2026-10-27.Cited by: Coyote time, Variable jump height
At normal speed, Celeste's time step per update is most likely (float)0.0166667 s, the XNA and FNA default 166,667-tick step, not an exact 1/60 s. celeste-player/delta-time
About: Celeste Coyote time
Value: 0.0166667 s
WikidisputedFNA (XNA 4.0 reimplementation) ·src/Game.cs#L247 — FNA's default; Celeste's own setting is not publicTargetElapsedTime = TimeSpan.FromTicks(166667); // 60fpsCeleste: released class files (NoelFB/Celeste) · Source/Player/Readme.md#L28If you're playing on macOS or Linux you're on FNA, and on consoles you're on MonoGame.Monocle Engine (public source, GitHub mirror JamesMcMahon/monocle-engine) · Monocle/Engine.cs#L198-L199RawDeltaTime = (float)gameTime.ElapsedGameTime.TotalSeconds;
DeltaTime = RawDeltaTime * TimeRate;Coyote Time (DGMI wiki) · Examples — 5 frames matches this step; an exact 1/60 s step would give 6 (float-timer-frames)Celeste (2018) – The player character can jump up to 5 frames after leaving a ledge.Checked by a second AI model, 2026-10-27.Checked by a second AI model, 2026-10-28.Disputed: Not shown in released code. Player.cs only reads Engine.DeltaTime, and the public Monocle source sets IsFixedTimeStep = false (Monocle/Engine.cs L121), unlike the shipped game, which the developers call "locked to 60fps". If the step were exactly 1/60 s, the grace and variable-jump timers would each last one frame longer.
The widget lets the reader switch between the two steps.
Cited by: Coyote time, Variable jump height
The 0.1 s grace and 0.2 s variable-jump timers end on float rounding: a 0.0166667 s step gives 5 and 11 updates, and an exact 1/60 s step gives 6 and 12. celeste-player/float-timer-frames
About: Celeste Coyote time
Value
{
"step0_0166667": {
"grace": 5,
"varJump": 11
},
"step1_60": {
"grace": 6,
"varJump": 12
}
}Source/Player/Player.cs#L713-L720 — grace timerjumpGraceTimer = JumpGraceTime;
…
else if (jumpGraceTimer > 0)
jumpGraceTimer -= Engine.DeltaTime;Celeste: released class files (NoelFB/Celeste) · Source/Player/Player.cs#L742-L744 — variable-jump timerif (varJumpTimer > 0)
varJumpTimer -= Engine.DeltaTime;Coyote Time (DGMI wiki) · ExamplesThe player character can jump up to 5 frames after leaving a ledge.The jump grace time, Celeste's coyote time, is 0.1 s. CodeThe variable-jump time, how long holding jump can keep the take-off speed, is 0.2 s. CodeCeleste: released class files (NoelFB/Celeste) · Source/Player/Player.cs#L1664 — Jump() starts the variable-jump timervarJumpTimer = VarJumpTime;Checked by claude, 2026-11-04 — Read Player.cs L713-720, L742-744 and L1664 at the pinned commit, and the two constants through jump-grace-time and var-jump-time: each timer is a float set to its constant that subtracts Engine.DeltaTime once per update while it is above 0, so the count of updates depends on how the step rounds; the 5/11 and 6/12 counts are the probe's float32 arithmetic.Checked by a second AI model, 2026-10-25.Revised after a check by a second AI model, 2026-11-04: The 0.1 s and 0.2 s limits are cited from their claims, and the step is written as 1/60 s, not (float)(1/60), which is 0 in C#.Probe: probes/jump-physics/jump-heights.mjsAfter six subtractions, 0.1 less six 0.0166667 s steps is about −1.9e−7 (no jump), while 0.1 less six 1/60 s steps is about +3.7e−9 (jump), with each step and each result rounded to float32 (computed). Assumes float32 arithmetic per C# statement.
Cited by: Coyote time, Variable jump height
Simulating the jump code (flat ground, no lift boost, a 0.0166667 s step) gives apexes of 7 px tapped and 27 px held, airtimes 15 and 39 updates; an exact 1/60 s step gives 29 px held in 40. celeste-player/apex-by-hold
About: Celeste Variable jump height
Value
{
"step0_0166667": {
"tap": {
"apex": 7,
"airtime": 15
},
"full": {
"apex": 27,
"airtime": 39
}
},
"step1_60": {
"tap": {
"apex": 7,
"airtime": 15
},
"full": {
"apex": 29,
"airtime": 40
}
}
}Source/Player/Player.cs#L2952-L2966 — gravity, halved near the apex while jump is held, and the variable jump; the simulation is outside space levelsfloat mult = (Math.Abs(Speed.Y) < HalfGravThreshold && (Input.Jump.Check || AutoJump)) ? .5f : 1f;
if (level.InSpace)
mult *= SpacePhysicsMult;
Speed.Y = Calc.Approach(Speed.Y, max, Gravity * mult * Engine.DeltaTime);
…
if (varJumpTimer > 0)
{
if (AutoJump || Input.Jump.Check)
Speed.Y = Math.Min(Speed.Y, varJumpSpeed);
else
varJumpTimer = 0;Celeste: released class files (NoelFB/Celeste) · Source/Player/Player.cs#L1660-L1673 — Jump()varJumpTimer = VarJumpTime;
…
Speed.Y = JumpSpeed;
Speed += LiftBoost;
varJumpSpeed = Speed.Y;A normal jump sets Madeline's vertical speed to the jump speed, −105 px/s. CodeCeleste's gravity is 900 px/s²; each airborne update moves vertical speed toward the fall limit by the gravity times a multiplier times the update's time step. CodeThe half-gravity threshold is 40 px/s, the vertical speed below which (in either direction) holding jump halves gravity. CodeThe variable-jump time, how long holding jump can keep the take-off speed, is 0.2 s. CodeThe normal limit on falling speed is 160 px/s; entering the normal state starts the current limit there and gravity approaches it. CodeChecked by claude, 2026-11-04 — Read Jump() (L1660-1673: the timer, JumpSpeed, lift boost and varJumpSpeed) and the gravity and variable-jump lines (L2952-2966: gravity halved while |Speed.Y| < HalfGravThreshold with jump held, held jump caps Speed.Y at varJumpSpeed while the timer runs, release zeroes it) at the pinned commit, with the constants through the sibling claims; the apexes and airtimes are the probe's simulation of those lines.Checked by a second AI model, 2026-10-25.Revised after a check by a second AI model, 2026-11-04: The half-gravity line is quoted and the jump constants cited.Probe: probes/jump-physics/jump-heights.mjsHeights are whole pixels at Madeline's feet (her Position is the bottom of her hitbox, Player.cs L263).
Cited by: Variable jump height
The developers chose one large file of long methods for the player's behavior, so its tightly ordered logic reads in sequence. celeste-player/one-file
Source/Player/Readme.md#L16In a platformer like Celeste, the player behavior code needs to be very tightly ordered and tuned, and this style of code was a conscious choice to fit the project and team.Checked by claude, 2026-10-20 — read the Player readme at the pinned commitChecked by a second AI model, 2026-10-27.Cited by: Celeste
Madeline's top running speed is 90 px/s, and the same limit applies in the air. celeste-player/max-run
Value: 90 px/s
CodeCeleste: released class files (NoelFB/Celeste) ·Source/Player/Player.cs#L30public const float MaxRun = 90f;Celeste: released class files (NoelFB/Celeste) · Source/Player/Player.cs#L2888float max = Holding == null ? MaxRun : HoldingMaxRun;Checked by claude, 2026-10-21 — read the constant and NormalUpdate's running block at the pinned commitChecked by a second AI model, 2026-10-21.Checked by a second AI model, 2026-10-28.1.5 px/frame at 60 Hz. Carrying an item lowers it to HoldingMaxRun, 70 px/s.
Each update moves Madeline's horizontal speed toward 90 px/s times the d-pad direction by the run acceleration, 1000 px/s² on the ground, so the same rate speeds her up, turns her, and stops her. celeste-player/run-accel
Value: 1000 px/s²
CodeCeleste: released class files (NoelFB/Celeste) ·Source/Player/Player.cs#L31public const float RunAccel = 1000f;Celeste: released class files (NoelFB/Celeste) · Source/Player/Player.cs#L2884float mult = onGround ? 1 : AirMult;Celeste: released class files (NoelFB/Celeste) · Source/Player/Player.cs#L2893-L2894else
Speed.X = Calc.Approach(Speed.X, max * moveX, RunAccel * mult * Engine.DeltaTime); //Approach the max speedChecked by claude, 2026-10-21 — read the constant and NormalUpdate's running block at the pinned commitChecked by a second AI model, 2026-10-21.Checked by a second AI model, 2026-10-28.With the d-pad released the target is 0, so friction equals the acceleration; holding the other way targets −90 px/s at the same rate, with no skid. Calc.Approach doesn't overshoot (approach).
Cited by: Running
Above 90 px/s with the d-pad held the same way, Madeline slows toward 90 px/s at a reduction rate of 400 px/s², instead of the full 1000. celeste-player/run-reduce
Value: 400 px/s²
CodeCeleste: released class files (NoelFB/Celeste) ·Source/Player/Player.cs#L32private const float RunReduce = 400f;Celeste: released class files (NoelFB/Celeste) · Source/Player/Player.cs#L2891-L2892if (Math.Abs(Speed.X) > max && Math.Sign(Speed.X) == moveX)
Speed.X = Calc.Approach(Speed.X, max * moveX, RunReduce * mult * Engine.DeltaTime); //Reduce back from beyond the max speedChecked by claude, 2026-10-21 — read the constant and NormalUpdate's running block at the pinned commitChecked by a second AI model, 2026-10-21.Checked by a second AI model, 2026-10-28.Releasing the d-pad, or holding the other way, drops her by the full RunAccel instead. On flat ground only the jump's boost (jump-hboost) or a dash takes her past 90 px/s.
In the air both running rates are multiplied by an air multiplier, 0.65, so steering, stopping, and turning take 650 px/s², and slowing from above the cap 260 px/s². celeste-player/air-mult
About: Celeste Air control
Value: 0.65 ×
CodeCeleste: released class files (NoelFB/Celeste) ·Source/Player/Player.cs#L33private const float AirMult = .65f;Celeste: released class files (NoelFB/Celeste) · Source/Player/Player.cs#L2884float mult = onGround ? 1 : AirMult;Checked by claude, 2026-10-21 — read the constant and NormalUpdate's running block at the pinned commitChecked by a second AI model, 2026-10-21.Checked by a second AI model, 2026-10-28.Releasing the d-pad in the air targets 0, so Madeline doesn't coast; she stops in 9 frames from 90 px/s (run-frames).
Cited by: Air control
Holding Down on the ground ducks Madeline; while ducked, her speed moves toward 0 at a duck friction of 500 px/s², whatever the d-pad holds. celeste-player/duck
Value: 500 px/s²
CodeCeleste: released class files (NoelFB/Celeste) ·Source/Player/Player.cs#L40private const float DuckFriction = 500f;Celeste: released class files (NoelFB/Celeste) · Source/Player/Player.cs#L2831-L2837if (Ducking)
{
if (onGround && Input.MoveY != 1)
{
if (CanUnDuck)
{
Ducking = false;Celeste: released class files (NoelFB/Celeste) · Source/Player/Player.cs#L2858-L2860else if(onGround && Input.MoveY == 1 && Speed.Y >= 0)
{
Ducking = true;Celeste: released class files (NoelFB/Celeste) · Source/Player/Player.cs#L2880-L2881if (Ducking && onGround)
Speed.X = Calc.Approach(Speed.X, 0, DuckFriction * Engine.DeltaTime);Checked by claude, 2026-10-21 — read NormalUpdate's ducking and running blocks at the pinned commitChecked by a second AI model, 2026-10-21.Checked by a second AI model, 2026-10-28.The duck starts before the running block in the same update, so the press frame already slides. Releasing Down on the ground stands her up when there is room. The d-pad still turns her (facing). Ducking swaps in the 8 × 6 px hitbox (collision-box).
Jumping while ducked keeps Madeline's 8 × 6 px ducking hitbox until she is falling with room to stand, because the jump function leaves her ducking flag alone and only the falling check, which tests whether she has room to stand, clears it in the air. celeste-player/duck-jump
Source/Player/Player.cs#L1660-L1673public void Jump(bool particles = true, bool playSfx = true)
…
Speed.X += JumpHBoost * moveX;
Speed.Y = JumpSpeed;Celeste: released class files (NoelFB/Celeste) · Source/Player/Player.cs#L927-L929//Falling unducking
if (Speed.Y > 0 && CanUnDuck && Collider != starFlyHitbox && !onGround)
Ducking = false;Checked by claude, 2026-10-21 — read Jump(), NormalUpdate's ducking block (which acts only on the ground) and Update's falling check at the pinned commitChecked by a second AI model, 2026-10-21.Checked by a second AI model, 2026-10-22.Checked by a second AI model, 2026-10-28.A ducked jump is otherwise a normal jump, with the same speed and boost. onGround in the falling check is the value read at the start of the update.
The jump function adds a horizontal boost, 40 px/s, times the d-pad direction to Madeline's horizontal speed, after that update's running step, so a running jump leaves at 130 px/s. celeste-player/jump-hboost
Value: 40 px/s
CodeCeleste: released class files (NoelFB/Celeste) ·Source/Player/Player.cs#L50private const float JumpHBoost = 40f;Celeste: released class files (NoelFB/Celeste) · Source/Player/Player.cs#L1670Speed.X += JumpHBoost * moveX;Celeste: released class files (NoelFB/Celeste) · Source/Player/Player.cs#L2969-L2975//Jumping
if (Input.Jump.Pressed)
…
if (jumpGraceTimer > 0)
{
Jump();Checked by claude, 2026-10-21 — read Jump() and NormalUpdate at the pinned commit; the running block (L2879-L2895) comes before the jump blockChecked by a second AI model, 2026-10-21.Checked by a second AI model, 2026-10-28.The boost ignores which way she was moving, so a jump with the d-pad against her motion slows her by 40 px/s more. Released d-pad, no boost. Above 90 px/s the air's RunReduce brings her back down while the d-pad stays held (run-reduce, air-mult).
On a landing in her normal state while not dash-attacking, the code zeroes Madeline's vertical speed and keeps her horizontal speed, unless her latest dash went down and to the side: then the landing multiplies her horizontal speed by 1.2 and makes her duck, once per dash. While dash-attacking, a landing on a dream block can send her into the dream dash first, before either speed changes. The landing update has already used the air rates, and the ground rates start on the next. celeste-player/landing
Source/Player/Player.cs#L2631-L2632 — the end of OnCollideVdashAttackTimer = 0;
Speed.Y = 0;Celeste: released class files (NoelFB/Celeste) · Source/Player/Player.cs#L636-L644else if (Speed.Y >= 0)
{
Platform first = CollideFirst<Solid>(Position + Vector2.UnitY);
…
onGround = true;Celeste: released class files (NoelFB/Celeste) · Source/Player/Player.cs#L931-L935//Physics
…
MoveH(Speed.X * Engine.DeltaTime, onCollideH);
…
MoveV(Speed.Y * Engine.DeltaTime, onCollideV);Celeste: released class files (NoelFB/Celeste) · Source/Player/Player.cs#L2453-L2552 — OnCollideV: the other states' branches, then a landing's dream-dash check and dash slideprivate void OnCollideV(CollisionData data)
{
if (StateMachine.State == StStarFly)
…
else if (StateMachine.State == StSwim)
…
else if (StateMachine.State == StDreamDash)
return;
…
if (DashAttacking && data.Direction.Y == Math.Sign(DashDir.Y))
…
else if (StateMachine.State == StSummitLaunch)
…Celeste: released class files (NoelFB/Celeste) · Source/Player/Player.cs#L44private const float DodgeSlideSpeedMult = 1.2f;Celeste: released class files (NoelFB/Celeste) · Source/Player/Player.cs#L2642-L2646private bool DreamDashCheck(Vector2 dir)
{
if (Inventory.DreamDash && DashAttacking && (dir.X == Math.Sign(DashDir.X) || dir.Y == Math.Sign(DashDir.Y)))
{
var block = CollideFirst<DreamBlock>(Position + dir);Celeste: released class files (NoelFB/Celeste) · Source/Player/Player.cs#L3564 — each dash sets the direction the slide testsDashDir = dir;Checked by claude, 2026-11-04 — read Update's ground check and physics calls, and OnCollideV whole at the pinned commit: the feather, swim, dream-dash, dash-block and summit-launch branches come first; a landing (Speed.Y > 0) then has the dash corner correction (dash states), DreamDashCheck (needs DashAttacking) and the dash slide, which tests DashDir as the latest dash set it and clears its Y; then Speed.Y = 0Checked by a second AI model, 2026-10-21.Revised after a check by a second AI model, 2026-11-04: Landing after a down-and-sideways dash multiplies her horizontal speed by 1.2 and ducks her; a dream-block landing enters the dream dash first.onGround is read once, at the start of Update, before anything moves. A fall that ends exactly on the floor pixel doesn't collide, so Speed.Y keeps its value for one grounded update, where gravity doesn't run, and is zeroed by the next MoveV; horizontally that update already counts as ground. The other states' landings (feather flight, swimming, a dash's corner correction, dash blocks) aren't covered here.
Each update starts by looking for ground; while her vertical speed is 0 or more, Madeline is on the ground if her hitbox, moved 1 px down, overlaps a solid or a jump-through platform. celeste-player/ground-check
About: Celeste Coyote time
CodeCeleste: released class files (NoelFB/Celeste) ·Source/Player/Player.cs#L636-L651else if (Speed.Y >= 0)
{
Platform first = CollideFirst<Solid>(Position + Vector2.UnitY);
if (first == null)
first = CollideFirstOutside<JumpThru>(Position + Vector2.UnitY);
…
onGround = true;
…
else
onGround = OnSafeGround = false;Checked by claude, 2026-10-22 — read Update's ground check at the pinned commitChecked by a second AI model, 2026-10-27.Checked by a second AI model, 2026-10-28.With an 8 px hitbox centered on her X (collision-box), she stands on a floor until her X is 4 px or more past its edge. A rising Madeline (Speed.Y < 0) is never on the ground. The dream-dash state skips the check.
Madeline moves one pixel at a time and stops at the pixel before a solid, then the collision callback runs. celeste-player/wall-stop
Actor BasicsIf we do hit a wall, we halt movement and call the collision delegate that was passed in.Revised after a check by a second AI model, 2026-10-27: Split: the pixel steps are Thorson's post (T2); the zeroing is the code (wall-hit, T3), whose exception now cites the dash-block and dream-block lines.The released code doesn't include Actor, so the pixel-by-pixel move is from Thorson's post on TowerFall and Celeste, which shows MoveX subtracting the whole move from the remainder before it steps. What Madeline's callback does on a sideways hit is wall-hit.
When Madeline hits a solid sideways in the normal state, the horizontal collision handler zeroes her horizontal speed, unless, while she's dash-attacking, a dash block rebounds, bounces, or ignores her, or a dream block takes her in. celeste-player/wall-hit
Source/Player/Player.cs#L2440-L2442 — the end of OnCollideH, the callback Update passes to MoveHdata.Hit.OnCollide(data.Direction);
Speed.X = 0;Celeste: released class files (NoelFB/Celeste) · Source/Player/Player.cs#L2378-L2395 — the dash-block branch, which returns before the zeroing on Rebound, Bounce, or Ignoreif (DashAttacking && data.Hit != null && data.Hit.OnDashCollide != null && data.Direction.X == Math.Sign(DashDir.X))Celeste: released class files (NoelFB/Celeste) · Source/Player/Player.cs#L2424-L2428 — a dream block switches her to the dream dash and returnsif (DreamDashCheck(Vector2.UnitX * Math.Sign(Speed.X)))Celeste: released class files (NoelFB/Celeste) · Source/Player/Player.cs#L2644 — DreamDashCheck, which needs a dash attackif (Inventory.DreamDash && DashAttacking && (dir.X == Math.Sign(DashDir.X) || dir.Y == Math.Sign(DashDir.Y)))Checked by claude, 2026-10-27 — read OnCollideH (L2359-L2451) and DreamDashCheck (L2642-L2648) at the pinned commitRevised after a check by a second AI model, 2026-10-27.Checked by a second AI model, 2026-10-28.Before the zeroing, OnCollideH returns early in the feather and dream-dash states, on a dash block's rebound, bounce, or ignore while dash-attacking, on the dash's corner correction and duck (dash states only), and on a dream block. It also starts wallSpeedRetentionTimer (0.06 s): if the way clears within it, the speed comes back.
While Madeline is in control and isn't climbing, picking something up, red-dashing, or in the squash after a red dash hits a solid, she faces whichever way the d-pad points, on the ground or in the air, updated at the start of each update before her speed changes. celeste-player/facing
Source/Player/Player.cs#L786-L794//Facing
if (moveX != 0 && InControl
&& StateMachine.State != StClimb && StateMachine.State != StPickup && StateMachine.State != StRedDash && StateMachine.State != StHitSquash)
{
var to = (Facings)moveX;
…
Facing = to;Celeste: released class files (NoelFB/Celeste) · Source/Player/Player.cs#L2442-L2449 — OnCollideH; OnCollideV does the same at L2631-L2638Speed.X = 0;
dashAttackTimer = 0;
if (StateMachine.State == StRedDash)
{
…
StateMachine.State = StHitSquash;Checked by claude, 2026-11-04 — read Update's facing block (L786-794) with its five conditions, and the red dash's switch to the squash state in OnCollideH and OnCollideV, at the pinned commitChecked by a second AI model, 2026-10-21.Revised after a check by a second AI model, 2026-11-04: Facing follows the d-pad only while she is in control and not climbing, picking up, red-dashing or in its squash.So she turns at once, even while sliding the other way or ducked.
Simulating the code, Madeline reaches 90 px/s from a standstill in 6 updates on the ground and 9 in the air, and needs 11 and 17 to turn from 90 to −90 px/s. celeste-player/run-frames
Value
{
"ground": {
"accel": 6,
"stop": 6,
"turn": 11,
"duck": 11
},
"air": {
"accel": 9,
"stop": 9,
"turn": 17,
"airborne": true
}
}Source/Player/Player.cs#L2879-L2895 — running and friction; the simulation carries nothing, outside cold core mode and space//Running and Friction
if (Ducking && onGround)
Speed.X = Calc.Approach(Speed.X, 0, DuckFriction * Engine.DeltaTime);
else
{
float mult = onGround ? 1 : AirMult;
if (onGround && level.CoreMode == Session.CoreModes.Cold)
mult *= .3f;
float max = Holding == null ? MaxRun : HoldingMaxRun;
if (level.InSpace)
max *= SpacePhysicsMult;
if (Math.Abs(Speed.X) > max && Math.Sign(Speed.X) == moveX)
…Monocle Engine (public source, GitHub mirror JamesMcMahon/monocle-engine) · Monocle/Util/Calc.cs#L852-L855 — Calc.Approachreturn val > target ? Math.Max(val - maxMove, target) : Math.Min(val + maxMove, target);Madeline's top running speed is 90 px/s, and the same limit applies in the air. CodeEach update moves Madeline's horizontal speed toward 90 px/s times the d-pad direction by the run acceleration, 1000 px/s² on the ground, so the same rate speeds her up, turns her, and stops her. CodeIn the air both running rates are multiplied by an air multiplier, 0.65, so steering, stopping, and turning take 650 px/s², and slowing from above the cap 260 px/s². CodeHolding Down on the ground ducks Madeline; while ducked, her speed moves toward 0 at a duck friction of 500 px/s², whatever the d-pad holds. CodeChecked by claude, 2026-11-04 — Read the running block (Player.cs L2879-2895: ducked on the ground, Calc.Approach toward 0 by DuckFriction; otherwise toward max·moveX by RunReduce above max the same way, else RunAccel, times 1 on the ground or AirMult in the air) and Calc.Approach (Calc.cs L852-855) at the pinned commits, with the constants through the sibling claims; the update counts are the probe's simulation.Checked by a second AI model, 2026-10-21.Checked by a second AI model, 2026-10-25.Revised after a check by a second AI model, 2026-11-04: The turn branch and the running block are quoted and the run constants cited.Probe: probes/jump-physics/celeste-movement.mjsComputed: 90 / (1000/60) = 5.4, so 6; 90 / (650/60) = 8.3, so 9; 180 / 16.67 = 10.8; 180 / 10.83 = 16.6; 90 / (500/60) = 10.8. A turn takes the acceleration branch, since the speed's sign differs from the d-pad's.
Cited by: Running
Simulating the code, a running jump leaves at 130 px/s and slows back to 90 px/s in 10 airborne updates with the d-pad held; a jump from a standstill with the d-pad held leaves at 56.67 px/s. celeste-player/takeoff-frames
Value: running 130 · standing 56.67 · back to 90 10 (px/s; updates)
CodeCeleste: released class files (NoelFB/Celeste) ·Source/Player/Player.cs#L1670Speed.X += JumpHBoost * moveX;Celeste: released class files (NoelFB/Celeste) · Source/Player/Player.cs#L2891-L2892 — RunReduce in the airif (Math.Abs(Speed.X) > max && Math.Sign(Speed.X) == moveX)
Speed.X = Calc.Approach(Speed.X, max * moveX, RunReduce * mult * Engine.DeltaTime);The jump function adds a horizontal boost, 40 px/s, times the d-pad direction to Madeline's horizontal speed, after that update's running step, so a running jump leaves at 130 px/s. CodeAbove 90 px/s with the d-pad held the same way, Madeline slows toward 90 px/s at a reduction rate of 400 px/s², instead of the full 1000. CodeIn the air both running rates are multiplied by an air multiplier, 0.65, so steering, stopping, and turning take 650 px/s², and slowing from above the cap 260 px/s². CodeEach update moves Madeline's horizontal speed toward 90 px/s times the d-pad direction by the run acceleration, 1000 px/s² on the ground, so the same rate speeds her up, turns her, and stops her. CodeMadeline's top running speed is 90 px/s, and the same limit applies in the air. CodeChecked by claude, 2026-11-04 — read L1670 and L2891-2892 and the constants through the sibling claims, and ran the probe for both delta-time steps; 40 / (400 × 0.65 / 60) = 9.2, so 10 (computed); the standing jump's press update accelerates 1000/60 = 16.67 px/s on the ground, then the jump adds 40 (jump-hboost)Checked by a second AI model, 2026-10-21.Revised after a check by a second AI model, 2026-11-04: The second entry now has its quote, and the constants are cited.Probe: probes/jump-physics/celeste-movement.mjsSimulating a hop steered back with Left, the landing update still changes Madeline's speed at the air rate, −10.83 px/s, and the next at the ground rate, −16.67 px/s. celeste-player/landing-frames
Value: frame 14 · air -10.83 · ground -16.67 (updates after the press; px/s per update)
CodeCeleste: released class files (NoelFB/Celeste) ·Source/Player/Player.cs#L636-L644 — the ground check at the start of Updateelse if (Speed.Y >= 0)
{
Platform first = CollideFirst<Solid>(Position + Vector2.UnitY);
…
onGround = true;Celeste: released class files (NoelFB/Celeste) · Source/Player/Player.cs#L2884-L2894 — the run rate follows onGround as set at the start of the updatefloat mult = onGround ? 1 : AirMult;
…
if (Math.Abs(Speed.X) > max && Math.Sign(Speed.X) == moveX)
Speed.X = Calc.Approach(Speed.X, max * moveX, RunReduce * mult * Engine.DeltaTime);
else
Speed.X = Calc.Approach(Speed.X, max * moveX, RunAccel * mult * Engine.DeltaTime);Each update moves Madeline's horizontal speed toward 90 px/s times the d-pad direction by the run acceleration, 1000 px/s² on the ground, so the same rate speeds her up, turns her, and stops her. CodeIn the air both running rates are multiplied by an air multiplier, 0.65, so steering, stopping, and turning take 650 px/s², and slowing from above the cap 260 px/s². CodeChecked by claude, 2026-11-04 — Read the ground check at the start of Update (Player.cs L636-644, before the move) and the run rate's multiplier and step (L2884-2894) at the pinned commit, with RunAccel and AirMult through the sibling claims: the update whose move lands still runs with onGround false, so at the air rate, −1000 × 0.65 / 60 = −10.83 px/s, and the next at −1000/60 = −16.67 (computed); the speeds are the probe's simulation.Checked by a second AI model, 2026-10-21.Checked by a second AI model, 2026-10-25.Revised after a check by a second AI model, 2026-11-04: The ground-or-air rate lines are quoted and the constants cited.Probe: probes/jump-physics/celeste-movement.mjsA frame-by-frame model of the player's update and its normal state on flat ground matches a statement-by-statement float32 simulation of the released code on every frame of 300 random input scripts, for both delta-time steps. celeste-player/movement-rule
Value
{
"run": {
"max": 90,
"accel": 1000,
"reduce": 400,
"air": 0.65,
"duck": 500
},
"jump": {
"speed": -105,
"hboost": 40,
"varTime": 0.2,
"grace": 0.1,
"gravity": 900,
"halfGravBelow": 40,
"maxFall": 160,
"fastMaxFall": 240,
"fastMaxAccel": 300
}
}Source/Player/Player.cs#L601-L935 — Update, through MoveH and MoveVMoveH(Speed.X * Engine.DeltaTime, onCollideH);
…
MoveV(Speed.Y * Engine.DeltaTime, onCollideV);Celeste: released class files (NoelFB/Celeste) · Source/Player/Player.cs#L2784-L3008 — NormalUpdateSpeed.X = Calc.Approach(Speed.X, max * moveX, RunAccel * mult * Engine.DeltaTime);Celeste: released class files (NoelFB/Celeste) · Source/Player/Player.cs#L1660-L1673 — Jump()Speed.X += JumpHBoost * moveX;
Speed.Y = JumpSpeed;Monocle Engine (public source, GitHub mirror JamesMcMahon/monocle-engine) · Monocle/Util/Calc.cs#L852-L855 — Calc.Approachreturn val > target ? Math.Max(val - maxMove, target) : Math.Min(val + maxMove, target);Celeste and TowerFall Physics · Actor Basicswe only move when the rounded remainder is non-zeroChecked by claude-agent, 2026-10-25 — Read Update (Player.cs L601-935: ground check, timers, facing, the unduck check, then MoveH and MoveV), NormalUpdate (L2784-3008: ducking, running, max fall, gravity, variable jump, the jump press), Jump() (L1660-1673), and Calc.Approach at the pinned commits; the frame-by-frame agreement is the probe's, and no running game was measured.Checked by a second AI model, 2026-10-21.Checked by a second AI model, 2026-10-25.Checked by a second AI model, 2026-10-28.Probe: probes/jump-physics/celeste-movement.mjsOne update, dt the step (delta-time), speeds in px/s, y down, position whole pixels plus a float remainder per axis, d the d-pad's X (−1, 0, 1). Start: onGround = Speed.Y ≥ 0 and floor 1 px below. Grace timer = 0.1 on the ground, else − dt if positive; var-jump timer − dt if positive; if d ≠ 0, face d. Duck: on the ground, ducked = Down held and (already ducked or Speed.Y ≥ 0). Horizontal: ducked on the ground → Speed.X approaches 0 by 500·dt; else with m = 1 on the ground, 0.65 in the air: if |Speed.X| > 90 and its sign is d, approach 90·d by 400·m·dt, else approach 90·d by 1000·m·dt. Vertical, as the jump claims say: max fall approaches 240 (Down held and Speed.Y ≥ 160) or 160 by 300·dt; in the air, gravity approaches max fall by 900·dt, halved if |Speed.Y| < 40 with jump held; while the var-jump timer runs, jump held keeps Speed.Y ≤ −105, released zeroes the timer. A jump press with the grace timer above 0: grace = 0, var-jump timer = 0.2, Speed.X += 40·d, Speed.Y = −105. Then in the air with Speed.Y > 0, unduck. Move: remainder += Speed·dt, step = round(remainder) (ties to even), remainder −= step, move by step; a vertical step that would pass the floor stops on it and sets Speed.Y = 0. Arithmetic is float32. Walls, slopes, dashes, climbing, wall jumps, lift boost, wind, water, and the jump input buffer are outside the model.
Madeline's hitbox is 8 px wide and 11 px tall, centered on her X with her position at its bottom; ducking shrinks it to 8 × 6 px. celeste-player/collision-box
Value
{
"w": 8,
"h": 11,
"duckW": 8,
"duckH": 6,
"hurt": {
"w": 8,
"h": 9,
"duckH": 4
}
}Source/Player/Player.cs#L263-L266private readonly Hitbox normalHitbox = new Hitbox(8, 11, -4, -11);
private readonly Hitbox duckHitbox = new Hitbox(8, 6, -4, -6);
private readonly Hitbox normalHurtbox = new Hitbox(8, 9, -4, -11);
private readonly Hitbox duckHurtbox = new Hitbox(8, 4, -4, -6);Celeste: released class files (NoelFB/Celeste) · Source/Player/Player.cs#L2113-L2131public bool Ducking
…
Collider = duckHitbox;
hurtbox = duckHurtbox;Monocle Engine (public source, GitHub mirror JamesMcMahon/monocle-engine) · Monocle/Colliders/Hitbox.cs#L11-L54 — the argument order, and the corner the offset setspublic Hitbox(float width, float height, float x = 0, float y = 0)
…
Position.X = x;
Position.Y = y;
…
public override float Left
{
get { return Position.X; }
…
public override float Top
{
get { return Position.Y; }
…Checked by claude, 2026-11-04 — read the hitbox fields and the Ducking property at the pinned commit, and Monocle's Hitbox constructor and edges: left = x, top = y, right = x + width, bottom = y + height, so (8, 11, −4, −11) spans −4 to 4 across and −11 to 0 up from her position (computed)Revised after a check by a second AI model, 2026-10-21.Revised after a check by a second AI model, 2026-11-04: Monocle's Hitbox constructor is quoted for the argument order.Monocle's Hitbox(width, height, x, y) takes the offset of its top-left corner, here (−4, −11) from the position, so the box spans x − 4 to x + 4 and the 11 px above her feet. The hurtbox, which hazards test, has the same top and stops 2 px above her feet: Hitbox(8, 9, −4, −11), and ducking (8, 4, −4, −6).
Cited by: Hitbox
When Madeline rises into a solid in the normal state, she is moved 1 px up and 1 to 4 px sideways to the first spot where her hitbox fits, keeping her speed. She tries leftward first unless she is moving right, then rightward unless she is moving left. celeste-player/corner-correction
Value: 4 px
CodeCeleste: released class files (NoelFB/Celeste) ·Source/Player/Player.cs#L53private const int UpwardCornerCorrection = 4;Celeste: released class files (NoelFB/Celeste) · Source/Player/Player.cs#L2585-L2611 — in OnCollideV; the rightward loop is the same with `i`if (Speed.Y < 0)
{
//Corner Correction
{
if (Speed.X <= 0)
{
for (int i = 1; i <= UpwardCornerCorrection; i++)
{
if (!CollideCheck<Solid>(Position + new Vector2(-i, -1)))
{
Position += new Vector2(-i, -1);
return;
…Celeste: released class files (NoelFB/Celeste) · Source/Player/Player.cs#L931-L935 — the horizontal move comes first, so the correction reads `Speed.X` after it//Physics
…
MoveH(Speed.X * Engine.DeltaTime, onCollideH);
…
MoveV(Speed.Y * Engine.DeltaTime, onCollideV);Checked by claude, 2026-10-22 — read the constant, OnCollideV's rising branch, and Update's physics calls at the pinned commitRevised after a check by a second AI model, 2026-10-22.Checked by a second AI model, 2026-10-28.The return leaves OnCollideV before it zeroes Speed.Y, so a corrected rise goes on at full speed and the variable-jump timer runs on. Only the destination is tested, with the hitbox she has (8 × 6 px if ducked). The horizontal move runs first, and a wall hit there zeroes Speed.X, so after one she tries both sides. The two sides can't both fit, because the solid she hit would have to be cleared both ways, so the order never changes where she goes; what matters is which sides she tries: moving right, she is never nudged left. OnCollideV returns before this in the feather, swim, and dream-dash states (L2455-L2473), and a dash into a block with its own dash response can return first (L2476-L2502). The dash has its own corrections (DashCornerCorrection).
When Madeline rises into a solid in the normal state and no corner correction fits, her vertical speed is zeroed. The variable-jump timer is zeroed too, unless it still reads at least the variable-jump time less a ceiling grace, 0.2 − 0.05 s, which spares hits in the jump's first 0.05 s. celeste-player/ceiling-hit
About: Celeste Variable jump height
Value: 0.05 s
CodeCeleste: released class files (NoelFB/Celeste) ·Source/Player/Player.cs#L52private const float CeilingVarJumpGrace = .05f;Celeste: released class files (NoelFB/Celeste) · Source/Player/Player.cs#L2614-L2615if (varJumpTimer < VarJumpTime - CeilingVarJumpGrace)
varJumpTimer = 0;Celeste: released class files (NoelFB/Celeste) · Source/Player/Player.cs#L2631-L2632 — the end of OnCollideV, reached when no corner correction returneddashAttackTimer = 0;
Speed.Y = 0;Checked by claude, 2026-10-22 — read the constant and OnCollideV's rising branch and end at the pinned commitRevised after a check by a second AI model, 2026-10-22.Checked by a second AI model, 2026-10-28.With the timer spared and jump held, the next update's variable-jump rule sets her speed back to varJumpSpeed, so she pushes up against the ceiling again and gets another try at the corner correction, until the timer falls below 0.15 s (ceiling-grace-frames). Without jump held, the timer is already 0. Before the zeroing, a dream-block check can switch her to the dream dash and return (L2619-L2624); the feather, swim, and dream-dash states return earlier (L2455-L2473).
A ceiling hit spares the variable-jump timer on the jump's own update and the 2 after it with a 0.0166667 s step, and the 3 after it with an exact 1/60 s step. Three subtractions of the 1/60 s step leave the timer at exactly the float 0.15, which is not below the limit. celeste-player/ceiling-grace-frames
About: Celeste Variable jump height
Value: step 0 0166667 3 · step 1 60 4
CodeCeleste: released class files (NoelFB/Celeste) ·Source/Player/Player.cs#L742-L744//Var Jump
if (varJumpTimer > 0)
varJumpTimer -= Engine.DeltaTime;Celeste: released class files (NoelFB/Celeste) · Source/Player/Player.cs#L2614-L2615if (varJumpTimer < VarJumpTime - CeilingVarJumpGrace)
varJumpTimer = 0;When Madeline rises into a solid in the normal state and no corner correction fits, her vertical speed is zeroed. The variable-jump timer is zeroed too, unless it still reads at least the variable-jump time less a ceiling grace, 0.2 − 0.05 s, which spares hits in the jump's first 0.05 s. CodeThe variable-jump time, how long holding jump can keep the take-off speed, is 0.2 s. CodeChecked by claude, 2026-11-04 — read Player.cs L742-744 and L2614-2615 and the two constants through ceiling-hit and var-jump-time, and ran the probe: the statement-by-statement float32 simulation jumps with jump held under ceilings at every height from 1 to 40 px above her head, for both steps; a simulation of the released code, not a measurement of the game, which doesn't run hereChecked by a second AI model, 2026-10-22.Revised after a check by a second AI model, 2026-11-04: The ceiling-grace test is quoted and its constants cited.Probe: probes/jump-physics/celeste-movement.mjsCounted with the jump's update as the first. The limit, the variable-jump time less the ceiling grace, is a constant of two const floats, stored as the float 0.15000000596. The timer after three steps is 0.14999992 with the 0.0166667 s step and 0.15000000596 with the 1/60 s step, both in float32 (computed). Which step the game uses is delta-time's open question.
Madeline stands up from a duck only where her standing 8 × 11 px hitbox fits. Under a solid that's too low, releasing Down on the ground in the normal state, or starting to fall, leaves her ducked. On the ground in the normal state, if she is stopped, she slides at 50 px/s toward room within 4 px. celeste-player/can-unduck
Source/Player/Player.cs#L2136-L2147public bool CanUnDuck
…
if (!Ducking)
return true;
…
Collider = normalHitbox;
bool ret = !CollideCheck<Solid>();Celeste: released class files (NoelFB/Celeste) · Source/Player/Player.cs#L2831-L2851if (Ducking)
{
if (onGround && Input.MoveY != 1)
{
if (CanUnDuck)
{
Ducking = false;
…
else if (Speed.X == 0)
{
for (int i = DuckCorrectCheck; i > 0; i--)
{
…Celeste: released class files (NoelFB/Celeste) · Source/Player/Player.cs#L41-L42private const int DuckCorrectCheck = 4;
private const float DuckCorrectSlide = 50f;Celeste: released class files (NoelFB/Celeste) · Source/Player/Player.cs#L927-L929//Falling unducking
if (Speed.Y > 0 && CanUnDuck && Collider != starFlyHitbox && !onGround)
Ducking = false;Checked by claude, 2026-10-22 — read CanUnDuck, NormalUpdate's ducking block, and Update's falling check at the pinned commitRevised after a check by a second AI model, 2026-10-22.Checked by a second AI model, 2026-10-28.The slide checks 4 px out first, then nearer, each distance to the right before the left. A press in the grace window jumps without checking (jump-grace-rule), so she can jump out from under a low ceiling. She rises in the 6 px ducking box (duck-jump), which reaches 5 px higher before it hits a ceiling.
On stages with floating blocks, a frame-by-frame model of Madeline rising into solids, her ducking box, and the check for room to stand matches a statement-by-statement float32 simulation of the released code on every frame of random stages and input scripts. celeste-player/ceiling-rule
Source/Player/Player.cs#L2453-L2640 — OnCollideVif (Speed.Y < 0)
…
if (!CollideCheck<Solid>(Position + new Vector2(-i, -1)))
{
Position += new Vector2(-i, -1);
return;
…
Speed.Y = 0;Celeste: released class files (NoelFB/Celeste) · Source/Player/Player.cs#L2359-L2451 — OnCollideHCeleste: released class files (NoelFB/Celeste) · Source/Player/Player.cs#L2136-L2149 — CanUnDuckCollider = normalHitbox;
bool ret = !CollideCheck<Solid>();Celeste: released class files (NoelFB/Celeste) · Source/Player/Player.cs#L2831-L2862 — NormalUpdate's ducking blockif (onGround && Input.MoveY != 1)
{
if (CanUnDuck)Celeste: released class files (NoelFB/Celeste) · Source/Player/Player.cs#L927-L935 — the falling check and the movesif (Speed.Y > 0 && CanUnDuck && Collider != starFlyHitbox && !onGround)
Ducking = false;Celeste and TowerFall Physics · Actor Basics — the article shows MoveX; Celeste's Actor class is not in the released filesIf we do hit a wall, we halt movement and call the collision delegate that was passed in.Celeste and TowerFall Physics · Actor Basics — the whole move leaves the remainder before the pixel loop, so pixels left at a hit are droppedxRemainder += amount;
int move = Round(xRemainder); if (move != 0)
{
xRemainder -= move;Checked by claude-agent, 2026-10-25 — Read OnCollideV (Player.cs L2453-2640: rising, the upward corner correction moves her and returns before Speed.Y = 0; otherwise Speed.Y = 0), CanUnDuck (L2136-2149: the normal hitbox must fit), NormalUpdate's ducking block (L2831-2862), and the falling unduck before the moves (L927-935) at the pinned commit; both model and simulation are the probe's, and no running game was measured.Revised after a check by a second AI model, 2026-10-22.Checked by a second AI model, 2026-10-25.Checked by a second AI model, 2026-10-28.Probe: probes/jump-physics/celeste-movement.mjsThe model adds to movement-rule. Each pixel of a move tests her box, 11 px tall or 6 ducked, one pixel ahead. When a rising move hits a solid, the corner correction (corner-correction) ends the move and keeps her speed. Otherwise the ceiling hit (ceiling-hit) zeroes her vertical speed and ends the move. The pixels left in that update's move are dropped, not put back in the remainder: the article's MoveX code subtracts the whole move from the remainder before the loop and breaks out of it on a hit. Before the moves, a ducked Madeline unducks only where she fits (can-unduck), in the air once Speed.Y > 0 and on the ground on releasing Down. Normal state only. Outside the model, as on flat ground: wall slides, wall jumps (a press in the air beside a block's side), and the speed a wall hit keeps for 0.06 s (wallSpeedRetentionTimer).