The screen area is an html <canvas>: a bitmap embedded in a web page. A different font style/size is possible. What do you need?
The character sheet goes to stdout, which is equivalent to the javascript console. In-game, hit 'C' then 'f' to print out the sheet. The sheet also prints out at the end of a game. Click out of the <canvas> then open the console with:
* Ctrl+Shift+J in Google Chrome
* Ctrl+Shift+K in Mozilla Firefox
or better, use the browser GUI.
The source code is being passed through two compilers. The compilers must produce output that "just works" without much thought as to the best way to accomplish it. The compilers also don't know about each other. This produces a lot of redundancy.
Game options, monster memory, saved character, level and scores are put in the local storage area of the browser. Game options and monster memory persist between games. Each browser has its own storage, so you can not play the same game on different browsers.
On Google Chrome look in:
Cookies and site data -> "
sites.google.com" -> Locally stored data -> local storage.
Takes up about 3-4 kilobytes. When you clear your cookies, make an exception for "
sites.google.com".
-Donnie Russell II
On Thursday, March 5, 2015 at 6:26:14 PM UTC-5, Eli the Bearded wrote: