BestTechie Forums: Programing Type In Text Base Games - BestTechie Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Programing Type In Text Base Games


#1 User is offline   Bob 2.0 

  • Member
  • Pip
  • Group: Members
  • Posts: 3
  • Joined: 20-May 08

Posted 20 May 2008 - 10:03 PM

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.

#2 User is offline   iccaros 

  • UberTechie
  • Group: Linux Experts
  • Posts: 1292
  • Joined: 31-August 04
  • Location:Great State of Washingtion
  • Operating System:Gentoo,Iccaros-Linux(of course),Slackware,GentooX,Red Hat, Windows (3.1 to VISTA BETA), MAC OSX (10.4 currently),LFS, Solaris 8,9,10, Trusted Solaris, FreeBSD, OPENBSD, NETBSD

Posted 25 May 2008 - 12:19 AM

Language?


text base games basics

list of rooms = multi-dimensional arrays
list of attributes a class
list of items = array

lots of typing..

#3 User is offline   Bob 2.0 

  • Member
  • Pip
  • Group: Members
  • Posts: 3
  • Joined: 20-May 08

Posted 17 June 2008 - 11:41 PM

View Posticcaros, on May 25 2008, 12:19 AM, said:

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)

This post has been edited by Bob 2.0: 17 June 2008 - 11:46 PM


#4 User is offline   Matt 

  • root
  • Group: Contributor
  • Posts: 3512
  • Joined: 23-August 04
  • Location:Ohio
  • Operating System:Ubuntu 9.04 (64 bit), Vista Home Premium (32 bit)

Posted 18 June 2008 - 12:43 AM

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.dangermou...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.

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users