C++ Particle System

C++ Particle System (ASGE Game Engine / OpenGL)

This 2D particle system implementation uses the game Engine ASGE. A custom OpenGL implemntation created by James Huxtable. I tried to create a particle system using a double linked list in c++ from scatch. Multiple ParticleSystems objects could be created which then contained a predefined pool of particles that could reset when their lifespan ended. This made for a very efficient way of implementing many particles as it utilised the design pattern “Pooling” and the “Factory” pattern for spawning ParticleSystems.

Technology

  • ASGE/OpenGL
  • C++
  • Factory Design Pattern
  • Pooling Design Pattern


Particle Pool update and render functions.


How the particle systems are loaded via text file.

Future Plans

My plans for this particle system would to be add more types of spawnable systems other than rain and mist. There is also a couple bugs when spawning with the application having a large drop in frames as it spawns too many systems.

GitHub

Project Details

Date: Nov 20, 2018

Author: Jack King

Categories: project

Tagged: ASGE, 2D, Particle System

Client:

Website:

Related Works.

About

If you like my projects or blog and want to discuss work opportunities or even taking part in a game jam, drop me an email!

Social Links

github

Location

United Kingdom