Skip to content

Code used on a touchscreen connected to a Raspberry Pi for High scores

License

Notifications You must be signed in to change notification settings

awurster1/Pinball

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pinball

Code used on a touchscreen connected to a Raspberry Pi for High scores

Tested functional on a Raspberry Pi 4B connected to a BIGTREETECH PITFT50 V2.1 touchscreen.

Notes on getting the install functional:

  1. Install Raspbian Lite
  2. Set a static IP for connecting to it later. Either do this by setting a static IP on the Pi, or a DHCP reservation on your network.
  3. Install Openbox as the front-end GUI (It is extremely lightweight without any menus, thus not having any overhead).
  4. Upon boot-up, use "sudo raspi-config" to configure the pi to login automatically to the gui. Reboot.
  5. Either SSH to the Pi (easiest to not need a second keyboard), or plug a keyboard into the Pi along with a mouse to open the terminal.
  6. Install Vulkan and all its dependencies (Just Google this. Pi 4 is a single command after dependencies, Pi 3 and earlier is harder).
  7. When packaging the game, use the "Include PCK" option and make sure you are building it for "arm64"
  8. Transfer the compiled game to the Raspberry Pi; I recommend using SFTP
  9. In a terminal window, perform "sudo chmod a+x Pinball.*" to make the *.sh and *.arm64 files executable.
  10. Note: Anytime you update these files (such as a re-upload via SFTP from a recompile), you will need to do #10 again
  11. Add Pinball.sh to Openbox's autostart list.
  12. Reboot.

CONGRATS! You're all done!