aduros / wasm4

Build retro games using WebAssembly for a fantasy console.
https://wasm4.org
ISC License
1.1k stars 162 forks source link

Web-based playground editor #98

Open aduros opened 2 years ago

aduros commented 2 years ago

It would be neat to have an easily accessible editor for live coding. Something like the TypeScript Playground with the code on the left and the game on the right, with the ability to inspect the WAT and download the cart.wasm.

AssemblyScript seems like it would be a perfect fit for this! @MaxGraey :eyes: Maybe the existing AS editor could be repurposed?

MaxGraey commented 2 years ago

Yes, it possible with AS. See web sdk example: https://github.com/AssemblyScript/examples/tree/main/sdk Also you could check how playground implemented on official page: https://github.com/AssemblyScript/website/blob/main/src/.vuepress/public/editor.html

DenialAdams commented 2 years ago

Supporting some languages other than AS would be awesome too - Roland's compiler can be run in the web, and I'm sure we could do WAT->WASM (this in particular was requested by Snufkin on discord)