Spend money to spawn in troops to defend your tower from the enemy. Killing enemy troops will increase your score, which you can spend on upgrades for your tower.
This is the ninth in a series on my Youtube channel, where I polish up your scratch projects, to show how simple concepts can become refined games. Credit to Ihateme1 for the original project and concept.