sarahdwells0000

  • Jan 3, 2024
  • Joined Jan 2, 2024
  • @x += 8 * ct.delta * ct.actions.MoveX.value# Move by X axis# Check whether the ship fell off the viewportif @x < 0# Have the ship crossed the left border?@x = 0# Go back to the left borderif @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