I am not sure if this post should be here but its more here than PHP Theory, anyway a friend and i are planning on making a web based game in PHP and i am in charge of user input and graphic generation. I have created a solution for the user input which i will display below:
Browser:
AJAX Request every second
If user sent input then send input to server
Server:
If input received take action
Send data
Browser:
If data received then display
What i really want is this:
Browser:
If user presses button send to server
Server:
If input received take action
Send data
Browser:
If data is received display
Its nearly the same but without ajax is this possible
PHP recieving live input from the user
Moderator: General Moderators
-
SteelSlasher
- Forum Newbie
- Posts: 5
- Joined: Fri Sep 12, 2008 12:54 pm
Re: PHP recieving live input from the user
Wouldn't it be better to use flash for this?
-
SteelSlasher
- Forum Newbie
- Posts: 5
- Joined: Fri Sep 12, 2008 12:54 pm
Re: PHP recieving live input from the user
yacahuma wrote:Wouldn't it be better to use flash for this?
Maybe a compiled client using windows api will work and a php based server using some optimiser to keep lag down
Re: PHP recieving live input from the user
I dont know flash either , but you have to choose the right tool. If you are going to have a screen with things moving, I dont think you want to go that route.
Re: PHP recieving live input from the user
well flash is actually not that hard... the only thing i dont like about it is that it's not free 
-
Aric_Holland
- Forum Newbie
- Posts: 5
- Joined: Sat Aug 09, 2008 6:23 pm
- Location: Maui, HI
Re: PHP recieving live input from the user
Java, & Pulpcore.
http://www.interactivepulp.com
Pulpcore is an interactive 2d rendering framework, its bringing applets back. You should check it out, I have written two projects using the API and the framework and can say its great.
http://www.interactivepulp.com
Pulpcore is an interactive 2d rendering framework, its bringing applets back. You should check it out, I have written two projects using the API and the framework and can say its great.