An open API service indexing awesome lists of open source software.

https://github.com/ayaankhan98/particle-explosion

Creating a simple particle explosion using C++ SDL API
https://github.com/ayaankhan98/particle-explosion

particle-simulation sdl2

Last synced: about 1 year ago
JSON representation

Creating a simple particle explosion using C++ SDL API

Awesome Lists containing this project

README

          

# Particle-Explosion

[![Codacy Badge](https://api.codacy.com/project/badge/Grade/e25f1262955e49d38fe21318bb30b2d4)](https://app.codacy.com/manual/ayaankhan98/Particle-Explosion?utm_source=github.com&utm_medium=referral&utm_content=ayaankhan98/Particle-Explosion&utm_campaign=Badge_Grade_Dashboard)

Creating a simple particle explosion using C++ SDL API

## Requirements to run on Local Machine

- g++ 7.5.0
- SDL2.0 C++ API
`sudo apt-get install libsdl2-dev`
- `make`
- `./run`

you can play around this by tweaking the motion of particles

## Preview

![alt text](./preview/p1.png)

## Have Fun!
By just changing the various mathematical functions used such as `sine`, `cosine` ,`tangent` etc you can create different patterns.
such as

![alt text](./preview/p7.png)
![alt text](./preview/p8.png)