Currently we have two types of enemy thank: normal & rainbow. But there are more types than just normal and rainbow. To represent multiple types we need a tank type:
[x] Create a new enum in the Enemy tab called TankType. It should have 3 values: NORMAL, RAINBOW & RED.
[x] Replace the is_rainbow variable in the enemy class and the argument in the constructor with the enemy type.
[x] Make sure each tank has a 60% change of being normal, a 20% chance of being a rainbow and a 20% chance of being red.
Currently we have two types of enemy thank: normal & rainbow. But there are more types than just normal and rainbow. To represent multiple types we need a tank type:
TankType
. It should have 3 values:NORMAL
,RAINBOW
&RED
.is_rainbow
variable in the enemy class and the argument in the constructor with the enemy type.