Log In  

Cart #pedrobox-0 | 2021-06-08 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
3

A toolbox of sorts with some simple algorythms i aways try to replicate when learning a new language.

Since i was only used to command line type programming, having to learn how to program with a new paradigm such as it is with pico-8, it was very interesting and fun.

When making it my biggest concern was to learn as much as possible, and make the code as adaptable as possible as so it would be easy to put the same code to use in different conditions, some of the time i even did the same things in different ways just to see if it would work.

Some kinda cool features.

Different stuff you can do:

- Change Language!

[0x0]

All texts printed within the cartridge can be shown in Brazilian Portuguese or English. It was very good practice, having to organize the text in such a way i could easily call for the text i needed in the right language.

- Sort/Organizar:

[0x0]


Make a randomized number list with up to 999 indexes and watch as it organizes itself in real time, with audio, text and graphics!

- Roullete/Roleta:

Roll a die with up to 99 sides and wait for it to roll consecutively the max number as many times as you want.

As you can guess, the number of tries to end this algorythm can be ludicrous as the probabilities to win go down exponentialy, for example, a 10 side die having to win 10 times in a row has a chance of 1 in 10000000000, or i don't know, a day of nonstop processing from your computer just rolling rng, so i suggest you go easy with no more than a 6 side die like 6 times. Just to be clear, it's the program that will automatically roll the die consecutively, all you can do is wait for it to roll the max number as many times as you choose, it can take a long time to finish if you go overboard.
The die rolls 1 time per frame, but you can change the speed, or even skip it altogether.

- Rock, Paper, Scissors/Janken.

Battle the computer or a friend in this ancient game of wits and guts, and no luck at all!

- Sound/Som.

You can turn the sfx on or off! On top of all the other amazing features, can you believe it?

It is bound to have bugs, so tell me if you find anything.
https://pedrotum.itch.io/

P#93170 2021-06-08 00:52 ( Edited 2021-06-08 00:56)

1

GUD

P#93174 2021-06-08 01:17

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-04-18 22:41:54 | 0.012s | Q:18