How do i create a text base game with php
Moderator: General Moderators
How do i create a text base game with php
plz help ireally want to create one
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.
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.