Repository navigation
Documentation
Documentation for the Doom WebAssembly module produced by this release is found in these places:
- A high-level overview of the Doom WebAssembly module's interface and how to use it
- Complete details about each of the module's imports and exports, in source code comments
- A comprehensive list of the signatures of the module's imports and exports
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 = ∞)