miserjs 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -0
- package/dist/node/miserjs-node.min.js +1 -1
- package/package.json +1 -1
- /package/dist/browser/{miserjs-engine-1.0.4.min.js → miserjs-engine-1.0.5.min.js} +0 -0
- /package/dist/browser/{miserjs-engine-1.0.4.min.js.br → miserjs-engine-1.0.5.min.js.br} +0 -0
- /package/dist/browser/{miserjs-engine-1.0.4.min.js.gz → miserjs-engine-1.0.5.min.js.gz} +0 -0
- /package/dist/browser/{miserjs-engine-1.0.4.min.mjs → miserjs-engine-1.0.5.min.mjs} +0 -0
- /package/dist/browser/{miserjs-engine-1.0.4.min.mjs.br → miserjs-engine-1.0.5.min.mjs.br} +0 -0
- /package/dist/browser/{miserjs-engine-1.0.4.min.mjs.gz → miserjs-engine-1.0.5.min.mjs.gz} +0 -0
package/README.md
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
# MiserJS
|
|
2
2
|
[](https://github.com/KristinaRC/MiserJS/actions/workflows/ci_build_test.yml)
|
|
3
|
+
[](https://github.com/KristinaRC/MiserJS/actions/workflows/codeql.yml)
|
|
4
|
+
[](https://github.com/KristinaRC/MiserJS/actions/workflows/publish.yml)
|
|
5
|
+
|
|
3
6
|
|
|
4
7
|
## Play Online
|
|
5
8
|

|
|
@@ -169,3 +172,11 @@ for the speedrun-commands.txt file.
|
|
|
169
172
|
**Michael J. Fromberger**, [creachadair here on GitHub](https://github.com/creachadair/miser), ported Miser to [Chipmunk BASIC](https://www.nicholson.com/rhn/basic/) in 2018, so he could run it on his Macintosh.
|
|
170
173
|
**Kelly Hall**, [grumble1965 here on GitHub](https://github.com/grumble1965/PythonMiser), ported Miser to Python in 2021.
|
|
171
174
|
**robertorenz**, [here on Github](https://github.com/robertorenz/MiserRemake), created a '2.5D Remake' of Miser in 2026. Click the link to play it in your browser.
|
|
175
|
+
|
|
176
|
+
## Special Mentions
|
|
177
|
+
|
|
178
|
+
A review of Miser, from [Renga in Blue](https://bluerenga.blog/2020/03/04/miser-1981/) , which includes information about the CURSOR newsletter subscription service that ran from July 1978 to May 1982. This is where Miser was first released in August 1981.
|
|
179
|
+
|
|
180
|
+
That site is also a great source for fans of interactive fiction in general.
|
|
181
|
+
|
|
182
|
+
[Myles Skinner has a great page](https://tierceron.com/commodore/cursor/intro.php) about CURSOR tapes 1 through 24, with a link to the full set (1-30) of disk images that can be loaded into the [VICE Pet emulator](https://vice-emu.sourceforge.io) on a PC.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import e from"node:readline/promises";import{stdin as t,stdout as s,argv as o,exit as n}from"node:process";import{readFileSync as i}from"node:fs";import r from"node:path";import{open as l,writeFile as a}from"node:fs/promises";import c from"../engine/miserjs-engine.min.js";class MiserJS{#e="miserjs-savegame.txt";#t;#s;constructor(){this.#t=new c}async play(){console.log(this.#o("look").text),this.#s=e.createInterface({input:t,output:s}),this.#s.setPrompt(""),this.#s.on("line",this.#n.bind(this))}async#n(e){let t;switch(e){case"save":await a(this.#e,JSON.stringify(this.#t.getGameState()),"utf8"),console.log("Game saved.\n");break;case"load":let s=i(this.#e,"utf8");this.#t.setGameState(JSON.parse(s)),console.log("Game restored."),t=this.#o("look"),console.log(t.text);break;default:if(!e)return;if(t=this.#o(e),t.gameOver)switch(t.gameOver){case"died":console.log(t.text),this.#s.close();break;case"quit":t=this.#t.showFinalOutcome(),console.log(`\n${t.text}\n`),this.#s.close();break;case"escaped":console.log(`\n${t.text}\n`),t=this.#t.showFinalOutcome(),console.log(`\n${t.text}\n`),this.#s.close()}else t.text.endsWith("\n")?console.log(`${t.text}`):console.log(`${t.text}\n`)}}#o(e){return this.#t.request(e)}static async speedrun(){const e=new c,t=import.meta.dirname;let s,o=r.join(t,"speedrun/speedrun-commands.txt"),n=i(o,"utf8");n=n.replace(/[\r\n]+/g,"");const a=n.split(",");let m=r.join(t,"speedrun/speedrun-output.txt"),u=await l(m,"w");for(const t of a)console.log(`>> ${t}`),await u.write(`\n>> ${t}\n`,null,"utf8"),s=e.request(t).text,console.log(s),await u.write(s,null,"utf8");await u.close()}}let m=new MiserJS,u=o[2]?.trim();if(u)if("speedrun"===u)await MiserJS.speedrun(),n(0);else console.log("Unrecognized command."),n(1);else m.play();
|
|
2
|
+
import e from"node:readline/promises";import{stdin as t,stdout as s,argv as o,exit as n}from"node:process";import{readFileSync as i}from"node:fs";import r from"node:path";import{open as l,writeFile as a}from"node:fs/promises";import c from"../engine/miserjs-engine.min.js";class MiserJS{#e="miserjs-savegame.txt";#t;#s;constructor(){this.#t=new c}async play(){console.log(this.#o("look").text),this.#s=e.createInterface({input:t,output:s}),this.#s.setPrompt(""),this.#s.on("line",this.#n.bind(this))}async#n(e){let t;switch(e.trim()){case"save":await a(this.#e,JSON.stringify(this.#t.getGameState()),"utf8"),console.log("Game saved.\n");break;case"load":let s=i(this.#e,"utf8");this.#t.setGameState(JSON.parse(s)),console.log("Game restored."),t=this.#o("look"),console.log(t.text);break;default:if(!e)return;if(t=this.#o(e),t.gameOver)switch(t.gameOver){case"died":console.log(t.text),this.#s.close();break;case"quit":t=this.#t.showFinalOutcome(),console.log(`\n${t.text}\n`),this.#s.close();break;case"escaped":console.log(`\n${t.text}\n`),t=this.#t.showFinalOutcome(),console.log(`\n${t.text}\n`),this.#s.close()}else t.text.endsWith("\n")?console.log(`${t.text}`):console.log(`${t.text}\n`)}}#o(e){return this.#t.request(e)}static async speedrun(){const e=new c,t=import.meta.dirname;let s,o=r.join(t,"speedrun/speedrun-commands.txt"),n=i(o,"utf8");n=n.replace(/[\r\n]+/g,"");const a=n.split(",");let m=r.join(t,"speedrun/speedrun-output.txt"),u=await l(m,"w");for(const t of a)console.log(`>> ${t}`),await u.write(`\n>> ${t}\n`,null,"utf8"),s=e.request(t).text,console.log(s),await u.write(s,null,"utf8");await u.close()}}let m=new MiserJS,u=o[2]?.trim();if(u)if("speedrun"===u)await MiserJS.speedrun(),n(0);else console.log("Unrecognized command."),n(1);else m.play();
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|