The game I am looking for is a series of assaults by raiders to steal your crystals. You purchase gun turrets, cannons, lasers and so on with credits you earn by destroying enemy units. After a certain number of waves you move to the next level. Each of your units can be upgraded twice.