erfanian / AsciiFree

A python remake of SkiFree in ascii.
0 stars 1 forks source link

R&D on character input processing #4

Closed ccorn90 closed 11 years ago

ccorn90 commented 11 years ago

Goals:

erfanian commented 11 years ago

Check out these modules @ccorn90:

http://docs.python.org/3.1/library/queue.html#module-queue http://docs.python.org/3.1/library/threading.html

I also have some rendering stuff at the top of inputEngine that you can copy.

ccorn90 commented 11 years ago

Okay, I like the locking queue as a way to pass things out to . The inputEngine.py file is looking like it has some good stuff in it! Let me know when you're ready to wrap it in a manager object - what it's sounding like is a thread dedicated to input processing will be really good.

I'll also make sure that curses is threadsafe. THAT would be too bad.