Skip to content

A VertexArray particle system using SFML with selectable types, emitters, steering behaviours, textures and blend modes. Obstacles can be spawned that particles avoid/collide with.

Notifications You must be signed in to change notification settings

ReVHeaDRaZ/SFML-VertexArrayParticles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SFML-VertexArrayParticles

A VertexArray particle system using SFML with selectable types, emitters, steering behaviours, textures and blend modes. Quad particles (have textures and can be different sizes) or Point particles (are single pixel points, but double the amount can be onscreen) can be selected from the main menu.

Controls

LMB- Emit Particles
MMB or P- Change Emitter type
RMB- Apply Steering behaviour
UP and DOWN- Amount of Particles to spawn per frame
LEFT and RIGHT- Change Wind amount/direction
O- Spawn an Obstacle at mouse position
B- Change Steering behaviour
T- Change Texture (quads only)
M- Change Blending Mode (Add color/Add Alpha)
HOME and END- Change Max Force that can be applied to particles
PAGEUP and PAGEDOWN- Change the Max Speed of the particles

Install instructions

Windows

Just download the '.zip' file from releases and unzip wherever you like, then run 'RaZParticles.exe' The program will run at a default resolution of 1920x1080 Full-Screen, but other resolutions can be specified from the command prompt using the option '-r WIDTH HEIGHT' For Example- 'RaZParticles.exe -r 1024 768'

Other

For other platforms you will need to complile the source yourself. It was written in VSCode setup with https://github.com/andrew-r-king/sfml-vscode-boilerplate for seperate debug and production release building. GitBash, SFML and MinGW32 need to be installed in default root directories, unless you want to edit the paths in .vscode.

About

A VertexArray particle system using SFML with selectable types, emitters, steering behaviours, textures and blend modes. Obstacles can be spawned that particles avoid/collide with.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages