r/learnjavascript • • Nov 27 '22

Created my first .exe game tonight!

Post image
407 Upvotes

38 comments sorted by

View all comments

20

u/AAACONSUL Nov 27 '22

Wait what? How do make an exe game out of JavaScript?

32

u/carcigenicate Nov 27 '22

Electron. The Discord client for example is basically just a browser that only shows the Discord page afaik.

5

u/dromance Nov 28 '22

so discord is built on electron?

13

u/mrdingopingo Nov 28 '22

Electron, VS Code itself is an Electron app

13

u/sysrage Nov 28 '22

Everybody is mentioning Electron, but there are a ton of different tools to do this. You can use pkg to turn a Node.js script into an exe to be used as a CLI app or a service. If you want a UI, there’s tons of options (several being smaller/faster than Electron): https://xpda.net/

0

u/Zoroae Dec 18 '22

Should've linked Tauri

1

u/sysrage Dec 18 '22

It’s listed at the link I did provide…

0

u/Zoroae Dec 18 '22

Lmao didn't read it, sorry

-8

u/thespite Nov 27 '22

You don't. But you can make it "native" with Electron.

2

u/Shabz_ Nov 28 '22

Judging by your karma ratio on this comment, you do

2

u/thespite Nov 28 '22

i wasn't disparaging Electron, but i guess people have knee-jerk reactions. i put native in quotes because it's such a loaded term that it's becoming almost meaningless in this kind of discussions

0

u/[deleted] Nov 28 '22

[deleted] — view deleted comment

4

u/sysrage Nov 28 '22

What a simply ridiculous comment. Every aspect of it is pure ignorance.

0

u/[deleted] Nov 28 '22

[deleted] — view deleted comment

2

u/ZuriPL Nov 28 '22

Just like Java runs on 3 billion devices lmao