Skip to content

Version 0.1.0

Latest

Choose a tag to compare

@jacobenget jacobenget released this 26 Nov 20:59
· 6 commits to master since this release
24bb772

Documentation

Documentation for the Doom WebAssembly module produced by this release is found in these places:

Imports and Exports

The comprehensive list of the signatures of the module's imports and exports, mentioned above, is reproduced here for clarity:

imports:
  function console.onErrorMessage(i32, i32) -> ()
  function console.onInfoMessage(i32, i32) -> ()
  function gameSaving.readSaveGame(i32, i32) -> (i32)
  function gameSaving.sizeOfSaveGame(i32) -> (i32)
  function gameSaving.writeSaveGame(i32, i32, i32) -> (i32)
  function loading.onGameInit(i32, i32) -> ()
  function loading.readWads(i32, i32) -> ()
  function loading.wadSizes(i32, i32) -> ()
  function runtimeControl.timeInMilliseconds() -> (i64)
  function ui.drawFrame(i32) -> ()

exports:
  function initGame() -> ()
  function reportKeyDown(i32) -> ()
  function reportKeyUp(i32) -> ()
  function tickGame() -> ()
  global KEY_ALT(i32, mutable = false)
  global KEY_BACKSPACE(i32, mutable = false)
  global KEY_DOWNARROW(i32, mutable = false)
  global KEY_ENTER(i32, mutable = false)
  global KEY_ESCAPE(i32, mutable = false)
  global KEY_FIRE(i32, mutable = false)
  global KEY_LEFTARROW(i32, mutable = false)
  global KEY_RIGHTARROW(i32, mutable = false)
  global KEY_SHIFT(i32, mutable = false)
  global KEY_STRAFE_L(i32, mutable = false)
  global KEY_STRAFE_R(i32, mutable = false)
  global KEY_TAB(i32, mutable = false)
  global KEY_UPARROW(i32, mutable = false)
  global KEY_USE(i32, mutable = false)
  memory memory(min = 72, max = ∞)