/sfml-game-ai-demos

C++ intelligent agents for games, with demos using the SFML framework.

Primary LanguageC++MIT LicenseMIT

C++ AI demos using SFML

This project is no longer in development. The repository is now archived and in read-only mode.


Version: 0.3.0

An SFML game demonstrating the implementation of a Finite State Machine and Steering Behaviours in intelligent agents.

Quick start: Click on an agent and press F. De-select agents and hide their information by left-clicking them.

Controls

General

  • V: Spawn a new entity where the mouse cursor currently is

Player

  • Left mouse click on player: Toggle info panel
  • W: Start accelerating
  • S: Stop accelerating
  • A: Rotate/turn left
  • D: Rotate/turn right

Agents

  • Left mouse click on agent: Toggle info panel
  • Left mouse click on agent: Toggle agent selected state

Agents (selected)

Once an agent is selected with left-click, use these controls to transition their states:

  • E: Transition to Flee state
  • F: Transition to Seek state
  • I: Transition to Idle state (default)

Building

  • To-do

Dependencies

  • To-do

Running

  • To-do

Documentation

HTML documentation can be found in the doc/html folder. Open index.html in a web browser to get started.

Credits

SFML Framework by Laurent Gomila licensed under the zlib/libpng license. Full SFML license can be found here.

Background image provided by Rawdanitsu and licensed under CC0.

"Boid" ("boid.png") image provided by Chris Janes.