Re: Game development approach

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 needs to 
> keep "moving the plane" forward (i.e. updating position), while the player 
> doesn't order it a full stop. The point is how to implement this "game cycle"?
> 
> I've done some research on the web and haven't found a feasible approach to this 
> idea.

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.

Cheers,
Rob.
-- 
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for       |
| creating re-usable components quickly and easily.          |
`------------------------------------------------------------'

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux