Log In  

What I'm thinking is a true crossover of the greatest DIY gaming projects. Have you ever heard of the Pinbox 3000? It's a kit that you customize to create your own compact pinball machine. It's made from cardboard and is completely analog. Last time I checked, the creators did have some videos about possible projects for rigging up an electronic score system.

What I was thinking of is maybe using a Pi to run PICO-8 underneath the playfield. You could map the traditional player 1 and player 2 controller inputs to various targets and bumpers, as well as to the bottom of the table for triggering a ball loss event.

You could hook up your Pi to a TFT to run animations triggered by combos, plus to track scores and balls remaining.

Does this sound like a cool project idea? Has anyone done something similar before?

P#82852 2020-10-12 21:01

That sounds great! And you can also control lights and buzzers from pico8!

P#82859 2020-10-13 01:37

Yeah. The sky is the limit. Plus you could do multiple cartridges to support different themes.

P#82860 2020-10-13 01:41

would you use the GPIO pins to detect balls going past the bumpers or other stuff?

P#82861 2020-10-13 01:52
1

I don't have it set up yet. I was thinking just any sort of trigger mapped to a keyboard button. I am not familiar enough with PICO-8 programming to mess with inputs besides the default.

P#82862 2020-10-13 01:59

I have now found that PICO-8 can accept commands from the entire keyboard. That would allow me to map sensors to the drain, as well as a couple dozen targets. More than enough. Heck, you could even map it to a coin mechanism.

P#82918 2020-10-14 03:14

Using the keyboard as inputs makes sense - you can only detect one event every 60th of a second, but with that caveat it gives you what you want for inputs.

I think people are mentioning GPIO pins because those are another standardized way to send and receive data from outside the PICO-8 - the manual has a section on them, including a description of how they work for a Raspberry Pi. In that case, it's 32 pins - physical binary pins on the Pi - that PICO-8 can use as either inputs or outputs.

It'd be a way to skip doing any shenanigans with faking keyboard inputs, perhaps. Or, if you want more I/O, it's 32 outputs to go with your however-many keyboard inputs.

P#82926 2020-10-14 11:33

Yes! Using the entire keyboard and mouse is meant for development mode, not regular games (that’s why a notice «devmode active» pops up). Of course some games are made for mouse and/or entire keyboard, but they are the exception.

The GPIO functions in PICO-8 let you read sensors (like buttons) attached to pins or turn on actuators (like lights) directly, without an intermediary translation to keyboard inputs.

P#82935 2020-10-14 15:29

Oh, okay. So it wouldn't take a lot of hacking to turn a PICO Pi into a brain for a pinball machine. Nice.

P#82937 2020-10-14 15:36

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-04-20 05:32:29 | 0.007s | Q:17