Normally when animating for a game you wouldn’t animate a scene like that as a whole. Instead you would animate the individual soldiers so they can walk around and then use your game logic (usually player input, AI or a scripted sequence) to move the individual soldiers.
This involves quite a few different systems, so it might be good to first read up on general animation workflows and then ask more specific questions when you get stuck on a certain aspect.