[0x0] | |
--// 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 //--
Whats new::
- 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 //--
@matt Oooo, I hadn't thought of that! Will give it a go! Thank you!
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 !
... Update:
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.
http://dppc.github.io/p8keyboard.js/asciidraw.html
No source code I can see. :(
I would love if the pocket could have native keyboard support - my original idea was to do a text adventure of some sort!!
The IBM keyboard support looks interesting... I wonder how it works?
Thank you for all the comments! :)
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:
INPUT A$
PRINT A$
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!
Remember folks, the NES had "text" adventures like Maniac Mansion without the use of a keyboard. While I won't argue that KB/mouse support for a Pico derivative system wouldn't be nice, you can still make due without it if you get creative.
@hotsoup thats very true - I haven't played maniac mansion before, I will go and have a look at it!
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.
https://www.lexaloffle.com/bbs/?tid=27874
Oh, and I found the IBM keyboard "plugin" is just that. It requires modified Javascript - so no way to read or test keyboard either offline in PICO.EXE or online in the BBS. :/
We just have our little keyboard INPUT programs, right ? :)
Amazing job. I ended up using this as a base for a mod of my Pico-8 Word Processor.
[Please log in to post a comment]