Sign in to follow this  
God

Programing Type In Text Base Games

Recommended Posts

Im in a hurry and need the code for a type in text base game but im not a noob so i dont need the basice spoon feed to me. pls help.

Share this post


Link to post
Share on other sites

Language?

text base games basics

list of rooms = multi-dimensional arrays

list of attributes a class

list of items = array

lots of typing..

Share this post


Link to post
Share on other sites
Language?

text base games basics

list of rooms = multi-dimensional arrays

list of attributes a class

list of items = array

lots of typing..

I want it in xml and processed through php (or java script)

Edited by Bob 2.0

Share this post


Link to post
Share on other sites

Well, PHP is server-side, so every action input from the user would require a page reload. As for a javascript text game, here's something a quick search tossed up:

http://www.dangermouse.net/games/text.html

It's a short text-based java adventure. You can look at the source code to get a basic idea of how it works. Not the most efficient way, but it does the job.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this