Re: server side games question
| From: | Brinkman, Theodore | Date: | Fri, 16 Nov 2001 14:54:00 +0000 |
| Subject: | Re: server side games question | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-74879@lists.php.net to get a copy of this message | ||
Sorry for sending this message through the list, but I'm getting mail errors
when I try to send it directly.
- - - - -
Sorry it took so long. The generation scripts aren't very fleshed out,
and neither is the display format, but it's a good solid example of the
basic example. Every main unit of distance (tile, sector, screen,
etc...) has a key which can be calculated from nothing more than it's
location, and this key is used to generate pseudo-random information
about that location. Obviously, in a game where that information could
change, a database of some sort would be needed to record those changes,
but you don't need to store every bit of data about every section of a
1000 x 1000 universe.
The scripts I created are attached. I haven't tinkered with them for a
while, so I'm not completely familiar with them any more, but you can
pretty much navigate through them starting from index.php.
- Theo
- - - - -
Remember, the guy who has to maintain your code may know where you live.
<<BFconfig.php>> <<BattleFleet.css>> <<combat.php>>
<<index.php>>
<<alert.txt>> <<map.php>> <<page.php>>
<<login.php>> <<sector.php>>
>-----Original Message-----
>From: Brown, Daniel (staff) [mailto:D.Brown@mail1.tay.ac.uk]
>Sent: Tuesday, November 13, 2001 10:19 AM
>To: 'Theodore.Brinkman@standardregister.com'
>Subject: Re: server side games question
>
>
>What's the project? Don't know yet probably some form of wargame I would
>imagine a time based RTS or something (i'm not sure yet). I've not done
any
>decant C/C++ coding for too long and am now getting must
>code-something-cool-soon feeling last time this happened I ended up making
a
>3d landscape generator....
>
>I would be interested to see your code for generating a star map, its
>something I have always thought of doing and have never quite got round to
>doing!
>
>Cheers,
>
>Daniel
>
>"Theodore Brinkman" <Theodore.Brinkman@standardregister.com> wrote in
>message
>news:<5A0528E53FDFAB48B301F8BED4351382588049@ohdaytoxch03.US.SRC.LAN>...
>
>>PHP will do fine. What's the project? I'm a wannabe game developer, and
>>
>>I
>>
>>had a bit of fun a few months back with randomly generated, but
>>reproducable, game worlds (in my case it was a star map for a space
>>
>>conquest
>>
>>type of game). It's a really neat concept, and its how alot of the 'big
>>world' games were done when games came on floppy disks.
>>
>>The code isn't very polished, but if you're interested in that sort of
>>thing, I can dig it up and fire it off to you.
>>
>> - Theo
>>
>>>-----Original Message-----
>>>From: Daniel [mailto:spam@nospam.com]
>>>Sent: Tuesday, November 13, 2001 5:32 AM
>>>To: php-general@lists.php.net
>>>Subject: server side games question
>>
>>
>>>Hi,
>>>
>>>Right I'm still pretty new to server side programming and have a few
>>>questions regarding the possible uses of existing technology in
'low-tech'
>>>(not 3d FPS/RTS/RPGs) online games. As I understand it PHP is used to
add
>>>dynamic content to HTML (from MySQL database for example) and it is also
>>>possible to write applications in C/C++ that run on server computer (SUSE
>>>7.2 + APACHE for example) that update databases at set time intervals. I
>>>
>>>am
>>>
>>>a games programmer and was wondering if it would be possible to code the
>>>following system which would run on an SUSE Apache server box:
>>>
>>>An database containing client and game data (use MySQL?),
>>>An HTML/PHP based front end (is PHP best choice for this?),
>>>A Some form of application that process the game or turn info (in the DB)
>>>
>>>at
>>>
>>>>set time intervals and updates the game database with it (use C/C++?).
>>>
>>>I am competent in C/C++, ok at php and ok at MySQL but not sure how to
fit
>>>it all together like how do I go about creating an application that
>>>process's the database? Can any one suggest sites/books/people who I
>>>
>>>could
>>>
>>>read/ask to find out more about this idea? Also are the languages I
>>>specified the best languages to use for this? I am open to suggestions
>>>
>>>and
>>>
>>>constructive criticism.
>>>
>>>Cheers,
>>>
>>>Daniel
>>>
>>
>
******** Network Associates GroupShield Exchange ********** ******** Alert generated at: Friday, November 16, 2001 12:19:51 AM Eastern Standard Time ********************************************************************** The file login.html has been replaced. Please consult your administrator for further help and remember to quote your ticket number: OA2114_1005887991_OHDAYTOXCHG3
******** Network Associates GroupShield Exchange ********** ******** Alert generated at: Friday, November 16, 2001 12:19:51 AM Eastern Standard Time ********************************************************************** The file login.html has been replaced. Please consult your administrator for further help and remember to quote your ticket number: OA2114_1005887991_OHDAYTOXCHG3