Forums New Cubied Thread


Working Printer in New Cubied

Dylan

Admin

Level 35
Joined 9/14/16

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.

  1. Source character set
  2. Character set row buffer
  3. Character set column buffer
  4. Variables (from left to right)
    • Current display column
    • Encoded character
    • Tape feed input
    • Running state
    • Custom text input
  5. TRIGGER: Automatically reset when world is loaded
  6. FUNCTION: Machine reset
  7. MAIN LOOP: Tape feed loader
  8. FUNCTION: New line detection
  9. FUNCTION: Copy row from source character set
  10. FUNCTION: Copy character from row
  11. FUNCTION: Color character
  12. FUNCTION: Copy character to display
  13. Tape feed/input buffers
  14. User input logic and cursor

Replies

Join the Ezcha Network!

You must be logged in to reply.

Login or register

Yek

Level 13
Joined 12/25/21

Posted Jan 31, 2024, 7:44pm CST

schleezy

This is an advertisement. Get Ezcha Elite to remove ads.