Now that we have added the changes to our HTML shell file, we need to make some changes to our WebAssembly module to support these new parameters. We are going to work our way from the bottom up, starting with the Particle class. This class is not only useful for the tool we are building to design particle systems, but it is one of a few classes that, once we have completed it, we will be able to pull into our game, allowing us to add some beautiful looking effects.
Here is what the particle class definition looks like inside the game.hpp file:
class Particle {
public:
bool m_active;
bool m_alpha_fade;
bool m_color_mod;
bool m_align_rotation;
float m_rotation;
Uint8 m_start_red;
Uint8 m_start_green;
Uint8 m_start_blue;
Uint8 m_end_red;
Uint8 m_end_green;
Uint8 m_end_blue...