JavaScript

Adam Maley
Adam Maley
5,853 Points

Can you make a game with JavaScript, that works without using an internet browser?

So it opens it's own "Application" like a real game on App Store or on Steam ect...

2 Answers

Steven Parker
Steven Parker
130,610 Points

You can use the node.js engine to run JavaScript without a browser, but it doesn't create executable apps. There are several classes for it in the Library here.

There are some experimental compilers around to make JavaScript into a stand-alone executable, with names like "pkg", "nexe" and "node-compiler". Look them up if you want to play around with one or more of them, but these are probably not things to rely on to build stable apps for distribution (and certainly not commercially).

Jennifer Nordell
MOD
Jennifer Nordell
Full Stack JavaScript Treehouse Moderator 133,739 Points

Hi there, Adam! In addition to the answer left above, I'd like to point out that apps made in Unity can also be programmed using JavaScript. That being said, I'm given to understand that most people developing in Unity tend to use C#. But either are a viable option. So yes, it is possible to use JavaScript and make a standalone app. You can take a look at some examples made in Unity but it would be hard to know which are made using C# and which are made using JavaScript.

Hope this helps! :sparkles: