ChrisOS Research ProjectOperating systems · language systems · graphics · machine emulation
DOCUMENTATION ARCHIVEMAIN BRANCH
ChrisOS/Source reference: GAMES/LEVEL.CC

Source reference: GAMES/LEVEL.CC

Deterministic source record. The complete textual file is reproduced below; this page does not replace architectural interpretation in the authored chapters.

File identity

Field Value
Path GAMES/LEVEL.CC
Lines 17
Bytes 374
SHA-256 74237945bf312e092d20760c93829e958ead05ec896bac79ea690986087032e0
ChrisOS revision da3df29cb397932c43d32373871fb9380e688ade

Detected syntactic dependencies

Line Include
— No preprocessor include detected.

Detected symbols

Line Symbol
1 main

Complete source

The following block is the complete textual file at the recorded revision. No lines are elided, abbreviated or paraphrased.

int main() {
  int hero;
  viewport(320, 200);
  phys_add(0, 180, 320, 20);
  phys_add(40, 140, 24, 24);
  phys_add(80, 100, 24, 24);
  hero = scene_add(1, 20, 0, 40, 0, 4);
  scene_add(1, 70, 0, 50, 0, 2);
  scene_add(1, 20, 0, 80, 0, 3);
  anim_key(0, 20, 0, 40, 0);
  anim_key(8, 48, 0, 60, 15);
  anim_apply(hero, 4);
  phys_step();
  scene_draw(0, 0, 0);
  return 0;
}

Role of this record

The atlas guarantees file-by-file traceability. Responsibility, invariants, ownership, concurrency, security, performance and subsystem interactions belong in authored chapters and must cite this file when applicable.

Document record ID: source-74237945bf312e09 Reviewed source: da3df29cb397 Class: generated-source-reference