There is a general misconception that the money made from sales goes directly to the developer, This is rarely the case unless it is a self published title.
This is the normal setup for a project.
A publisher or developer agree on a project, a budget is set and a release date window.
The developer then works in chunks, delivering certain sections of the game at set dates, these are known as milestones. The publisher must approve the milestone, i.e the developer has met the requirements, if they're met the developer gets paid.
This normally goes on for the entire time of development. Once the game has gone 'gold' the developer is paid the final sum.
There are often other caveats attached e.g. If the game scores 90% meta bonuses are handed out, if the game sells x-amount a sequel is guaranteed.
Very underappreciated post here.
This should be a stickied response to every thread that starts down the relic's future and success rabbit holes.
Incidentally this is how much of government in the USA works.