TCP peer to peer

General discussion about LÖVE, Lua, game development, puns, and unicorns.
User avatar
Luke100000
Party member
Posts: 232
Joined: Mon Jul 22, 2013 9:17 am
Location: Austria
Contact:

Re: TCP peer to peer

Post by Luke100000 »

S0lll0s wrote:
bobbyjones wrote:It not recommended at all to use php server. But it would basically be TCP communication through http
uh... for a real-time game PHP is a terrible choice for a server language. A PHP server doesn't run continously and with standard HTTP there are no "PUSH" messages, clients always have to ask for updates.
PHP can't store a state over multiple requests and clients (properly) so you need a database to keep track of player positions etc.
So it only works for strategy games, where you have a town and you can attack other players.... games like that.
That's why I want to use NoobHub, my server will be running soon. maybe it will work.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests