Most NES games had "cheat" methodologies for game testing purposes, which made it into production cartridges. For Top Gun, you could bypass fighting anything on EVERY level, by flying up and to the left for the duration of the combat. I only knew a few of these tricks. In Parappa the Rappa, there were various patterns that would essentially complete every level with various outcomes, regardless of the actual songs.
Depends on the level, some are better flying up, others are flying down... you don't need to move left/right except to avoid being locked on from behind, unless you need to dodge missiles from the front.