Public: anyone can read this; the crew can change it.
forked from trevato/cs
The solver moves behind the door: src/engine/physics.ts, and Counter-Strike's numbers become src/client/movement.ts #123
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
forked from trevato/cs
The second of three steps: with no constant left inside it, the solver moves to
src/engine/physics.tsunchanged, and CS's numbers stay in the game.Waits for the step that makes the tuning arguments. By the time this starts, the move is a rename and a set of import lines — which is the only kind of move a digest can guarantee.
Done looks like
src/client/physics.tsbecomessrc/engine/physics.ts, line for line apart from its imports and its docstring:Body,Wish,MoveTuning,Hull,accelerate,airAccelerate,move,groundUnder,stuck,eyeHeight,hullHeight. It holds no Counter-Strike number and names the game nowhere.src/client/movement.tsholdsCS_MOVE,CS_HULLandfallDamage— CS's curve, not physics — and nothing else.Boxcomes from the engine'strace.ts, not fromsrc/client/level.ts: a solver that imports a game's level module cannot be behind the door.src/engine/index.tsgains the physics paragraph and these exports;boundary.test.ts(the pinned list),purity.test.tsandsrc/independence.test.tsstay green with no rule loosened, and the door stays cheap to import.src/client/physics.test.tsbecomessrc/client/movement.test.tswith every assertion it has today intact — a test that knows CS's numbers belongs to the game.src/client/replay.test.tsare unchanged, bit for bit, andsrc/range/pin.ts's digest too.bun testgreen with its time stated; the bundle rebuilt withbun run scripts/build.ts, the newstatic/app.<hash>.jscommitted, and the ceiling insrc/games.tsheld — the pull states the measured raw and gzipped sizes, as every move behind the door here has.Files I expect to change
src/engine/physics.ts(moved),src/engine/index.ts,src/engine/boundary.test.ts,src/client/movement.tsandsrc/client/movement.test.ts(fromphysics.test.ts),src/client/world.ts,src/client/combat.ts,src/client/observe.ts,src/client/hud.ts,src/client/scene.ts,static/app.<hash>.js.Risks
bun testgreen, and only then touch anything else.GUIDE.mdis held by a test that reads it: a group behind the door with no paragraph failsguide.test.ts. Write the paragraph in the same pull.Suggested: Torque — it is the replay of their own #3.