Skip to content

EllMoorby/Boids2D

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Boids 2D with Quadtress using SMFL

A small project which implements boids and quadtrees in 2D using SFML in C++.

Note

On Linux VMs (WSL2 etc.) the program may hang, closing then relaunching the program may fix it

drawing

Building and running on your own machine

Prerequisites

You will need:

  • CMake (≥ 3.28)
  • Git
  • C++ compiler (GCC ≥ 9, Clang ≥ 10, or MSVC ≥ 2019)

And SFML dependencies: Linux (Ubuntu/Debian)

sudo apt install libopenal-dev libx11-dev libxrandr-dev libfreetype6-dev libgl1-mesa-dev libudev-dev

macOS (Homebrew)

brew install openal-soft freetype

Windows (vcpkg)

vcpkg install openal-soft freetype

Build

# Clone the repository
git clone https://github.com/EllMoorby/Boids2D.git
cd Boids2D

# Build using cmake
cmake -B build && cmake --build build

Run

Linux/macOS

./build/bin/Boids2D

Windows

.\build\bin\Boids2D.exe

About

A flocking "Boids" simulation, optimised using Quadtrees, using SFML.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors