I had this theory that I could make a complex multiplayer game suing the HTML object, and I was wondering what everyone's opinions were on the feasibility of it working properly.
My plan is to make an overhead view game like the old GTA games. The player will run around shooting at things, picking things up etc. There will also be other players that can join the game and run around with the other players.
My overall idea is this:
Knowing that the HTML object is way too slow for accurate and real-time movement I was planning on "faking" it. The player will move around as normal on his/her screen, while the other players will use a pseudo AI to control the more complex actions. The HTML objects comes in to play by sending the players X and Y coordinates every few seconds, and data such as "is shooting" and "is searching" etc.
In between the pings of data, the AI takes over and moves the player towards the coordinates the last ping data was set to. There will also be some correction data so if the players coordinates don't update correctly for any reason, the character may appear to "teleport" nearer the actual location of the real player. This may look and feel like the old-school lag from dial-up days, but I was thinking it may just work.
Any thoughts or ideas to add to this?
I will also be using Rich's early alpha online plugin he has made for a chat system since it seems to work just fine for that as it is.
The only problem I can foresee at this point is how the client and server will communicate? Should it be made to work as a straight peer to peer data transfer? Is a server required at all? Will it even work?
Any input or considerations is much appreciated. Thanks in advance.
~Sol