Simple survival game written in C++ for Arduino Uno.
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++.
- 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
- Joystick Module:
- Install John Rickman's LCD library in the Arduino IDE.
- Open killer-boxes.ino into the IDE, Compile the code and run it on your Arduino!
- 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)