Hey there folks.
Just looking to learn a little more about how game networking is done. Currently I am just toying around with TCP and UDP connections, client server peer to peer etc.
That got me thinking about the best practice / implementations.
I would like to implement a simple multiplayer RPG which does the following;
Multiple players who use simple spells
Can pick up items that drop on the ground
Now I assume that the best practice for the items would be to have a database / file structure like JSON or XML behind it and store these server side. However would I use TCP or UDP to tell the server my player has picked up or dropped an item? I assume TCP due to TCP checking packets for packet loss?
Now this brings me to the multiple players moving and casting spells - according to GafferOnGames UDP is the preferred connection for action games but it is mentioned that where TCP is needed to use TCP. Would a hybrid implementation suit me best?
Any sources / advice would be much appreciated.
Thanks again.