In the past, they've gotten away with it by enticing young people in (often because they loved video games growing up and want to make them) and burning them out. That seems to be a strategy that no longer works now that recruiters for all sorts of companies/industries have become so aggressive that you'll very quickly learn you're being taken advantage of if your linkedin profile is even moderately up to date and checked.
These labour shortages (in all sorts of industries) are really going to be fascinating to watch. It's been 40 years since workers have had this kind of power/positioning and it'll be interesting to see if and how companies will adapt and change.