loading

What you'll be building:

Step 1: Setup

Today you'll learn how to build your very own first person shooting game. I will be providing all of the code and know how and then you can change, alternate, and edit all you want. And I would love to hear what you do with it!

What you will need installed:

Arduino - http://arduino.cc/en/main/software

Processing - http://arduino.cc/en/main/software

Git - http://arduino.cc/en/main/software

What tools you will need:

  • Solderless Breadboard
  • 22-AWG Wire Hookup
  • Potentiometer
  • Resistors
  • Switch or Push Button
  • Arduino Module

Step 2: Build Your Arduino Setup

Here's a video outlining the setup:

Make sure your resistor is 1kΩ for your switch/push button. Refer to the diagram for the finished product.

Step 3: Clone the Repo

Once you have your Arduino set up, clone this git repository:
RedRocket github repo

Make sure to put all of the files in a folder called RedRocketShooter!

There are two things you need to change to get this working is on the setup method of RedRocketShooter.pde. First, in the second line of the setup method you will notice the line

String portName = "COM4";

This is probably not the name of your port, so replace it with yours! If you don't know the name of your port use the following code to figure it out

println(Serial.list());

This will list all available ports on your machine. Second, open the Arduino file, arduino_rocket.ino and in the top menu panel click on Tools --> Serial Port and select your serial port.

Step 4: Enjoy Your New Space Shooting Game!

And that's it! You now have a first person shooting game built from scratch! So play with it, mess with it, break it, and make it better! Please keep me posted on all improvements and alternations that you make. If you have any questions, suggestions, etc just leave a comment here or email me at kmsullivan012@gmail.com. I would love feedback on how easy (or not easy) this was to set up and what could be made clearer.

Kat

<p>That's so cool that you can make your own video game, and that you shared your ability with us!</p>
<p>Thank you, I'm glad you liked it :) I encourage you to try and implement it!</p>

About This Instructable

878views

9favorites

License:

Bio: dancer, software engineer, and plots way to intersect the two MPS Candidate at the Interactive Telecommunications Program at Tisch
More by Kat S:Build your own first person shooting game! 
Add instructable to: