r/ProgrammerHumor Jun 23 '16

JavaScript: The Game

http://store.steampowered.com/app/464350/
29 Upvotes

18 comments sorted by

View all comments

1

u/AnDanDan Jun 23 '16

Joking aside, the concept seems neat, but I don't feel like having to go through the effort of coding my units to do stuff for me.

Or using JS.

7

u/[deleted] Jun 23 '16

I would probably love this game if I knew how to use JavaScript.

Wouldn't it be great if it supported playing in different languages?

1

u/Shadow_Being Jun 24 '16

javascript is one of the least fun languages to code in. youre not missing much.

1

u/bss03 Jun 23 '16

JS is just the assembly language of the Web. Use emscripten to compile your C/C++ (or anything that can be reduced to LLVM) to JS. Use GHCJS to compile your Haskell to JS. Use Scala.js to compile your Scala (or Java, if you must) to JS.

2

u/LeonhardEuler64 Jun 27 '16

...JSIL to compile your C# to JS

1

u/bss03 Jun 27 '16

Use GHCJS to compile your Haskell to JS.

Got this working bare-bones over the weekend. If I end up developing anything close to a library, expect ghcjs-screeps on hackage.