You will use objects for such things as:
Making players and enemies move and interact
For placing and executing code
Checking and changing variables to make things happen
Collision detection
Processing mouse and keyboard input
Drawing variables and sprites
Creating sound effects and playing music
Objects will generally consist of several events. Code is placed in these events to ...