Inspiration

I wanted to become better at C++ since I consider it a weakness of mine as far as languages go, so I built a particle simulator. Be sure to read my blog post linked below to see a video of the program running.

What it does

An "explosion" of 50000 particles from the center of the origin of the screen and pulsate (using sin and cos) between cyan and red.

How I built it

C++ & SDL

Challenges I ran into

Ran into a nasty error that Xcode spit out as BAD_ACCESS, which I learned was a seg fault. I learned to be wary of pointers and memory allocation. Looking back on things, I could have solved a lot of problems and saved a lot of time using smart pointers.

What I learned

Became better at:

  • reading and understanding documentation
  • memory management and avoiding seg faults
  • code organization

Built With

Share this project:

Updates