Refactoring: removed touchesBegan
Overriding touchesEnded
Play a torpedo sound when the touch ends
Get the UITouch
Get the location from the touch
Create a new torpedo sprite node
Set the position of the torpedo
Added physics body information for the torpedo
Offset between the position we touched in the screen and the torpedo initial location
Checking if the offset is lower than 0 which means that a wrong direction for the torpedo
Fixed typo
Fixed the checking. It is offset.y
Add the torpedo to the screen
Get the direction that we are shooting
Get the shot length
Get the final destination for the torpedo
Velocity of the torpedo (hardcoded)
Duration of the torpedo on the screen
Added actions for the torpedo
Added the actions to the torpedo