Skip to content

Simple 2D sprite-based game inspired by Vampire Survivors. Includes a Boids based flocking system.

License

Notifications You must be signed in to change notification settings

wjake/flocking-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

2D Flocking Game

Simple game inspired by Vampire Survivors which will make use of a flocking system and will be built using SDL2.

Enemies will appear on the arena’s edge and head towards the player, who’s goal is to survive for as long as possible. The game progresses in waves, with each wave increasing enemy numbers and health. Players can dodge enemies, wield weapons to damage and kill them, and collect food items that restore health. Enemies will maintain separation to remain visible and avoid overlap, and alignment to steer towards the player. Cohesion could keep certain enemy types in groups.

Game screenshot

Requirements

SDL2 for window context and sdl2-image library used for image handling. RapidJSON for json file handling.

./vcpkg install SDL2
./vcpkg install sdl2-image
./vcpkg install rapidjson

Building

mkdir build && cd build
cmake ..
make

Assets Used

Related Material

  • Reynolds, C.W., 1987. Flocks, Herds, and Schools: A Distributed Behavioral Model. In: Computer Graphics (SIGGRAPH '87 Conference Proceedings), pp.25-34. Available at: http://www.red3d.com/cwr/boids/ [Accessed 30 November 2024].

About

Simple 2D sprite-based game inspired by Vampire Survivors. Includes a Boids based flocking system.

Topics

Resources

License

Stars

Watchers

Forks