Log In  
Follow
z80jim
:: Unfold ::

Is it possible to get string lengths that ignore P8SCII codes?

t="\F6HELLO"
print(#t) returns 7

I would like it to return 5

Thanks,
Jim

P#114086 2022-07-08 21:47 ( Edited 2022-07-08 21:49)

:: Unfold ::

Cart #mopuyowonu-0 | 2020-11-28 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
18
Hi all,

My third complete cart and most ambitious.
Wouldn't be possible without Pico-8.

Attempt at 2600 Pitfall. Tried to get graphics and timing as close to original as possible. All 255 screens are here with he exact same layout of ladders, pits, alligators, treasures, and so on.

Hope you like.

Jim

P#84798 2020-11-28 15:24 ( Edited 2020-11-28 17:23)

:: Unfold ::

.
.

Cart #bakafofide-0 | 2019-09-13 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
6
This one is an oldie that some may remember. Wasn't the greatest of arcade games but for a time as a youth it was the arcade game I had the most access too.

Tried to make this pretty faithful to the original although I think it is too easy. Per the original there are two alien deployment patterns that alternate on levels. The large yellow UFO's also deploy as in the original. And the point value for the UFO's changes depending on the shot number you are on. Hint: 16th shot for max value.

P#67637 2019-09-13 23:51 ( Edited 2019-09-14 00:41)

:: Unfold ::

Cart #50253 | 2018-03-11 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
8

Cart #50205 | 2018-03-10 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
8

Cart #50198 | 2018-03-10 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
8
.
.
.
My first Pico complete game.

Procedurally generated levels

In game instructions

TextBox utility function: define text box location. Word wraps text passed to it. Control codes for changing colors, centering text on a line, and newline.

P#50199 2018-03-10 16:14 ( Edited 2018-03-13 12:38)

Follow Lexaloffle:          
Generated 2023-10-01 02:52:23 | 0.075s | Q:21