On Fri, 2005-03-25 at 09:44, Alexandre wrote:
> Robert Cummings wrote:
> >
> > Javascript. And perhaps use XmlHttpRequest to synchronize the game cycle
> > with your web server from time to time. Or if the pages are being
> > submitted, you can just synchronize at that time.
>
> Hi Rob, thanks fo
[snip]
Pretty interesting, Jay. So you have this script running as others
interface
with all the other stuff in the site? Just another question, you start
it via
web like a common script, but it is only accessed by you and it keeps on
running? The server doesn't kill it if it keeps running indef
On Friday 25 March 2005 09:37, Alexandre wrote:
> I mean like a script I would start and it would keep running
> constantly, checking for new commands in a queue, updating objects status,
> can it be done or the server would kill it?
>
> Kind regards,
> Alex
PHP is server script and you would need
Check PHP-CLI ( Command line interface )
You can run php script without client request. For
example :
/usr/local/bin/php -f /path_of_your_script/game.php
arg1 arg2 &
--- Alexandre <[EMAIL PROTECTED]> wrote:
> Robert Restad wrote:
> > I suggest you write a 'tick' engine, which i.e.
> games like P
Robert Cummings wrote:
>
Javascript. And perhaps use XmlHttpRequest to synchronize the game cycle
with your web server from time to time. Or if the pages are being
submitted, you can just synchronize at that time.
Hi Rob, thanks for your answer. Let me see if I got it right, I would use
javascript
[snip]
First thanks for your answer and your help. I would like to explore this
concept
of using the PHP. I mean, I've already coded some small games in C++,
and
implementing a game loop is kinda easy, since you have the control of
all the
data being processed. But PHP scripts, as I currently kn
Robert Restad wrote:
I suggest you write a 'tick' engine, which i.e. games like Planetarion
use.
This should be written in C or C++, compiled... You can run this using
PHP of course, and run it from command line/shell, but PHP isnt ideal
for this. If you have a decent server and not too much player
On Tuesday 22 March 2005 21:13, Alexandre wrote:
> Hi there,
>
> I'm developing an online game (using PHP+MySQL, and being totally
> interfaced via web) which needs to have a "game cycle" running. For
> example, the player is flying a plane, so he sets the plane speed to 10%,
> then the game cycle
s a lot of development time.
Best regards
Robert.
-Mensagem original-
De: Alexandre [mailto:[EMAIL PROTECTED]
Enviada em: terça-feira, 22 de março de 2005 23:13
Para: php-general@lists.php.net
Assunto: [PHP] Game development approach
Hi there,
I'm developing an online game (using
On Tue, 2005-03-22 at 21:13, Alexandre wrote:
> Hi there,
>
> I'm developing an online game (using PHP+MySQL, and being totally interfaced
> via
> web) which needs to have a "game cycle" running. For example, the player is
> flying a plane, so he sets the plane speed to 10%, then the game cycle
Hi there,
I'm developing an online game (using PHP+MySQL, and being totally interfaced via
web) which needs to have a "game cycle" running. For example, the player is
flying a plane, so he sets the plane speed to 10%, then the game cycle needs to
keep "moving the plane" forward (i.e. updating po
11 matches
Mail list logo