You must try your best to keep your resources stable and last as long as you can in space. Food and water will decrease over time while materials will only decrease if you spend them on repairs. If you run out of food or water you will lose. If the risk to your ship exceeds 100% you will lose.
All code and art by me (@dalekgallifrey) Music: Rocketman by Elton John (I only used the chorus)