This project is distributed under the GPLv3 or above licence. See COPYING.txt for more details.
This product is in VERY early development! Theres a good chance that the API will change.
- Clone this project and open index.html.
- Go down to Preferences.JSON and paste the JSON containing the machines preferences (a test machine can be found in tos/options.json)
- Press SAVE and start the machine.
- Profit.
Also, place a png called bg.png into the extras folder to set a background.
NOTE: See notice at the top of the page! This is mostly just for messing around and testing things until the API is finished.
- Make an options.json file. This contains the options needed to boot the machine. (see #Options.json)
- Create a runtime script (runtime.js). This is loaded inside the machines popup. (window.parsedPrefs contains preferences JSObject)
- Set up runtime.js to load whatever you need. (see tos/runtime.js for a wasm loading example)
- Load it up with the steps in #Usage.
- Profit. (until a few update were everything changes 💀)
As of right now, its just the minimum to do things:
{
"win": {
"title": "NAME OF WINDOW",
"width": interger,
"height": interger,
"icon": "URL TO PNG ICON FOR WINDOW",
"defaultBackground": "CSS BACKGROUND COLOR",
"defaultCSS": boolean (sets some basic css stuff up. look in pl.js)
},
"runtimeURL": "URL TO RUNTIME"
}