Very sketchy as I was about 8 the last time I watched it 24 years ago! A boy finds a way to get on a giant floating city which is nearly deserted and at the end I think it gets destroyed by a fleet of ships. That ends my brilliant clues.
I believe it is from the 80s, and was shown on the British TV channel ITV.