Javascript I know for many years. This is my favorite language. I use it daily for writing sites. JQuery I use only at work. I heard that you can write games in javascript. 6 years ago in the era of IE6, I wrote a game similar to Diablo in javascript. The principle was simple, when I clicked the mouse, I managed to scroll the bars, and the hero was in the center of the screen all the time, only changing direction, just the way it was done in Diablo 2. Now I could easily write such a game, then, for example, positioning had to be used on a timer, because fixed did not work, but all this is in the past.

What do you think, how can you sell such games and where will they work?

What development tools do developers use, and is it possible to make javascript games in general?

Does it make sense to develop javascript games?

And if you are developing or developing, then share your experience.

Closed due to the fact that the issue is too common for the participants Nick Volynkin , Timofei Bondarev , aleksandr barakin , Athari , LEQADA 24 Dec '15 at 3:01 .

Please correct the question so that it describes the specific problem with sufficient detail to determine the appropriate answer. Do not ask a few questions at once. See “How to ask a good question?” For clarification. If the question can be reformulated according to the rules set out in the certificate , edit it .

  • one
    IMHO, games on Java Script are from a series for masochists. - Gorets
  • @dgfhgjljhjjd, do not forget to accept the correct answers! - Sleeping Owl

4 answers 4

I think with the current state of the market a casual game can be well sold in two places.

  • In Facebook, Vkontakte.
  • On the Android market and Appstore.

I am not familiar with the first option, with the second C / C ++ to help. At the same time, at the beginning the game is written under Windows in Visual Studio and only then ported to Android and in the case of good sales, the port on iOS is made there. It's really more convenient than digging with an emulator and real devices. I work according to this scheme. At the same time, to avoid problems with porting, the code of the engine itself is written in С style without using STL, boost, OOP, templates, unnecessary WinAPI calls. The minimum number of external C libraries from reliable suppliers is also used. Information about the successful assembly of which for the required platforms already exists on the Internet.

PS Writing in javascript is a really bad idea for 99% doomed to failure.

  • one
    Nothing personal, just a minus - Zowie
  • @AlexWindHope, wrote the same thing)) - dajver

I do not write myself, but I know that Unity 3d is written in JavaScript or C #. Considering how powerful the tool is and its demand now (at least for iOS) I think you can work prospectively.

  • I can not disagree, but as for me the zhaboskrypt for writing games is very slow, the phone will have very low FPS, I speak from the experience of writing games on the phongepe / cordow - dajver
  • Of course, there are drawbacks, but nevertheless there is an opportunity to develop on JS. What was interested in the topstarter - AlexThumb
  • And if you can try to make a game on CSS))) - Gorets
  • one
    @dajver - most often it is the problem of implementing the API, browser support, assembly curve, etc. etc., i.e. the language has nothing to do with, to the same, practically all of them are solved over time. But, of course, writing large-scale mmoprg on JS is not worth it, although it can be done - Zowie

Your story is a bit like Popov's story. On the topic: right now while the tablets do not reach the resources in order to most quickly execute the code in the browser.

    You can write. And some not only write, but also earn money from them. And it can be not only pure web applications, as Win8 allows writing to JavaScript and dextup applications. Regarding literature, in English - its already the sea. Mostly, most games are built on the basis of the new API in HTML5 and the Canvas element. I can advise this material in Russian - HTML5 Games Development by Example / HTML5 Game Development