Page: .
Job: generated chapter
Level: TypeScript
Source lines:
input.ts:1
.
grug measure this project from its own files. nobody write this page, so it cannot go stale. why the code is shaped so is for the topics.
what this repository says it is
Input is a snapshot of the keys at one frame. Nothing else in the game reads a key.input.ts:1
where it start
grug find no file that start a program, so this one is a library other code use.
the files, in the order to read them
the project file list no files, so grug sort them by path. lines count code only, with comments and blanks left out.
| # | file | lines | what the file say about itself |
|---|---|---|---|
| 1 | draw.ts | 42 | begins with export type DrawRect = { kind: "rect"; x: number; y: number; w: number; h: number; color: string }; draw.ts:4 |
| 2 | input.ts | 22 | Input is a snapshot of the keys at one frame. Nothing else in the game reads a key. input.ts:1 |
| 3 | main.ts | 9 | begins with export function frame(game: state.Game, keys: io.KeyReader, frame_time: number): screen.DrawCommand[] { main.ts:7 |
| 4 | scoring.ts | 11 | begins with export function score_if_out(game: state.Game): void { // goalcheck: runs after both collision passes scoring.ts:4 |
| 5 | state.ts | 58 | The whole game is data. No function here draws, reads a key or sleeps. state.ts:1 |
| 6 | update.ts | 72 | begins with export const FIXED_STEP = 1 / 120; // 120: one slice is one hundred twentieth of a second update.ts:6 |
what it use and who use it
no package named in source files.
it reference no other project of this repo.
no other project of this repo reference it.
what test it
no test project reference this one.
where to look for trouble
the demon watch catalog match nothing here. it list only patterns grug know, so a quiet file can still hide behaviour.