MultiGames With Raspberry Pi

by Bohrmaschine38 in Workshop > Energy

22 Views, 0 Favorites, 0 Comments

MultiGames With Raspberry Pi

Screenshot 2025-05-03 123421.png

Thanks to our outstanding artificial intelligence, we can program faster than ever before. If you combine this with a Raspberry Pi model and a sense hat module, you can quickly program a few games yourself and play them yourself.

Supplies

raspberry pi.png
sense hat.png
micro sd.png
micro hdmi .png

You will need the following equipment:

  1. Raspberry Pi 5 ( +/- 50$) -> https://www.raspberrypi.com/products/


  1. Sense Hat -> https://www.raspberrypi.com/products/sense-hat/


  1. Micro HDMI to HDMI (Amazon basics +/- 8$) -> https://www.amazon.com/s?k=hdmi+micro+to+hdmi&__mk_de_DE=%C3%85M%C3%85%C5%BD%C3%95%C3%91&crid=33M3RLEKZA4YG&sprefix=hdmi+micro+to+hdmi%2Caps%2C155&ref=nb_sb_noss_1


  1. Micro SD -> https://www.amazon.de/s?k=micro+sd&__mk_de_DE=%C3%85M%C3%85%C5%BD%C3%95%C3%91&crid=1Q2SWN68GED79&sprefix=micro+sd%2Caps%2C93&ref=nb_sb_noss_1


  1. Keyboard


  1. Mouse


  1. Screen


  1. Chat GPT -> https://chatgpt.com/

Preparation

raspberry pi mouse keyboard.JPG

First, you need to connect your keyboard and mouse to the Raspberry Pi, then connect the screen with the HDMI micro to HDMI cable and don't forget to insert the micro sd

Develop Program

chat gpt .png

I've already prepared two games, but you're welcome to program more.

My first game is Snake, as it's very well suited to the 8x8 display.

Downloads

Main Part

menü 1.png
menü 2.png
menü 3.png
menü 4.png
  1. Open the terminal.
  2. Type nano snake.py and press Enter.
  3. Paste your Python code.
  4. Press Ctrl + X, then Y, then Enter to save.
  5. Type python3 snake.py and press Enter to run the program.

or


1. Click the Raspberry Pi logo in the top left corner.

2. Click Programming.

3. Select Python 2 or, if available, Thommy.

4. Create a new folder (the name should end with .py!).

5. Add the program.



Now the Playing Can Begin

play snake on rasp..png

Have fun ;)