Welcome to another useful utility from the lab of dw817. (ME !)
This particular one is a full UPPERCASE and lowercase keyboard. that's right, your strings are indeed saved in lowercase if you select that from the keyboard.
You can use the mouse, touch-screen, or even the arrow keys and (z) (x) to add and remove letters.
What is especially useful about this particular keyboard is that it saves everything prior to being called. And that includes the graphic area it appears at. Any sound effects as it has its own. And even a custom sprite mouse cursor.
All your files are saved in memory first before the keyboard is available (and it's really fast so you won't notice it doing it). :)
In exiting, all your data, screen area, SFX, and sprites are returned back to you.
BY THE WAY !
This program is not yet done. Not for me anyways. I am posting it though now cause it is fully functional and working and likely more than enough for your input needs.
But there are several things yet I still want to add to it.
I want to have a dictionary for single or two keystroke verbs and nouns for text adventures. Clean up the code - it's =really= messy right now, and add some cool keyboard animation so the key actually
looks like it's being pushed down.
. . .
I wrote this utility in seeing PICOBOARD, a good high-score name input program with marvelously small coding size - but it is not as thorough as this utility. (which in deference is quite a bit bigger).
As with all my tools, feel free to suggest items or extra abilities you would like to see in them.
If it's within my power, it just might happen ! :)
. . .
Should ZEP wish to use my code and/or method as the primary input model for PICO-8, I will certainly relinquish all code and property rights in order to provide him and all users with a good input base for this programming language.
The usefulness of my program and motive becoming clear in the absence of any completely thorough libraries and routines providing both uppercase, lowercase, and in fact all keystrokes from a standard if somewhat miniaturized IBM-keyboard - previously existing for PICO-8.
Now you can click your mouse, touch the screen, or press (Z) to move along the instructions. The editor is still the same, you can use arrow keys and (Z) and (X) to navigate, or use the mouse, or use the touch-screen to make your entry for INPUT.
This is great. Not sure if full keyboard input will ever hit Pico-8, but it's great to have more libraries for handling text. And the UI you put together here is very clean and easy to use.
What would be really useful would be a library for hypertext -- i.e. printing text to the screen, but with certain words tagged as links which you could select with the gamepad. You could definitely put together a decent text adventure that way.
Hi Musurca. The very item.
When I wrote my text adventures years ago, while Scott Adams required full VERB/NOUN entries, I configured mine for single keystrokes.
For instance, in input: you would hit "T" and the word TAKE would appear. You hit "B" and from the dictionary of NOUNS, "Brass-Key" would appear.
So you only needed to type two-characters for all my adventure games, or one if it was "NSEWUD" for North, South, East, West, Up, Down. I had it all worked out long ago. This could definitely be incorporated into my INPUT routine.
Right now I'm working on finishing up a compressor utility (so you can have multiple splash pages as part of your source). I finish that, I'll take a look at what I've already done.
I know I wanted to do more HERE:
Kind of a fussy logo. (I had fun). Just hit or hold (Z) to bypass it.
My friend, Chris, could not get this to work for him. I had forgotten that only (Z) key could move along the introductory text. Now this program (and the one I'm still working on), can continue text by touching the screen or clicking the mouse in addition to the (Z) key.
Thanks ! Coming from you that means a lot ! :D You are the first one to write a usable input engine - and I want to give you credit for that.
I can see myself the code I wrote is rather large and convoluted. I'm still working on a data compressor ATM, but want to get back to this to clean it up, optimize it, and shrink the main size.
What I need to realize and remember is - people who have touch screen telephones do not have access to (Z) or (X), so for any software I write, I will always need to make it so that it works with the mouse to cover all bases.
Afburgess, didn't you write a mouse-input routine at one point ? I seem to remember it ...
I like your mouse program with the shaped keyboard. Mine turned out really Chiclet more than I expected.
As for drawing without sprites, it's not that difficult. I'm currently finishing (Yay !) a routine that takes ALL 256-sprites from the screen and converts it to program data.
I will definitely post that for you when it is complete. And then you can carefully see what is being done there. :)
While you guys may find my keyboard useful, I went to see my friend, Bill, and - while I watched him do it, he brought up this APP and could not type with it.
It recognized the "hit any key" to continue to show and flow through the instructions and information, but it did not actually show the pointer nor "hit" any keys when you used your finger.
Do you get the same results with your own cellphone - and if so, what could be causing this - and does it occur in other similar apps you've seen that use the mouse ?
Additionally a ZOOM button (Zep) would be helpful as when you run a PICO app, half the "fun" is getting it scaled by pinching and zooming your fingers so it fits the screen where you can see all 128-pixels entirely.
Yeah when I went to use it the mouse was always ~50px above where I clicked. In mobile devices you are never going to get true mouse behaviour unless you have something like a blackberry with mouse trackpad. But how many people use a BB device these days (I miss my Q10).
However this is really interesting. I can imagine a text adventure running off this.
Hi Sudoradish. The very item, I wanted to use this for Text Adventures, but with a dictionary, so if you type out 1- or 2-letters, it would automatically type the command.
Verb Dictionary, "1North,1South,1East,1West,2Get"
Noun Dictionary, "1Key,2Bottle,2Beard"
So if you typed N S E W your player would go in that direction. But you would have to type "G" and "E" to have GET appear.
Same thing with the nouns. You would hit "K" by itself to get key, but need to type "B" "O" for Bottle, and "B" "E" for Beard.
So, you're answering my question then. Pico DOES NOT run well on cellphones.
Well now, Tyroney, I couldn't get (O) or (X) to work either on Chris's cellphone. Just how DO you get input from a cellphone to a PICO app ?
Now, I know the reading of the left mouse button works as reading a tap on the screen with a finger - but that's as far as I know.
[Please log in to post a comment]