Droog71 / moontest

Moon habitat simulator game for Minetest.
4 stars 2 forks source link

Moontest: Moon Habitat Simulator

Introduction

You are a prospector on a newly discovered moon.
Your habitat has been constructed and your mining systems are operational.

As a resident engineer, you must manage life support systems and
mining equipment to ensure your income is adequate for survival.

Expenses are deducted from your balance at regular intervals and
are increased based on the total amount of ore you have mined.

Moontest is playable in both single player and multiplayer game modes.


Gameplay

This is your nuclear reactor, the power source for your habitat.
Left click the reactor to turn it on or off. If the reactor is overloaded
or you turn it off, all of your equipment will have to be manually restarted.


This is your gravity generator. Without it, other machines become unstable.
Left click the generator to turn it on or off. Right click to adjust the intensity.
The gravity gravity generator's power consumption is dependent on the intensity.
Lower values allow you to divert power elsewhere. Higher values provide more stability.
Any value over 100 will also cause your machines to become unstable.


The formula used to calculate gravity's effect on machine stability is below.


if gravity_on() and generated_gravity > 100 then --intensity is too high
stability = 92 - (generated_gravity - 100) --stability is reduced
else
stability = 8 + (gravity_on() * (generated_gravity - 16)) --stability is increased
end
if stability > 92 then stability = 92 end --stability limit
if math.random(0, 100) > stability then something_fails() end --failures occur


This is your oxygen generator. Without it, you cannot survive. Left click the
generator to turn it on or off. Right click the generator to adjust it's output.
The oxygen generator's power consumption is dependent on it's output.
Lower values allow you to divert power elsewhere. Higher values provide more safety.
Extremely high oxygen output settings can be dangerous.


This is your hvac system. Without it, you cannot survive. Left click the
box on top to turn it on or off. Right click the box to adjust the thermostat.
The hvac system's power consumption is dependent on the thermostat setting.
Lower values allow you to divert power elsewhere. Higher values provide more safety.
Extremely high thermostat settings can be dangerous.


This is your mining drill; your primary source of passive income.
Left click the drill to turn it on or off. Right click to adjust it's speed.
The drill's power consumption is dependent on the speed setting. Be careful
about increasing this without adjusting the speed of your coolant pump.
If not, you will experience greater fluctuations in power consumption and
may overload your reactor.


This is your coolant system. This prevents the mining drill from overloading the reactor.
Left click the coolant pump to turn it on or off. Right click the pump to adjust it's speed.
The coolant system's power consumption is dependent on the pump speed.
The speed setting should be set with reference to the drill's speed setting.

The formula used to calculate the pump's effect on the drill is below.

resistance = math.random(drill_speed 2, drill_speed 3) --the resistance
digging = drill_speed + resistance --the amount of ore mined
cooling = pump_is_on pump_speed 3 --cooling provided
if cooling > resistance 0.9 then cooling = resistance 0.9 end --cooling limit
drill_power = digging - cooling --the power consumption of the drill
money = money + digging --the amount of money earned from the ore


This is your space food vending machine. Without it, you cannot survive.
Restocking fees are a part of your regular expenses. Left click to buy food.
Left click with the food in your hand to eat it. Space food replenishes your
hunger if you are hungry and heals you if you are full.


These are your sleeping quarters. Without sleep, you will eventually die.
Keep an eye on your energy level and when you need to sleep, left click the
middle of the bottom bunk on one of the bunk beds. You will sleep until your
energy is full then you will be moved to the lobby of the space habitat.


This is your research station. Here, you can conduct research on organic matter
'harvested' on the moon's surface. Organic matter is worth $10 each early in the game.
This value increase each time you process research data. The limit is $50.
To conduct research, left click the research station while holding the organic matter.