Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I was going to make a MMORPG in HTML5 and javascript but I think I'm going to make a singelplayer first after all.. It would be nice to make the game in html5 anyway so the transition to making an mmorpg in future will be smoother.

But I would like the game to be downloadable app which is then installed like most games are.. Not a unzippable container containing a .js file.. I also want to be able to put the game up on steam.

I also don't really want the source code to be open for anyone to see if I let them download the game in a zip file where the .js and .html files are inside.

Is there a way of accomplishing this? Otherwise I will probably have to use some other language for making my game in some framework/engine like unity/xna/game maker but like I said I would prefer just using html5 and javascript with my own custom code.

share|improve this question
    
Maybe there are wrappers like that, but even then I suppose that they could relatively easily be decompiled again. It's not really meant for this use case, but maybe you could build something like that yourself with Awesomium and some C++ or .NET code. Ultimately, if you worry about people seeing the source, HTML5 is probably not a good choice. But if the end goal is an MMORPG, all important logic will (or at least should) be done serverside anyway, so it won't be much of an issue anymore. –  Christian May 14 '13 at 12:20
    
There may be some information here: stackoverflow.com/questions/9504651/… –  Potato May 14 '13 at 12:21
1  
Sounds like you want to make a game in C++. –  Byte56 May 14 '13 at 13:48
4  
Quit worrying about people stealing your code at least until you start writing anything that is actually stealworthy, it doesn't sound like you are there yet. –  eBusiness May 14 '13 at 14:17
1  
@Krymmt I'm not trolling, I'm just being a little more honest than most people would usually dare. There is nothing wrong about being a beginner, but it means that your focus should be on learning the basic craft, rather than hunting for shoddy DRM solutions. –  eBusiness May 14 '13 at 22:35
show 3 more comments

1 Answer

Yes, this can be done using node-webkit. One example of this in the real world is a game called Lava Blade which is available on both Windows and Mac.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.