C++ OpenGL Snow Falling: Explained!

Описание к видео C++ OpenGL Snow Falling: Explained!

Here is an explanation of the Snow Falling video I released some years back.

In short:
1. A random greyscale pixel is placed randomly near the top of the screen.
2. Each frame we loop over all the pixels on the screen. Starting on the bottom row, in the far right.
3. We pick a random direction (-1, 0, 1). Down and the the left (-1), down (0), or down and to the right (1)
4. If the new position is empty, we move the color to that position, if not, we do not move it.
5. We repeat this for every pixel on the screen

Original video:    • C++ OpenGL Snow falling  

I used the OLC Pixel Game engine 2.0 from Javid9. Check out his channel.

Code for this can be found in my GitHub: https://github.com/kaltinril/olcGames...



Pixel Game Engine: https://github.com/OneLoneCoder/olcPi...
Javid9 Channel:    / @javidx9  

Комментарии

Информация по комментариям в разработке