Log In  

19

Cart [#28738#] | Copy | Code | 2016-09-18 | Link
19

[29x5]

--// 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 //--

Cart [#28503#] | Copy | Code | 2016-09-14 | Link
19

--// 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 //--

keyboard text entry number numpad high score name
P#27046 2016-08-18 04:22

::

Quite cool.

P#27049 2016-08-18 09:51

::

Nice.

Maybe add mouse support, too?

P#27075 2016-08-19 07:12

::

@matt Oooo, I hadn't thought of that! Will give it a go! Thank you!

P#27218 2016-08-22 15:50

::

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. :(

P#27420 2016-08-26 20:50

::

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! :)

P#27790 2016-08-31 16:55

::

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$

P#27798 2016-08-31 22:01

::

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!

P#27817 2016-09-01 02:41

::

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.

P#28089 2016-09-06 10:44

::

@hotsoup thats very true - I haven't played maniac mansion before, I will go and have a look at it!

P#28096 2016-09-06 13:04

::

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!

Cart [#28508#] | Copy | Code | 2016-09-14 | Link
1

P#28510 2016-09-14 14:26

::

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! :)

P#28514 2016-09-14 17:12

::

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.

P#28629 2016-09-16 20:33

::

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 ? :)

P#30718 2016-10-11 21:28

Log in to post a comment

user:
password:

New User | Account Help
:: New User
X
About | Contact | Updates | Terms of Use
Follow Lexaloffle:        
Generated 2017-11-17 21:05 | 0.239s | 1835k | Q:48