--// PicoBoard //--
PicoBoard is an easy to integrate keyboard overlay function which you can use in your projects. It uses the arrow keys to select a character, and is ideal for inputting a character name, a high score, or any other short piece of text. If you are looking at making a project where you input large quantities of text, you might like to look at my other keyboard project, QWERTY Boy, which uses a touch/mouse interface.
--// 1.3 //--
- Excellent optimisations from Sibwara, resulting in a reduction of over 100 tokens!
- Keyboard sounds
- Picoboard can now be called in your project just with the function Picoboard().
- The UI isn't as large now, so will be able to see more of whats going on behind Picoboard
Still to come::
- Instructions + Demo of how to implement Picoboard into your project
- Some better SFX for the keyboard (would love your help + contributions!)
--// Previous Versions //--
--// 1.2 //--
This version has be written from the ground up!
- Now only 658 tokens (down from 5119 tokens in the previous version)
- The text display now centres
- New blinking cursor
- String is stored in a table along with a string
--// Legacy Carts //--
This is really good ! Hopefully future Pico-8 will allow for true keyboard entry (if the hardware provides a keyboard).
Yet failing that and you are limited to buttons or touch screen, this is a great program for that !
I found a program running in PICO that reads the true IBM keyboard. Whether or not this will work for the POCKET is another question.
No source code I can see. :(
Afburgess, you and me both. I just mentioned in a different thread that I wanted to do a text adventure where you have true typing out of VERB and NOUN:
N S E W GET DROP GIVE SAY PUSH PULL HIT LOOK CLIMB EXIT JUMP USE LOAD SAVE QUIT etc.
SPACESUIT CONTROLS CONSOLE DOOR CRYSTAL
Would be great, just needs:
Hmmmm for the time being I would be tempted to try something like 'Snatcher', where you are always given the options of 'inspect', 'look', etc, but its not quite the same really!
Going to have a go and add mouse support, and an option to change the layout to qwerty this morning!
I've been playing around with alternative keyboard layouts/input methods for fun, so I thought I'd check out your code as well. It's a nice straightforward version with a low token count! I optimized the math a bit while looking through it, and cut it down by about 100 tokens. The optimized cart is below if you're interested.
I'll be looking forward to future additions/adjustments you make!
Sibwara - thats awesome!
Thank you so much, I really appreciate the help! If its ok with you, I would like to keep your changes for the next version? Your changes are all significantly tidier than what I had - I didn't know about modulo (the %=), thats super useful!
Thank you again! :)
Yeah, definitely use 'em. Happy to help! Just a warning, I might have hurt the readability on some of the functions for the printing though, so look through each change before taking them.
The modulo is a nice space saving trick whenever you have a resetting counter.
Just wanted to let you know, I linked you, Afburgess. Yours is the original model INPUT for PICO, after all. :)
I have finally finished writing mine, perhaps a bit more elaborate.
We just have our little keyboard INPUT programs, right ? :)
Log in to post a comment