I post a diagram of how this little game works. Perhaps it can help somebody to understand how use processing or to have ideas…
Everycolum represent a variable. If you follow a life line you can find what happen to each ones.
Every box is a function ( white) or a method ( white ) or a condition ( green ).
This diagram show you
- a physical engine to simulate gravity
- collision system using Pvector
- a keyboard evenement management
- a glowing visual effect
- a simple change of ellypse color
- how to use a layer with a 50 % opacity to clear progressively a scene, creating a nice and smooth visual effect.
diagram PinkPurpleFight