Skip to content

exit

Exit the current running game and the emulator. Remove the canvas element used by the emulator if needed.

const nostalgist = await Nostalgist.nes('flappybird.nes')
nostalgist.exit()
const nostalgist = await Nostalgist.nes('flappybird.nes')
// the canvas element will not be removed
nostalgist.exit({ removeCanvas: false })