How do you guys compile HTML files into standalone games?

In Game Dev Tycoon, how do you guys compile the HTML and Javascript files into a standalone game?

We use http://nwjs.io/.

There is also http://electron.atom.io/ which does a similarly good job.

2 Likes

Thank you! I’m playing game dev tycoon right now! How do you use nw.js i have tried but failed. :frowning: I am eleven and currently have three apps on the app sore and am looking into steam. My website link is http://gavisus.net your game really inspired me to get involved with steam game development!

1 Like

Hi!

If you take a look at nwjs wiki, you can get some nice tips on how to get started.

Cheers!

1 Like

When I try to compile the files and i open up the app.exe it comes up with the blank default nw.js page? Any tips?

What do you mean by “compile”?

Make it into an executable.

Look at the correct page on the wiki. Also, a sidenote: that is not compiling.

I have tried that just it comes up with the default nw.js start screen.

You are right, but

1 Like

You already have an executable that is pre-compiled.

I suddenly like coding alot more.

No I want all the files to be in one executable.

As @Brainfreeze has said, there is no compiling involved in creating a NW.js package. The js code is compiled and run on the fly as a JIT (Just In Time) process, in the same manner that js code is run in any web browser, but the HTML side is not compiled, merely interpreted by the pre-compiled NW.js executable.

The process you are looking for @BloodCorn, is called Packaging and an number of options are described on the NW.js wiki on GitHub:

Essentially, to make a single .exe you’ll need the Enigma Virtual Box approach at the end of that article, but there are a number of options which make a single exe, plus a couple of .dll files (most games like CoD, or Civilization, or even GDT don’t bother with a single file).

1 Like

Ok thanks its just whenever I do this it doesn’t read the app.nw file.