psykiatris / inspirations

This project is slowly being built into a multiplayer environment using JDK10.
MIT License
1 stars 0 forks source link

Need to use terminal #3

Open psykiatris opened 5 years ago

psykiatris commented 5 years ago

Due to being legally blind, I need to use the console as its set to the right font size for me.

If I do a GUI it will be too large for most of you.

I have been playing with different code samples and cannot find anything suitable.

I know how the sockets work, but if I try passing my console input to the out stream, it acts weird or does nothing.

Some insight would help here.

psykiatris commented 5 years ago

With the latest commit, I managed to get something going. It isn’t perfect but it will be modified to take on more complexity.

Will mark this issue as closed when things work as it should.

Working on a log in structure that will have passwords.

When that’s all done, the next part is developing a “world” structure to allow players to move atound.

psykiatris commented 5 years ago

I’m still playing with it, attempting to achieve this using channels. I understand that I can passed an accepted SocketChannel to a new Thread. Seems a lot of code (binding), stuff like that.