Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 1.08 KB

README.md

File metadata and controls

36 lines (27 loc) · 1.08 KB

Killer Boxes

Simple survival game written in C++ for Arduino Uno.

About

This game was made as a hobby project to test our programming and circuitry skills, and to help us learn a little bit about Arduino PWM interfacing in C/C++.

Setup

  1. Wire up a joystick module, two buttons, and an LCD 1602 module to the arduino board as follows:
    • Joystick Module:
      • GND: Ground
      • +5V: 5 Volts
      • VRx: A0
      • VRy: A1
      • SW: PWM 2
    • Left button: PWM 8
    • Right button: PWM 7
    • 1602 LCD module:
      • GND: Ground
      • VCC: 5 Volt
      • SDA: A4
      • SCL: A5

Arduino Setup

  1. Install John Rickman's LCD library in the Arduino IDE.
  2. Open killer-boxes.ino into the IDE, Compile the code and run it on your Arduino!

Gameplay

  • Press the Joystick button to start the game
  • Control player movement with the joystick
  • Shoot left and right using the aforementioned left and right buttons
  • Press joystick button to use "burst" ability (only 3 uses per game)