what is real-time? | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 5

what is real-time?

serious question, serious answers pls. so i was going through website ideas and im thinking of creating a real-time multiplayer game. but then, im actually curious how real-time works. can somebody pls explain how those real-time multiplayer games work? thanks in advance

14th Jul 2017, 12:55 PM
David Sebastian Keshvi Illiakis
David Sebastian Keshvi Illiakis - avatar
16 Respuestas
+ 5
lets take an example of 2 players playing a game simultaneously. Now here, there are 3 things to be taken into consideration: Device no. 1 Device no. 2 and a Server What basically happens is that both these devices keep sending packets of data to the server and the server sends them back some data. Suppose you are playing Counter Strike online with one of your friend. Here are the things that go behind the scenes: Your computer gathers the information about the location, ammo, health, etc. and then pings the server and transfers that data in the form of packets to the server.The server then receives the data and then sends that data to your friends computer.Now suppose if you moved 'x' units on your computer then that data will be transferred on to the server and then the server will send that data to your friend's computer thereby giving your friend's computer the data to replicate whatever happened on your computer.All this data transfer happens continuously. This is the reason why you need to set up a "server" in order to play any real time multiplayer game. Basically its all just a matter of data transfer from one device to the server and from the server to the other device and then replicating the same conditions with the received data on the other device.
14th Jul 2017, 1:18 PM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar
+ 6
There ia no real time time is relative and personal. Your head is a few femtoseconds younger than your head, for example (time dilation) So in actual terms there IS no real time.
17th Jul 2017, 10:59 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 5
@$Vengat if i give u best answer would u delete your account?
17th Jul 2017, 11:04 AM
David Sebastian Keshvi Illiakis
David Sebastian Keshvi Illiakis - avatar
+ 5
No why must i?
20th Jul 2017, 11:40 PM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 4
i dont know yet probably some 1 + 1 game to try out how multiplayer works
14th Jul 2017, 1:08 PM
David Sebastian Keshvi Illiakis
David Sebastian Keshvi Illiakis - avatar
+ 4
have you search on Google ??😮
14th Jul 2017, 1:18 PM
Art456
Art456 - avatar
+ 4
thanks sami khan and um seems like i cant find any info on nodejs docs. ok then ill try ma best thank
14th Jul 2017, 1:29 PM
David Sebastian Keshvi Illiakis
David Sebastian Keshvi Illiakis - avatar
+ 3
Wow, what a noob. :) Unfortunately, I can't tell you that in real-time because I'm not talking to you on discord at the moment. However, accept this delayed message instead. Real time the time you think about offline, right now.
14th Jul 2017, 12:59 PM
AgentSmith
+ 3
omg wtf im asking how it works, not what it means
14th Jul 2017, 1:16 PM
David Sebastian Keshvi Illiakis
David Sebastian Keshvi Illiakis - avatar
14th Jul 2017, 1:32 PM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar
+ 3
@Sami Khan ur not even answering my question. i ask what and how real-time works, not how to make a real-time game because i dont like being dependent on tutorials
15th Jul 2017, 2:28 AM
David Sebastian Keshvi Illiakis
David Sebastian Keshvi Illiakis - avatar
+ 2
What game you working on?
14th Jul 2017, 12:59 PM
AgentSmith
+ 2
Real-time just means it's happening in normal time reference; one second after another in a forward progression. To give it contrast, think about turn-based games and how you have to wait for someone else to take their turn before you do. Real-time is just when all players are moving in the same time reference; no waiting. Anyways, best of luck with the game man. Let me know how it goes and I'll test it out for ya. If you end up deciding to stick with game dev, hit me up and I got some projects you're more than welcome to join up with.
14th Jul 2017, 1:14 PM
AgentSmith
+ 2
Cheeze stfu and take your medicine bro. :D There is no magic recipe to it. Just make the game normal and don't make it so players have to wait to take a turn, and it'll be real-time. :P
14th Jul 2017, 1:19 PM
AgentSmith
+ 2
Btw Cheeze: " i ask what and how real-time works," ^You actually did ask what it means. :P
14th Jul 2017, 1:20 PM
AgentSmith