This is a basic game written in C++ using SDL Library for the Capstone project in the Udacity C++ Nanodegree Program.
A simple 2D robot arm game developed using C++ and SDL2. The game simulates a robot arm with two links and an end-effector. The goal of the game is to move the end-effector of the robot arm to randomly placed targets within the workspace.
- Control of a 2D robot arm with two links using the keyboard
- Collision detection between the end-effector and targets
- Scoring system based on the number of targets reached
- Real-time rendering of the robot arm, targets, and score
Up Arrow
/Down Arrow
: Rotate the base joint (first joint) of the robot armLeft Arrow
/Right Arrow
: Rotate the elbow joint (second joint) of the robot armESC
: Quit the game
- cmake >= 3.7
- All OSes: click here for installation instructions
- make >= 4.1 (Linux, Mac), 3.81 (Windows)
- Linux: make is installed by default on most Linux distros
- Mac: install Xcode command line tools to get make
- Windows: Click here for installation instructions
- gcc/g++ >= 5.4
- Linux: gcc / g++ is installed by default on most Linux distros
- Mac: same deal as make - install Xcode command line tools
- Windows: recommend using MinGW
- SDL2
- Clone this repo.
- Make a build directory in the top level directory:
mkdir build && cd build
- Compile:
cmake .. && make
- Run it:
./RobotArmGame
.