Hey Arshak, I see your having a little of difficulty to make the code flow for the networked apps, if you need advice and some explanations, feel free to email me anytime
Will answer here too if you so prefer !
I am myself working in a toy project, with a concept similar to yours, which I don't mind sharing the code, binaries and my personal help.. It is a game somehow like League of Legends and DotA, a Multiplayer Online Battle Arena(?).
I started it only 48 hours ago or less, but it already has a few features:
- Fully working, smooth chat
- Heros that are the playable/ai main characters
- Movement with mouse, point and click, and WASD controlled
- Currency
- Heros with AI, which are able to talk in the chat, follow the player etc
- A shop for items is being worked on
- HP Regen / Death / Kill Count / Respawn times
- Some basic graphics for debugging everything
- And of course, all of this is happening in multiplayer, all clients see everything etc, the synchronization is good, buts gets worse with bigger latency, because no special sync mechanisms are implemented.
Well, you can freely check source code in the GitHub repo :
https://github.com/DevilWithin/SlaveryGood luck with your project.