Object-oriented programming is incredibly useful when you are making more advanced games. Imagine keeping track of 100 enemies. Just create on object for each one of them that contains the following info:
Class Enemy {
string name
int health
int type
int level
int x
int y
method drawSelf() {
drawimage x,y
}
}
This way you just loop through all enemies in a list, and just do:
for enemy in enemylist:
enemy.x = enemy.x + 1
enemy.drawSelf()
Ghost