WASD to move the Blue Box You can adjust the sizes of both boxes
This link is all about the 2D Collisions in this project: https://www.metanetsoftware.com/technique/tutorialA.html