Please note: I made this during winter as an experiment and was never meant to be released but I've seen brew.js so I thought someone might be interested in this as well (also it would be a shame not showing it to anyone )
I don't plan to keep working on this and don't recommend using it to make any full-blown homebrew.
SO.... In the category projects that i start but never finish, introducing: Nameless js interpreter also known just as JsTest.
Basically it's duktape with some bindings to ctrulib and pp2d, but there is a twist, i made this because i found out that there is a tool to "compile" C# to JS hoping it would just work.
And surprisingly it works !
...Kind of: As you might imagine C# is not 100% compatible with JS, some features are missing such as class destructors and others are replaced with wrappers to JS counterparts like arrays. Also the o3ds is not powerful enough to run complex homebrews but they work nicely on the n3ds.
The following APIs are implemented:
Input and touch, console, audio, GPU through pp2d and a very basic FS (just readAllBytes)
everything is on my github: source and 3dsx, api list, js examples and a C# example project
if you want to try it out just make a folder called js in your sd root and put the scripts there, you can also run it in citra.
Raycaster:
C# game:
Paint demo:
All and all it was a nice project and I had fun working on it, I hope it will be ehm.. a source of inspiration for others (?), anyway have fun messing with it.
I don't plan to keep working on this and don't recommend using it to make any full-blown homebrew.
SO.... In the category projects that i start but never finish, introducing: Nameless js interpreter also known just as JsTest.
Basically it's duktape with some bindings to ctrulib and pp2d, but there is a twist, i made this because i found out that there is a tool to "compile" C# to JS hoping it would just work.
And surprisingly it works !
...Kind of: As you might imagine C# is not 100% compatible with JS, some features are missing such as class destructors and others are replaced with wrappers to JS counterparts like arrays. Also the o3ds is not powerful enough to run complex homebrews but they work nicely on the n3ds.
The following APIs are implemented:
Input and touch, console, audio, GPU through pp2d and a very basic FS (just readAllBytes)
everything is on my github: source and 3dsx, api list, js examples and a C# example project
if you want to try it out just make a folder called js in your sd root and put the scripts there, you can also run it in citra.
Raycaster:
C# game:
Paint demo:
All and all it was a nice project and I had fun working on it, I hope it will be ehm.. a source of inspiration for others (?), anyway have fun messing with it.