How do i create a text base game with php

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
sobbles
Forum Newbie
Posts: 3
Joined: Sat Aug 10, 2002 10:29 pm

How do i create a text base game with php

Post by sobbles »

plz help ireally want to create one
rats
Forum Newbie
Posts: 21
Joined: Fri May 31, 2002 5:55 am

Post by rats »

you can do it with html using just hyperlinks for navigation.

you could use php to keep an inventory of items picked up/dropped.

An example
first page

You have just woken up in a strange room. By the taste in your mouth and the pain in your head you have a hangover. You are lying on a bed. The room has two doors, one in the south wall the other in the east.

Then give the options in hyperlinks.

What do you want to do?
Open the south door.
Open the east door.
Go back to sleep.
Look under the bed.

These link to other pages with a description and a set of options(links)

Use php to have a standard options. such as search, inspect, get, drop ect

these will be links to a php script.
Zmodem
Forum Commoner
Posts: 84
Joined: Thu Apr 18, 2002 3:59 pm

Post by Zmodem »

How do you paint the mona lisa?
How do you build the brooklyn bridge?

The answer to your question can't just be summed up simply. Is there something specific you need help with?

Unless of course, rats answered your question.

--cheers
Post Reply