Developers receive a portion of the platform's profits from the game. This upfront payment is paid as a lump sum to create the game.  They can also collect an upfront fee for constructing and launching the game. Other costs to sustain the game's functionality and keep it running can be factored in too.