A game which eschews the use of graphics and instead relies on text to descriptively illustrate the world. Often involves parsing text input from the player to determine action.

learn more… | top users | synonyms

37
votes
9answers
11k views

Why is it bad to hard-code content?

I know most games store dialogue text in files, but I've also seen a few text-based games actually program the content (map, choices, possible player commands, story text) into the game code. I can ...
14
votes
2answers
553 views

Embed IF text parser in another game?

Are there any existing interactive fiction text parsing engines that I can embed in another game or application? I'm looking to use something as a library. I can pass it the available objects and ...
10
votes
1answer
365 views

How can I store spell & items using a std::vector implementation?

I'm following along with a book from GameInstitute right now, and it's asking me to: Allow the player to buy and carry healing potions and potions of fireball. You can add an Item array (after ...
9
votes
6answers
5k views

How should I parse user input in a text adventure game?

Parsing user commands in a text adventure is a spectrum from Adventure's simple "go north" to some mind-bogglingly clever ones in hhgttg. I seem to remember reading nice how-tos in computer magazines ...
9
votes
4answers
697 views

Generating grammatically correct MUD-style attack descriptions

I am currently working on a text based game, where the outcome of a combat round goes something like this %attacker% inflicts a serious wound (12 points damage) on %defender% Right now, I just swap ...
9
votes
1answer
645 views

Organising levels / rooms in a MUD-style text based world

I'm thinking of writing a small text-based adventure game, but I'm not particularly sure how I should design the world from a technical standpoint. My first thought is to do it in XML, designed ...
9
votes
2answers
715 views

Implementing behavior in a simple adventure game

I've been entertaining myself lately by programming a simple text-based adventure game, and I'm stuck on what seems like a very simple design issue. To give a brief overview: the game is broken down ...
9
votes
2answers
263 views

Using Editline for an in-game console

I'd like to add an in-game console to a C++ game that I am creating. Although rendering the console and parsing the commands I'm fine with, the text input and editing aspect (e.g. handling left / ...
8
votes
4answers
504 views

How to do branching dialogue in javascript

I'm making a very basic visual novel type of game in Javascript, I'm a beginner so I'm just doing this for fun and learning, and due to bad planning I have run into a bit of a problem when you get to ...
7
votes
4answers
287 views

Distinguishing between multiple objects with the same name in a text based adventure game/interactive fiction

I'm in the middle of writing my own parser in Python. I've managed to make some simple commands, with simple prints to make sure they work. Since I intend there to be combat, I needed to write a ...
6
votes
4answers
2k views

Text-based game using JavaScript and/or PHP

I'd like to make a simple text-based game using either JavaScript or PHP. Ideally I'd like to be able to render ASCII text in a kind of blackscreen "console" style (think console roguelikes such as ...
5
votes
2answers
487 views

Seperating entities from their actions or behaviours

I'm having a go at creating a very simple text based game and am wondering what the standard design patterns are when it comes to entities (characters, sentient scenery) and the actions those entities ...
4
votes
4answers
1k views

Creating the concept of Time

So I've reached the point in my exploration of gaming where I'd like to impliment the concept of time into my little demo I've been building. What are some common methodologies for creating the ...
4
votes
2answers
853 views

Receiving user commands in a text based console game

I'm working on a little text based console game for a bit of fun and am starting work on the user commands entered into the console. Are there some good design patterns for deciding what to do with ...
3
votes
3answers
545 views

How to remove text from a command line box?

I'm currently writting a text based game and am currently having a slight issue where all of the text on the screen keeps going up and have had a couple of the testers complaining that it makes the ...
3
votes
3answers
163 views

How do you accommodate newbies while still creating depth in the design of light/dark systems for MUDs (or other text-based games)?

I've been pondering a redesign of our MUD's light/dark system. Our current system accommodates new players by simply not saddling them with being unable to see should they happen to wander outside of ...
3
votes
2answers
559 views

Introducing generic commands in text-based interactive fiction game

Writing a compact text-adventure engine I was thinking about possible commands a player could use. For each location i have special commands described in the text but what about generic commands like ...
3
votes
1answer
92 views

What is a reasonable terminal size across Linux distributions?

I'm working on a Curses-based roguelike; it should (and does) work in both Linux and Windows (various flavours of each). Currently, I'm enforcing a hard requirement of "your terminal size must be ...
2
votes
2answers
318 views

How can I switch between scenarios in a text game?

I am making a text-based adventure game. How should I go about changing to another scene if the player wants to e.g. go to the house or walk down the road? I am using Objective C, but C will work ...
2
votes
1answer
340 views

Choose your own adventure console program

I'm new to programming and am writing a choose your own adventure game in C++ and am having trouble with exiting the program. The way I have it set up is I am using functions as the different pages. ...
2
votes
2answers
199 views

How do I make an equipped item affect the equipper?

I'm making a small text-based adventure in Objective-C. I have a Player class with four properties which represent the player's attributes (strength, agility, stamina, and intelligence). I also have a ...
2
votes
1answer
563 views

Java how to color text without using JNI?

I am working on a small text-based game in Java. I am trying to understand the concept of how to color the output without needing to use JNI. C++ has the ability to modify the console directly and ...
1
vote
3answers
1k views

Text based game in XNA

I want to create a text based game, where the player will type up,down, left or right and the sprite will move in that direction. I created the game and at the moment the player moves with the ...
1
vote
2answers
241 views

Simple browser game help [closed]

As my first "real" project, I'm working on a game that I intend to be single-player, web-based, and primarily in text. I need the ability to save choices the players make, and to have certain ...
1
vote
1answer
284 views

How to decide who wins a race?

I'im thinking of building a text-based browser game. A racing game.like F1 or rally. users can set-up a car. thinks like tyres, fuel, driver,brakes. every attribute gets a value. the part where i ...
1
vote
2answers
542 views

Passive skills and items

I'm making a small text browser RPG game using PHP, MySQL and Java Script (and jQuery). All the items are saved in the MySQL database. Every now and then a character have to make a skill roll (Talk, ...
0
votes
4answers
861 views

How to combine multiple sprite sheets from multiple sources (Actionscript/Starling)

In starling, it's faster if you use BitmapText instead of traditional text. Which is well great except for one issue. Right now the sprite sheet I was making was with a single Fla. I just created the ...
0
votes
1answer
175 views

Need help thinking of a way to code a text parser

Apologies if this has been asked before, or if it is a bit too simple for this forum. I'm new to C++ and as one of my first projects I have decided to try a textual adventure. Step 1: the text parser. ...
0
votes
1answer
141 views

Player & Level class structure in 2D python console game?

I'm trying to create a 2D console game, where I have a player who can freely move around in a level (~map, but map is a reserved keyword) and interfere with other objects. Levels construct out of ...
0
votes
1answer
204 views

Storing player's tilemap position inside the player object

I'm trying to create a multidimensional array as a sort of 2D map for a text-based RPG game. I want to create a multidimensional array that's, for example, 5x5. The array would be filled with 0s to ...
0
votes
1answer
233 views

Does it make sense to build a text-based game Facebook app without using Facebook? [closed]

If I am building a text-based browser game, does it make sense to build it on you domain first, without using the Facebook API? I don't want to buy an SSL if I don't end up following through with ...
0
votes
2answers
257 views

Ways to expose engine API for text-adventure games (XML, JS/DSL, …)

While developing an engine for text-adventures I'm still unsure how to expose the API it provides to the developers/writers. My two concepts for now are: Running a small JS engine which executes JS ...
-1
votes
1answer
2k views

How to create a text-based game? [closed]

I would like to create a text-based game. As simple as that. I have some understanding of the coding that needs to go into it as I do know a fair amount of JavaScript and I can do it in the ...
-3
votes
1answer
398 views

Is there a market for a Text-based empire-building game? [closed]

I am working on building a text-based in-browser empire building game. The screen will be split into a console and an EXTREMELY rough vector map of your empire (just squares in a bigger square). ...