Game Development Reference
In-Depth Information
What just happened?
We just wrote the logic that will move the rocket around the screen, whether the rocket is
rotating or not.
So when the player picks a pivot point for the _rocket sprite, this pivot point is passed to
both Rocket and LineContainer . The former will use it to rotate its vector around it
and the latter will use it to draw a dotted line between _rocket and the pivot point.
Note
We can't use Action to rotate the sprite because the target rotation is updated too many
times in our logic, and Action needs time to initialize and run.
So it's time to code the touch events to make all that logic fall into place.
Search WWH ::




Custom Search