Water Fountain
Finished by Ruoyan Kong (link: Water Fountain)
Magic Spells
Finished by Haoran Yun
Description
The particle system includes four kinds of magic spells, wind-attack particle, fire-attack particle, wood-defense particle, water-defense particle. These kinds of particles have different emitting regions, moving paths, and sound effects.
They can be controlled by direction keys, UP, DOWN, RIGHT, LEFT. Particles can interact with other kind of particles. For example, the wind attack from the left side could fight with a fire attack from the right side in the middle and the velocity and lifespan will change after the collision. The defending particles can protect the magic wand from being hit by attacking particles. If the defending particles hit the wand three times, the wand will disappear.
Code
https://github.com/ruoyankong/animation/tree/master/assignment1/magic_spells
Video
Keyboard Control:
Left magic wand: Fire attack — RIGHT, Wood defense — DOWN
Right magic wand: Wind attack — LEFT, Water defense — UP
Features
Simulation Context: Magic World
3D user-controlled camera powered by Peasycam library.
Particle-obstacle interaction (controlled by keyboard)
Textured sprites for particles.
Translucent particles
Simulation-driven audio
Multiple particle system interaction