text based game

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
supertails
Prole
Posts: 5
Joined: Sun Jul 18, 2010 5:08 am

Re: text based game

Post by supertails »

Thank u guys for the help. I got the game working but I'm afraid the game will have a force ending point to it.
There's only so much keys on a keyboard.
User avatar
Luiji
Party member
Posts: 396
Joined: Mon May 17, 2010 6:59 pm

Re: text based game

Post by Luiji »

Never write a text-based game in LOVE unless you want graphical text. Why?
  • You will have to manage the text on the screen using all sorts of crazy code.
  • You will have to distribute a monospace font.
  • You will have to draw onto an SDL window as supposed to a Terminal window, thus making console users unable to run a console-based game!
  • SDL takes up WAAAAAY more memory then a plain Terminal window.
Just write your game in pure Lua!
Good bye.
User avatar
Jasoco
Inner party member
Posts: 3725
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: text based game

Post by Jasoco »

You might as well find a copy of DOSBox, get a copy of QBASIC or QuickBASIC and write it in there.
User avatar
Luiji
Party member
Posts: 396
Joined: Mon May 17, 2010 6:59 pm

Re: text based game

Post by Luiji »

Gluh, making people have to install DOSBox would be lame as heck unless you are trying to make a retro-graphical game. For a text-based game, I still highly recommend using Lua pure, Python, Ruby, or something else.
Good bye.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: text based game

Post by Robin »

or BrainFuck? :D

Just don't do it in Java. Or GameMaker. /me shudders
Help us help you: attach a .love.
User avatar
Luiji
Party member
Posts: 396
Joined: Mon May 17, 2010 6:59 pm

Re: text based game

Post by Luiji »

I wouldn't suggest GameMaker for the same reasons as LOVE. I won't re-list what I've already stated.

BrainFuck would only be good if you want everybody to think you're awesome.

If you want to do more rapid development and stuff, then I recommend Python. Why? I don't know. I guess because a lot of people know it so people will easily be able to understand your code if you want to invite others to help develop it.
Good bye.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: text based game

Post by Robin »

Luiji wrote:BrainFuck would only be good if you want everybody to think you're awesome.
I fail to see how that ever would not be the case.
++++++++[>++++++++++<-]>.<+++[>++++++<-]>+.>++++++++[>++++++++++++<-]>+.+++++++++++..+++++++++++++.
Luiji wrote:If you want to do more rapid development and stuff, then I recommend Python. Why? I don't know. I guess because a lot of people know it so people will easily be able to understand your code if you want to invite others to help develop it.
Personally I would use Python if I wanted to use fancy terminal action (because Lua won't help you doing much more than manually printing ^[[1m and friends, plus Python's simplest line editing capabilities are much higher than Lua's) or ditto string action (have I mentioned I hate strings in Lua?).
But I prefer Lua if I'd want the engine to get out of my way, so I can focus on the textual part of the game. (At which point I usually abandon the game. :()
Help us help you: attach a .love.
User avatar
Luiji
Party member
Posts: 396
Joined: Mon May 17, 2010 6:59 pm

Re: text based game

Post by Luiji »

Programming an entire text-based game in BrainFuck is impressive to newbes, I should say.

Code: Select all

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]
+++++++++++++++++++++++++++++++++++++++++.
Good bye.
User avatar
vrld
Party member
Posts: 917
Joined: Sun Apr 04, 2010 9:14 pm
Location: Germany
Contact:

Re: text based game

Post by vrld »

Text games using SDL can be great: Dwarf Fortress
I have come here to chew bubblegum and kick ass... and I'm all out of bubblegum.

hump | HC | SUIT | moonshine
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: text based game

Post by bartbes »

ASCIIportal.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 80 guests