I am thinking about creating a text-based game. I am wondering which language (anything other than Java) would be best to create this. I am leaning toward LUA, but I am wondering if C or C++ would be ideal. I am also wondering: Which is the easiest and the best language to use for a text-based game? (As in, the user enters commands to do stuff.)
Id say English would be the best language for a text based game.
... sorry im a bit of a joker ;p
The best programming language is just the one you have the most experience with, if you have no experience with any, well, id say Python, ive heard good things about it, dunno how it effects a text based game though.
Rollback Post to RevisionRollBack
Your friendly neighborhood dragon. Don't be scared, I won't bite!
I am here for you, Don't be afraid to send me a message.
I'd go with either Python or C#. Both won't kill you over petty things (for a text based game, anyway)
Or that mysterious C+, of which i never saw before.
Rollback Post to RevisionRollBack
"If you aren't ashamed of what you coded 6 months ago, you aren't progressing as much as you should." - My Website : Altar-Apps,Applications, Libraries, APIs, Code snippets and the Heart of Sin roguelike game!
I'd also recommend Python for a text adventure. It's how I learned
Rollback Post to RevisionRollBack
I would rather live my life as if there is a God and die to find out there isn't, than live my life as if there isn't and die to find out there is.Albert Camus
I'd steer away from C++ for this, unless you plan on making it extremely complex (think D&D). Even then, it's not necessary.
Just go with whatever you feel most comfortable with, and I'd recommend steering towards a language with a (proper) implementation of object-oriented programming.
Unless you're writing an engine that will take input from text files and whatnot in order to generate the story panels and pathing, then I'd stay away from a compiled language like C++, C# or Java. Having to make myriad textual or pathing changes in them would just be a pain.
If you want to keep it simple, then stick with an interpreted language like LUA or Python.
If you do want to make it complex and make it an engine, though, then any of those compiled languages are good choices.
Lua is a fine language, and I do like it. Just make sure that you try not to use it as a pure imperative language. Make good use of its functional features, for they are where its power lies.
It can also sorta do OO stuff with tables, which is basically the same sort of OO stuff that Javascript has: Maps with first-class functions. I personally think it's a little weak, but whatever, it's usable.
... sorry im a bit of a joker ;p
The best programming language is just the one you have the most experience with, if you have no experience with any, well, id say Python, ive heard good things about it, dunno how it effects a text based game though.
I am here for you, Don't be afraid to send me a message.
Or that mysterious C+, of which i never saw before.
- My Website : Altar-Apps, Applications, Libraries, APIs, Code snippets and the Heart of Sin roguelike game!
HTML is not a programming language.
C+ is not a programming language.
I second C#. I used Python for my first text game, C# for my second. C# was a much better experience.
Just go with whatever you feel most comfortable with, and I'd recommend steering towards a language with a (proper) implementation of object-oriented programming.
"Programmers never repeat themselves. They loop."
If you want to keep it simple, then stick with an interpreted language like LUA or Python.
If you do want to make it complex and make it an engine, though, then any of those compiled languages are good choices.
Javascript is primarily used in webpages. Using that for a text adventure game within a webpage might not be best approach for this.
However, Java is a programming language that operates on it's own interpreter as a program in your computer. This would work for a text adventure.
MacModder - There really is no ideal language for a text adventure, because it's such a simple task. Choose one that's attractive to you and learn it!
It can also sorta do OO stuff with tables, which is basically the same sort of OO stuff that Javascript has: Maps with first-class functions. I personally think it's a little weak, but whatever, it's usable.