Not Pine2K compatible. This is meant to be actual JavaScript, while Pine2K is a JS-like low-level language (PINE stands for Pine Is Not Ecmascript, after all).
I’m not sure, I’m still figuring out how things work in Monaco. It does support go-to for definitions in the same file, and it knows about things declared in other files if they’re open, so it’s 90% of the way there.
I’ve tried some builds with very minor modifications to the default template, and when I test in the gamebuino emulator and as a pokitto binary (running on hardware) I frequently get crashes when the little color wheel ball bounces (sometimes earlier). It looks like the crashes go away if I take out my print line, which looks like this:
Fixed minor IDE bug that happens after a file is deleted
Update PokittoLib and fix Pokitto builds
Add support for string.length
Fix transpiler errors showing up as “[Object object]”
Added pragmas documentation to wiki. These allow you to do things like including/excluding blocks of code depending on the platform, much like C’s #ifdef ... #endif blocks:
Sorry if I’m missing something obvious, but… How does one save a project and/or transfer between computers? I don’t see an import button, but I do see export. However, export just downloads an empty zip file when I try it - not sure if that’s a bug or I’m just doing something wrong.
Are you sure the zip is empty? Can you paste it here or PM it to me?
To import the zip, you should be able to simply drop it into the file list to merge it into the current project.
Oh, I guess it wasn’t empty. I opened it with 7zip instead of windows explorer and the files were in a folder called ‘_’, which windows explorer apparently chose to hide.
I found the API functions without a verb a bit strange. Like image() instead of drawImage(), text() instead on drawText() etc.
Just having image() looks more like a class constructor to me.
Yeah, I’d usually have drawImage as well, but I figured it might be good for people used to Pico-8 where they have functions like spr for drawing a sprite and rect for drawing a rectangle.