Real Time Strategy Demo

Final Project

CSC 471 - Winter 2010

Introduction

My final project is a small demostration of an interface that would be similar to what would be found in a real time strategy game. The user is able to place tanks of either color wherever he/she chooses. When tanks of opposite color are in range of each other they will attack. Each tank has 15 health and each attack does 1 damage. If a tank reaches 0 health it will die. User can also place planes which are higher in elevation than tanks which should be clear from the plane's shadow.

Units are moved around by selecting them with the left mouse button. You can also select multiple units by dragging with the left mouse button. This will create a box where all the units within the box will be selected. Once units are selected you are able to move them by clicking with the right mouse button. The camera is translated by moving the mouse to the edges of the screen

Controls

Mouse Actions:

  • Left Click - Select unit
  • Left Click (Drag) - Select units
  • Alt + Left Click - Create red tank
  • Shift + Left Click - Create airplane
  • Right Click - Move selected units
  • Alt + Right Click - Create green tank

Keyboard Actions:

  • 'x' - Remove all Tanks
  • 'p' - Remove all Airplanes
  • 'f' - Creates planes that constantly fly in V formation
  • 't' - Spawn a few green tanks near the center
  • 'b' - Spawns many tanks to battle near the center
  • '+' - Increase tank health (max 100)
  • '-' - Decrease tank health (min 1)
  • 'q' - Exit program

About

Both of the models used were hierchicaly modeled with glut primitives. The units will turn toward the direction you click and tanks will point their barrel toward the opponent that they are shooting at. Tanks on the same team will not attack each other. The planes have a bug where you select using their shadow and not the actual plane.