@x += 8 * ct.delta * ct.actions.MoveX.value
# Move by X axis
# Check whether the ship fell off the viewport
if @x < 0
# Have the ship crossed the left border?
@x = 0
# Go back to the left border
if @x > ct.camera.width
# Have the ship crossed the right border?
@x = ct.camera.width
# Go back to the right border
@move()
we are useing the coffeescript to build spaceshooter and are unsure about what we need to adjust, if anything to this part of the code. thanks