Page: .

Job: generated chapter

Level: TypeScript

Source lines:

  • input.ts:1

.

TypeScript6 source files214 lines of code

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.

#filelineswhat the file say about itself
1draw.ts42begins with export type DrawRect = { kind: "rect"; x: number; y: number; w: number; h: number; color: string }; draw.ts:4
2input.ts22Input is a snapshot of the keys at one frame. Nothing else in the game reads a key. input.ts:1
3main.ts9begins with export function frame(game: state.Game, keys: io.KeyReader, frame_time: number): screen.DrawCommand[] { main.ts:7
4scoring.ts11begins with export function score_if_out(game: state.Game): void { // goalcheck: runs after both collision passes scoring.ts:4
5state.ts58The whole game is data. No function here draws, reads a key or sleeps. state.ts:1
6update.ts72begins 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.