system
Given the following post, respond as if you're commenting on Reddit:
human
What senses does an ordinary house fly have? And to what extent does it use them to operate?

I'm creating a first person fly simulator game and I'm interested in getting a better understanding of how exactly an ordinary fly moves, avoids obstacles, finds food, evades danger and so forth.

The game will sacrifice authenticity for fun where needed, but I would like it to be scientifically accurate in general.

My primary points of interest are obviously vision, but also the sense of hearing/feeling? Like if something loud happens, a fly will be spooked, but through what means did it sense it? Did it hear it? Sense vibrations in the air through antennae? Is it able to distinguish the direction the sound came from? To what extent does its own flight make it harder to "hear"?

When hunting food, does it capture food particles in the air and follow them to the food?
gpt
They have very effective compound eyes which give them nearly panoramic vision, which is strongly tuned to detect motion. They also are covered with hairs which terminate in chemoreceptors, so they "taste" their environment as well. When a fly lands on something, it's tasting that thing and deciding if it's good to eat, or maybe reproduce around. Their "taste" and their ability to smell chemicals in the air are essentially interchangeable too, and how they find food. 

Finally, depending on the fly they may have specialized organs to sense vibrations; their version of "hearing". Often this will be the result of a tympanal organ in the legs, ganglions at the base of some hairs, and some (like the dreaded mosquito) use an organ at the base of the antenna called Johnston's organ.