On Jun 24, 9:48 am, "John B. Matthews" <nos...@nospam.invalid> wrote:Oh, you know me: I love lores, even when it's not present! :-)Heh, yeah sorry about that! ;-) Graphics will require a bit of work.
Feel free to borrow liberally from http://calormen.com/Applesoft/ * LoRes implemented as tables* HiRes implemented using canvas (and excanvas for IE), with two (slower) alternate implementations: TABLE and sparse DIVs * Text ("tty") implemented using a texture atlas and table (for the real Apple II font and exact matching of LoRes/HiRes layout - it's pixel-doubled)
* Input devices - keyboard (hidden form element), joystick, paddlesThese are all written as separate JavaScript modules with minimal dependencies on the BASIC interpreter, so they should be fairly easy to plug in. They even have API documentation at the tops of the JS files (although I can't swear it's up-to-date, and I should have gone with the Class.prototype.member = ... style rather than data hiding approach I picked up from Crockford... but I digress)
Tested/functional (last I checked) in IE, Firefox, Chrome, Safari, Opera. PS: Nice work!