Log In  

Cart #zasutuwuzo-0 | 2019-12-09 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
1

P#70729 2019-12-09 00:50

1

Much better, @mia_.

While Pico-8 is pretty fast, you might use the DEL command for any circles that are no longer visible in being overwritten by their predecessor to ensure a stable speed.

In your SWAP function:

unction swap(arr, a, b)
    tmp = arr[a]
    arr[a] = arr[b]
    arr[b] = tmp

end

You can shorten this to one line.

arr[a],arr[b]=arr[b],arr[a]

Your coding style strikes me as someone who is familiar with BASIC. I think you'll find Pico-8 has all kinds of curious shortcuts not all available to other programming languages. :)

Here is a STAR to get you started.

P#70730 2019-12-09 00:50 ( Edited 2019-12-09 01:01)

simple but cool

P#70733 2019-12-09 01:35

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-03-29 00:30:42 | 0.020s | Q:17