Prime retro-gaming: trek!
|
08-30-2024, 10:34 PM
(This post was last modified: 08-30-2024 10:58 PM by komame.)
Post: #11
|
|||
|
|||
RE: Prime retro-gaming: trek!
The beta version of the terminal is ready.
Most features are operational, including: - text display with screen scrolling support (surprisingly, it works remarkably fast!) - tab (\t) support (configurable size upon terminal creation) - setting the cursor at any position on the screen (x,y) - light and dark mode - clearing the terminal - input mode Regarding the input mode, it currently works at a basic level, meaning it displays a prompt and allows entering text or numbers. It supports Backspace and Clear for erasing entered text. Currently, toggling the Alpha and Shift modifiers works in a somewhat limited manner, as the first press activates the modifier and the second deactivates it. There is no support yet for single-use. Of course, I intend to refine this. While playing Trek, I realized that it would be useful to have a feature in 'input' that initially sets the Alpha and Shift modifiers according to the type of data being entered. For example, when a command is issued, the Alpha modifier should be active immediately, and when a numerical value is being entered, no modifiers should be active. This terminal has such a capability (as an optional parameter to the 'input' function). I also plan to add support for diacritical characters and buffering so that the content of any part of the terminal can be read. I have other ideas, but more on that later... I will prepare a short documentation and share the source code tomorrow. (08-30-2024 12:58 AM)jte Wrote: I have definite memories of playing a C64 port of the game [...] I had exactly the same idea when I promised to write this terminal. I created a bitmap with a graphic presentation of each character in sequence (all in one line next to each other) and I copy rectangles depending on the given character (after converting it to its numerical value, which are then treated as indices for rightward shifting to select the correct rectangle). The font I used comes from an 8-bit Atari. That was my first computer back in the 80s... Piotr Kowalewski |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 6 Guest(s)