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
jpjacobs
Member
***


Posts: 113
Group: Registered
Joined: Jul 2007
Status: Offline
Reputation: 0
Post: #1
RE: Convert bitmap image to ascii

iGame3D Wrote:
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.
I could and probably should do in a gui I suppose.


I've been searching for this stuff too, but apparently it isn't possible in console, as io.read always waits for a newline, and you can't change the input buffering behaviour.
So this would mean you would need to write some small routine in C to accomplish the job. I've been trying too, but i did not succeed. Let me know if you do get it right Wink.
In gui it's easy to just put some zerospace hidden buttons with hotkeys binded to them...


Anyhow, for the old adventure game lovers, there still is http://www.nethack.org (for all common platforms) Wink.

Greetz,
Jan-Pieter

01-17-2009 08:30 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 - jpjacobs - 01-17-2009 08:30 PM

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

Forum Jump: