Log In  

Cart #28738 | 2016-09-18 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
26

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

Cart #28503 | 2016-09-14 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
26

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

P#27046 2016-08-18 04:22 ( Edited 2016-10-12 01:28)

Quite cool.

P#27049 2016-08-18 09:51 ( Edited 2016-08-18 13:51)

Nice.

Maybe add mouse support, too?

P#27075 2016-08-19 07:12 ( Edited 2016-08-19 11:12)

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

P#27218 2016-08-22 15:50 ( Edited 2016-08-22 19: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 ( Edited 2016-08-27 01:48)

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 ( Edited 2016-08-31 20: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 ( Edited 2016-09-01 02: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 ( Edited 2016-09-01 06: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 ( Edited 2016-09-06 14: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 ( Edited 2016-09-06 17:04)
1

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 | 2016-09-14 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
1

P#28510 2016-09-14 14:26 ( Edited 2016-09-14 18: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 ( Edited 2016-09-14 21: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 ( Edited 2016-09-17 00: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 ( Edited 2016-10-12 02:19)
1

Amazing job. I ended up using this as a base for a mod of my Pico-8 Word Processor.

P#88488 2021-03-03 21:36

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-03-28 13:27:37 | 0.066s | Q:42