src/GameObjects.js
/**
 * GameParticle is another base that adds two main functionalities,
 * a start position that can be used to reset the object and
 * functions for keeping track of when the object enters and exits
 * water (if the water level has been set).
 *
 * @returns {GameParticle}
 */
GameParticle is another base that adds two main functionalities,
a start position that can be used to reset the object and
functions for keeping track of when the object enters and exits
water (if the water level has been set).


GameParticle is another base that adds two main functionalities a start position that can be used to reset the object and functions for keeping track of when the object enters and exits water ( if the water level has been set ) .
function GameParticle() {
	this.startPos = new Vec2(0, 0);
	this.waterLevel = -1.0;
	this.wasInWater = false;
	this.inWater = false;
}
function GameParticle ( ) { this . startPos = new Vec2 ( 0 , 0 ) ; this . waterLevel = - 1.0 ; this . wasInWater = false ; this . inWater = false ; }
GameParticle is another base that adds two main functionalities,
 a start position that can be used to reset the object and
 functions for keeping track of when the object enters and exits
 water (if the water level has been set).
GameParticle is another base that adds two main functionalities a start position that can be used to reset the object and functions for keeping track of when the object enters and exits water ( if the water level has been set ) .
// by default a particle is not in water and there's no water it'll be affected by.