News : The level of daily SPAM has reached insane proportions, all registrations are now manual. I ask you to send me an e-mail (john (at) murga (dot) org), to confirm that you want me to create an account for you.


Post Reply  Post Thread 
Convert bitmap image to ascii
Author Message
mikshaw
Senior Member
****


Posts: 522
Group: Registered
Joined: Apr 2007
Status: Offline
Reputation: 5
Post: #1
RE: Convert bitmap image to ascii

Quote:
Is there a wait to get input in console in Lua?
Like "you are in a dungeon there are exits north and west, what will you do?
And then the program waits for input like "N" or "W" before continuing.

my_variable=io.read()
if string.lower(my_variable)=="n" then print("north") end

This post was last modified: 01-17-2009 02:23 PM by mikshaw.

01-17-2009 02:22 PM
Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

Messages In This Thread
Convert bitmap image to ascii - iGame3D - 01-09-2009, 11:04 AM
RE: Convert bitmap image to ascii - mikshaw - 01-17-2009 02:22 PM

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump: