How prehistoric people faced climate change - revealed by video game technology