/CppND-2DRobotArm-Game

Capstone Project for CPPND using C++ with CMake

Primary LanguageC++OtherNOASSERTION

CPPND: Capstone - A basic Game - Robot Arm

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.

Game

Features

  • 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

Controls

  • Up Arrow/Down Arrow: Rotate the base joint (first joint) of the robot arm
  • Left Arrow/Right Arrow: Rotate the elbow joint (second joint) of the robot arm
  • ESC: Quit the game

Dependencies for Running Locally

Basic Build Instructions

  1. Clone this repo.
  2. Make a build directory in the top level directory: mkdir build && cd build
  3. Compile: cmake .. && make
  4. Run it: ./RobotArmGame.