game.js
// Base class for the entities in the game.
Base class for the entities in the game.
Base class for the entities in the game .
function Entity(image) {
	this.image = image;
	this.boundingBox = new Rectangle(0, 0, this.image.width, this.image.height);
	this.dx = 0;
	this.dy = 0;
	this.gravity = 0.0005;
}
function Entity ( image ) { this . image = image ; this . boundingBox = new Rectangle ( 0 , 0 , this . image . width , this . image . height ) ; this . dx = 0 ; this . dy = 0 ; this . gravity = 0.0005 ; }
Base class for the entities in the game.
Base class for the entities in the game .