arrow keys to control rectangle in middle
A while ago I made some aabb collision detection demo projects, but they weren't the best. The way I detected collision for them was tedious to make, and I represented the data needed by adding each point of the rectangles into lists. I also hard coded each rectangle the player could collide with because I didn't know about making entity systems at the time. Now I've decided to make a new aabb collision detection project because of my more mature knowledge on the algorithm. Here I don't specify data for each point of each rectangle, rather I just handle the position of a single point and then the width and height of each rectangle. I also used an entity system this time! Making this was much more pleasant than when making the last ones of mine.