with the Atari PONG (1972) arcade machine game with only sound effects and no music (depending on the definition …):
with full orchestra sound tracks with lush string arrangements copying every Hollywood cliché (you can google those).
with a game like Inside
Interactivity and generative music are the two main characteristics differentiating music for film and music for games.
Here is an excellent article on the history of audio and music in video games: How music became an essential ingredient of video games