You could make the code available for free, for example, by putting the code file in an ad shortener. This way you generate money, and those who can't pay can support you by viewing ads.
It's just a friendly idea.
Game development is very expensive and using this type of monetisation wouldn't provide enough money to keep maintaining a smooth development.