Forums New Cubied Thread
Working Printer in New Cubied
Posted Jan 31, 2024, 7:43pm CST
OP
Edited Jan 31, 2024, 7:46pm CST
To showcase what the 1.1 update is capable of I made this text printer machine. The player can either select one of the preset messages or write their own using an included keyboard. The messages are encoded into groups of tiles with specific attributes. The machine then decodes the messages from the tiles, finds the correlating characters and then copies them to a 12x8 display. The machine is capable of displaying 48 different characters and has both multicolor support and line breaks. You can try it yourself here. I have included a diagram below that tries to show how it works.
- Source character set
- Character set row buffer
- Character set column buffer
- Variables (from left to right)
- Current display column
- Encoded character
- Tape feed input
- Running state
- Custom text input
- TRIGGER: Automatically reset when world is loaded
- FUNCTION: Machine reset
- MAIN LOOP: Tape feed loader
- FUNCTION: New line detection
- FUNCTION: Copy row from source character set
- FUNCTION: Copy character from row
- FUNCTION: Color character
- FUNCTION: Copy character to display
- Tape feed/input buffers
- User input logic and cursor
Replies
This is an advertisement. Get Ezcha Elite to remove ads.