I'm in the process of learning php. I have read through several tutorials, and am begining to understand the major concepts. I do have a question about php's abilities.
I want to design a game. I want to make a downloadable gui engine to interpret certain things, and simulate real-time gameplay. I know this so far can be accomplished in php, but there is something that I'm not sure about. In this game, I want there to be rooms, creatures, and player-interaction. Creatures need to act independently from the players, meaning they can go from room to room based on radom numbers. If you sit still in room A, creature 1 may come in, then go into another room, and later on you can go find the same creature.
I also need player-interaction, where players can attack other players, and see this in real-time. All php games that I've seen are different than this, in that you can't see other players in rooms - probably because you wouldn't see the players leave, or attack you, etc. until you refreshed, or tried some other command.
I'm sorry if this is confusing. Please tell me if I need to make it clearer.
If someone knows of a game that already accomplishes this in php, please let me know, or if its not possible, what language should I look into? C++?
Thanks
game question
Moderator: General Moderators
-
jabbaonthedais
- Forum Contributor
- Posts: 127
- Joined: Wed Aug 18, 2004 12:08 pm
To make it clearer, I think these are the two questions I have:
1. Can php run on the server, changing its own databases constantly, or does it have to receive commands from players?
2. Can you have a frame that can receive code from the server at any time? For example, if you are just sitting in a room, not using your IE, and I attack you, it needs to show you that you've been attacked (without you doing anything).
1. Can php run on the server, changing its own databases constantly, or does it have to receive commands from players?
2. Can you have a frame that can receive code from the server at any time? For example, if you are just sitting in a room, not using your IE, and I attack you, it needs to show you that you've been attacked (without you doing anything).
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
This all can be done with PHP, however, I think it'd be better done in C/C++ ... as all you really seem to want is a client to connect to the server, have the server process and broadcast the information to each client. The server would interact with the database directly, than through a third-party like PHP..