MicroStudio Native Runtime executes MicroStudio game (exported as HTML) localy using QuickJS and then outputs result using Raylib.
Project is configured to use CMake and MINGW G++ i686 compiler from MSYS2.
To compile:
- Install MSYS2
- Install MINGW 32bit
- Compile or download Raylib binaries for MINGW.
- Compile or download binaries for QuickJS. For Windows, you can use https://github.com/mengmo/QuickJS-Windows-Build
- Install SPDLIB through MSYS2 package manager
pacman -S mingw-w64-i686-spdlog
- Install CMake
- For Windows, install GNU Make for Windows https://gnuwin32.sourceforge.net/packages/make.htm
- Clone MicroStudioRuntime
- Update
CMakeLists.txt
andbuild.bat
to match your environment - Build. For Windows, you can execute
build.bat
for automated build. - Run
After you export your project from MicroStudio as HTML, you need to prepare files:
- Put all js files into /microstudio directory.
- Take a look at included game.js to see how to change your index.html file.
- Copy all assets folders into /assets directory
MicroStudio Runtime is in very early stages and only very few features work! To see currently supported API check include/JS_API.h and js_raylib_funcs
array.
Using any function outside the supported list will:
- do nothing
- crash the Runtime
- Erase your PC from existance
Please visit MicroStudio's official Discord if you want to complain or help me with this thing :)