Log In  
Follow
zoy
Follow

Game design material semiotic writer and consultant

Cart #58838 | 2018-11-07 | Code ▽ | Embed ▽ | No License
4

Hiya! I made this a while ago to help me to select fill patterns and colours when working on other carts. Every time you load the cart, it gives you 16 randomly-generated swatches. I've found this very helpful when figuring out aesthetic details for other projects.

Use the arrows to move the select box around, and the details of the selected swatch will show below. The pattern code is to be used with fillp() and the colour code is to be used anywhere you'd set a color. These numbers would be easier for humans to interpret if they were shown in binary and hex respectively, but I kind of like the layer of mystery tbh.

Hope someone else finds it helpful!

P#58840 2018-11-07 10:12 ( Edited 2018-11-07 23:54)

Hiya! Took me a little while to figure out how to read from a GPIO pin on a PocketCHIP, so thought I'd put my example code here in case anybody else comes looking for the same thing I was. It's not actually very complicated, but maybe the code and the notes will save someone some time.

This example uses GPIO 6 - to use a different pin, just change the pin value accordingly e.g. GPIO 5 would be 0x5f86.

Pico-8 reads hardware pins as digital, so you're not going to get a value from them other than 0 or 255. In this example I've called these two values "on" and "off".

You might need to run Pico-8 as root by opening Terminal from the PocketCHIP home screen and typing "sudo pico8".

This example won't do anything in browser.

Cart #46515 | 2017-11-20 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

P#46519 2017-11-20 12:46 ( Edited 2017-11-20 17:46)

Cart #28967 | 2016-09-21 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
2

My first post here! Thanks to everyone who posts here, I have learned so much from you.

This is a little graphics thing I made on the PocketCHIP while trying to get to grips with cellular automata.

Use arrows while holding one of the action buttons to change palettes, display modes, or regenerate a new pattern. Use arrows while holding the other action button to smear the patterns into stripes.

Features:
Memory poke trick to create reflections
Modification of Conway's Game of Life from Pico-8 zine issue 2

P#28968 2016-09-21 17:22 ( Edited 2016-09-24 15:52)

Follow Lexaloffle:        
Generated 2020-04-09 08:23 | 0.080s | 4194k | Q:42