LOVE Terminal Emulator
Posted: Fri Mar 28, 2014 4:39 am
Hi all! I've always been fascinated with text interfaces, so I decided my next (well first real) game should be an interactive text adventure. In doing this I implemented a complete terminal emulator! As of now its not easily embedable inside another game, however if there is enough interest I might work on that (a la quake terminal perhaps).
Update 3/31/14:
Made some huge improvements to the handling of the terminal and completely changed the tech demo. The terminal is now custom sizable so my demo now showcases how to implement a quake style drop-down terminal. Use the tab key to activate and deactivate the terminal. I have implemented one valid command: set. You can use this to change the values of the bouncing ball object like so:
set ball.xVel 100
The ball has an x, y, r (radius), xVel, yVel values that you can change using the set command. Any other input will just bring up the list of commands.
The one main bug is that the input line is not wrapped to the terminal width like the output is. I will hopefully have this fixed soon.
Update 4/4/14:
This is just about a full featured terminal emulator now! Output scrolling and line breaking is handled better, the input line supports overflow if you type beyond the terminal width, and output text scrolling can be disabled if you don't want it. I also added some basic comments for usability, but it still needs a wiki.
Demo now supports: set outputScrolling [true, false]
Grab it on bitbucket: https://bitbucket.org/draetheus/lovetty
Update 3/31/14:
Made some huge improvements to the handling of the terminal and completely changed the tech demo. The terminal is now custom sizable so my demo now showcases how to implement a quake style drop-down terminal. Use the tab key to activate and deactivate the terminal. I have implemented one valid command: set. You can use this to change the values of the bouncing ball object like so:
set ball.xVel 100
The ball has an x, y, r (radius), xVel, yVel values that you can change using the set command. Any other input will just bring up the list of commands.
The one main bug is that the input line is not wrapped to the terminal width like the output is. I will hopefully have this fixed soon.
Update 4/4/14:
This is just about a full featured terminal emulator now! Output scrolling and line breaking is handled better, the input line supports overflow if you type beyond the terminal width, and output text scrolling can be disabled if you don't want it. I also added some basic comments for usability, but it still needs a wiki.
Demo now supports: set outputScrolling [true, false]
Grab it on bitbucket: https://bitbucket.org/draetheus/lovetty