M
M
MaxLich2017-08-14 12:23:27
Java
MaxLich, 2017-08-14 12:23:27

Is it possible to write a browser game in Java alone?

Hello. About a month ago I asked here about the development of programs with a GUI (and games are almost always with a GUI), and they answered me that Android and the web are now in trend. Everything is clear with android. But not with the web. Therefore, the following question arises: is it possible to create any game for the web entirely on Java alone? I just hear more often that browser games are written in Javascript.
Well, in connection with this question, there is a second question: if you develop a browser game (completely in Java or not), then what is the best way to do it, what technologies and libraries to use? (It is unlikely that someone will describe it all here, so I will be grateful for the general development scheme, as well as links to articles that talk about it)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim Timofeev, 2017-08-14
@MaxLich

Now is the era of frameworks and game engines. Take cryengine or unreal engine or unity and develop immediately for all platforms. I'm not sure that there are options for c java, as a rule there is c and / or a scripting language. But at the output for different platforms you get different things, for the web it will be js.
What for? To run this game, the user will need to download java. Cut off a number of users. Isn't javascript easier?
Java on the backend - I see the point, but the front of the game should be on js

K
Konstantin Kitmanov, 2017-08-14
@k12th

https://libgdx.badlogicgames.com/ can export to HTML5 (I don't know how well, there is a notable GWT brake inside).
It will do for an experiment/prototype, but if it takes off and runs into performance, hire a good javascripter.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question