Added Game#rectCollide(float x1, float y1, float x2, float y2) which returns ArrayList<GameObject>. Also changed Game#sphereCollide to return ArrayList<GameObject> instead of GameObject[]
Changed GameObject#sphereCollide to return ArrayList<GameObject> instead of GameObject[]
Changed Main#sphereCollide to also return ArrayList<GameObject> instead of GameObject[]
Overriding the GameObject#init method to add default type ID to ENEMY_ID for all enemies
No actual changes occurred.
Added Physics#checkCollision(Rectangle r1, GameObject go2) and reduced code in method Physics#checkCollision(GameObject go1, GameObject go2) to recycle code
Added player orientation based on movement, FORWARD = 0, RIGHT = 90, BACKWARD = 180, LEFT = 270. This is also implemented inside the PlayerObject#move(float magX, float magY)
Added default orientation to 0 inside Player constructor, also implemented abstract method attack() from PlayerObject.java to get all closest objects, filter them by ID and attack closest object
Random small stuff, nothing to document