Answer the question
In order to leave comments, you need to log in
What technologies to use for a browser game?
The most primitive example: several players (2+) on their computers run an application in the browser in which each controls the ball. You can control with arrows. Those. when someone moves the ball, other players also observe this process.
Here's how to implement it. So far, only Flash and RTFMP come to mind? Are there any other suitable options?
Also, along the way, an ideological-technical question regarding the transfer of the movement of the ball? If I move my ball, what should I pass on to other players? new ball coordinates? position + direction? what to do if you want the balls for each player to have a different speed? etc.
Answer the question
In order to leave comments, you need to log in
Also, along the way, an ideological-technical question regarding the transfer of the movement of the ball? If I move my ball, what should I pass on to other players? new ball coordinates? position + direction? what to do if you want the balls for each player to have a different speed? etc.Transfer direction and speed from client to server.
A Flash frontend that connects to a server written in Java, for example, that exchanges information between players.
In the absence of information about the rules of the game and the gameplay, I will say roughly.
Pass old and new ball coordinates so that the client does not remember the old ball coordinates of each player.
Transmit the speed of the ball, if necessary.
WebSocket - will help you. And the implementation, even a flash, even a Java script.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question