lancevance1 / AntSimulator

Simple Ants simulator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AntSimulator

Very simple ants simulator.

Installation

Prerequisites

In order to compile this project you will need to:

  • have SFML installed on your system. If you don't know how to do it see this link.
  • have CMake installed

Compilation

Detailed explanation here

On Linux with make

  • Go in the repo folder

cd the/repo/location

  • Create a build directory

mkdir build

  • Go into build

cd build

  • Execute command

cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release ..

  • Execute command

make

On Windows with CMake GUI and Visual Studio

  • Install the right SFML version or compile it (see this)
  • Run CMake
  • Select the repo location

Cmake 1

  • Click on Configure, if you have installed the x64 version of SFML, in the pop up window select x64 in the Optionnal platform for generator drop down

Cmake 2

  • Click on Finish
  • Click on Generate

Cmake 3

  • You can now open the generated project and build it.

Commands

Command Action
E Pause/Unpause the simulation
A Toggle markers drawing
S Toggle max speed mode
Right click Add food
Left click Move view
Wheel Zoom

About

Simple Ants simulator


Languages

Language:C++ 95.6%Language:CMake 4.4%