Add a call to the function UpdateRockets
, inside the UpdateGame
method.
Method UpdateGame() UpdateLaunchers() UpdateRockets() Return True
That was quick, right? We have a class for our rockets now. We can create them easily and update them through a simple call of a function. Once they reach their target, they destroy themselves.
18.116.118.229