I added openable doors now, too. And a little oxygen GUI icon to the right which indicates whether you are suffocating or not. I'll upload a build later today.
Fun fact: if exposed to space, you quickly die because the low pressure forms gas bubbles in your blood, and not because of a lack of oxygen/heat. I'll probably add this when i get to player health.
Well actually it depends. The point is that the concentrations of gasses in your blood will try to even out will the concentration of gasses in the atmosphere around them. (For the game, the most important ones will be o
2, Nitrogen and CO(
2). More gas gets absorbed if the ambient pressure is higher, and fewer if it is lower. As long as the blood concentration is lower than the athmosphere concentration, everything is al right. In the reverse direction, you get the gas bubbles.
Examples:
A
You go from Normal airpressures to an area with equal pressure, but with the Nitrogen replaced by another gas. Nitrogen in your blood bubbels up, and you die.)
B
You move from an area with normal air to an area with equal aircomposition, but 1 tenth the pressure. This causes you to suffocate, but as long as the change is not near immediate, you won't get the gas bubbles
C
You go from an area with normal air pressure and the following distribution of gasses(20%Oxygen 20%Nitrogen, 60% Other no blood absorbed gas) to an area with 1/3 the pressure and the following gas composition (60% Oxygen, 20% Nitrogen, 20% other). Now you will neither die nor suffocate, as the amount of avaible oxygen remains equal. If you were to go back too fast though, you would die, as the oxygen would bubble up.
Due to the large concentration of Nitrogen(80%), it tends to be the major cause of depressurisation, but this is not always the case. Besides, in a spacestation, it might not be unwise to replace Nitrogen with another gas, preferably one that is not absorbed by your blood
To be fair, this might just be a tad to complicated.