Log In  

I like the new printable button glyphs introduced in 0.1.8. This is a small idea, but it'd be cool if they were allowed chars in variable names. Right now any appearance outside of a string is a syntax error.

Bonus: pre-define L R U D O X to equal their btn() values, so I can test btn(L) as well as btn(0).

P#23581 2016-06-24 22:27 ( Edited 2016-12-01 05:10)

I just really want them to be on ALT-key and not SHIFT-key. I type shifted letters a lot, out of habit, and I keep getting the new glyphs. :(

P#23584 2016-06-24 22:52 ( Edited 2016-06-25 02:52)

my immediate thought was to see if that worked, so it's something i'd go for too. the only problem is it wasn't clear to me which is O and which is X. different games have different conventions on which of 4 and 5 is "accept" and which is "back".

P#23649 2016-06-25 23:02 ( Edited 2016-06-26 03:02)

The documentation for BTN in the manual tells you which button is O and which is X. Some carts are just doing it wrong.

P#23658 2016-06-26 04:01 ( Edited 2016-06-26 08:01)

I'd LOVE for you to embed color codes in strings, something like # and it'd get printed in that color. So you could easily highlight important words without having to call print() multiple times.

P#23881 2016-06-29 16:25 ( Edited 2016-06-29 20:25)

YellowAfterLife made a nice little function for that a while ago
https://www.lexaloffle.com/bbs/?tid=2148

Of course it will cost you some tokens but sometimes it's well worth it

P#23884 2016-06-29 16:35 ( Edited 2016-06-29 20:35)

150 tokens is kind of expensive (but worth it for what it does, I guess). Still, it would be miles better if you could just embed it into a string, which would only have a character cost.

P#23887 2016-06-29 17:05 ( Edited 2016-06-29 21:05)

On that topic, maybe we could have more glyphs like the button glyphs, but for changing color instead. Not sure what keys we'd use, though. We couldn't just use the colors' hex IDs since using Shift on the number keys just gives you symbols, plus D is already taken by the down key glyph.

P#24058 2016-07-01 03:27 ( Edited 2016-07-01 07:27)

a proper way would be through escape codes, as suggested by danjen (and implemented by YellowAfterLife):
'\7roses are\8red \7violets are \11blue \7and I go back to \0...'

also you could chain codes, \xcc\x<background color><foreground color> - cc as 'change color'
\xcc\x07 is white on black, \xcc\xe0 is black on pink

there's a whole history about formatting on text terminals. you could change colors, make the text blink, inverse video, move the cursor, 'print' a beep... there are full games waiting to be made this way. pico-tty ? are the 70s retro enough ? ;-)

on a related note, you can already use escape codes to include glyphs (when editing outside of pico, shift-glyphs show up as garbage). plus that's the only access to other available glyphs:

'\x82 meow'

edit: hadn't seen this other thread yet:
Special charaters / Jscott

P#24066 2016-07-01 06:47 ( Edited 2016-07-01 10:55)

I really wish that U, R, L, D and X and O glphys where automatically assigned to the numbers (and could be assigned to variables) it would be nice to save some characters.

P#32860 2016-12-01 00:10 ( Edited 2016-12-01 05:10)

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-03-29 07:46:49 | 0.008s | Q:26