Brad The Bread
Brought to you by [Team_Name]
How Brad the Bread works
The main program, gayme.py, uses python3 and pygame to generate a simple game world.
The world includes Brad the Bread, evil butter, and "plateforms". Navigate the world while dodging enemies and jumping on platforms to see how far you can go!
Prerequisites
Our game requires python3, pygame, and pySerial to run. You will also need to install the Arduino IDE if you do not already have it. We will go through the installation of these three libraries.
Download Anaconda here: http://docs.continuum.io/anaconda/install/
When asked to prepend the path to anaconda to your .bashrc file, respond yes.
Next download pygame using
‘’‘pip install pygame’’’
Last, install pySerial, which allows the script to read the Serial monitor of an Arduino using
‘’‘pip install pyserial’’’
Follow the instruction here to install Arduino IDE.
Hardware
You will need:
Set up the circuit to look like so:

With ground going to ground, VCC going to 5V, trig going to digital Pin 3, and echo going to digital pin 2
Installation
Once you have downloaded the prerequisites and have your hardware setup, you are ready to install the game.
Do so by running
‘’‘git clone https://github.com/sd18fall/final-project-team_name‘’’
Upload Sonar.ino to your arduino through Arduino IDE.
Open your computer’s terminal and navigate to the folder.
Run ‘’‘python3 gayme.py‘’’
If requested, type in the com port of the Arduino.
Where it’s headed
We do not currently plan on continuing work on Brad the Bread, but if we did we would likely work on streamlining the graphics, maybe the game work faster, adding port selection, and adding a second ultrasonic sensor.
Why we’re doing this
Mostly, we’re here to learn, with a focus on using classes, premade libraries, and planning a project. Inside of all that, we’re looking to make a usable and fun game. We hope you enjoy!
Authors
Anya Jensen - AnyaCakes
Liz Leadley - LizLeadley