A
A
Alexey2016-11-05 19:25:23
JavaScript
Alexey, 2016-11-05 19:25:23

What tools to use to create an online text-based game?

There is an idea to create an online text game with RPG elements with adaptive layout for mobile devices. The player chooses some actions, the picture with the text and the characteristics of the character are updated.
The backend is planned to be made on the Play Framework in order to study it better. For layout, I think to choose bootstrap, since I am a little familiar with it. For the frontend, some kind of framework or library is needed, with the help of which it will be possible to dynamically update pictures and texts. How would you link the frontend to the backend?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dark Hole, 2016-11-05
@Venje

web socket. You can use Socket.io if you have Node.js on your backend - it will be very convenient.
For cross-browser compatibility under the damned Opera Mini, you can also look at ServerSentEvents and Ajax requests (it's XNR)

K
Konstantin Kitmanov, 2016-11-06
@k12th

I would choose Vue.js for dynamics on the frontend - light, simple, fast, but it saves you from noodles in the code.
As for communication, there is not enough data. If there is multiplayer or any kind of player interaction (even just chat), then WebSocket. If this is a single, but the game is not turn-based, then again WebSocket. If the game is single and turn-based, then AJAX is enough. Some combination of these two methods is also possible.

E
Evgeny Troinov, 2016-11-07
@tot0ro

node.js + mongo + socket.io + (React, Angular, Backbone)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question