Add more dials to tutorial lesson 1

This commit is contained in:
cim 2013-12-06 18:20:55 +00:00
parent 9d8850d4d8
commit 44799d8b70
2 changed files with 78 additions and 2 deletions

View File

@ -211,5 +211,22 @@
"oolite-tutorial-1-8" = "Fuel: 2/2\nThe vertical line shows the amount of fuel needed to reach the currently selected witchspace destination. If the fuel is insufficient, this will change colour.";
"oolite-tutorial-1-9" = "Cabin Temperature: 1/2\nIn normal flight, your ship will maintain a steady-state temperature, with waste heat gradually being radiated into space. If you are near a hot object such as a star, or travelling quickly through a planet's upper atmosphere, the temperature will rise.";
"oolite-tutorial-1-10" = "Cabin Temperature: 2/2\nAt extremely high temperatures your life support systems will fail. Emergency loops will drain power from your shields and energy banks to buy a few more seconds, but you should have got out long before then.";
"oolite-tutorial-1-11" = "Laser Temperature: 1/2\nFiring your laser generates a significant amount of waste heat. Coolant pumps will diffuse it harmlessly through the much greater mass of your ship, but most types of laser generate heat far faster than the pumps can remove it.";
"oolite-tutorial-1-12" = "Laser Temperature: 2/2\nHold the '[oolite_key_fire_lasers]' key to fire your laser for a while, and note the temperature slowly rises. More powerful lasers generate a much larger volume of waste heat. At high temperatures, your laser will automatically cut out to prevent meltdown.";
"oolite-tutorial-1-13" = "Altitude:\nThis bar shows your height above the nearest major body - a star, planet or moon. Your ship is neither authorised nor equipped for planetary approach. As long as you remain in the upper atmosphere or higher - some bar still showing - you will be safe.";
"oolite-tutorial-1-14" = "Speed:\nThis bar shows your flight speed as a proportion of the maximum speed generated by your ship's inertialess drive. Use the '[oolite_key_increase_speed]' and '[oolite_key_decrease_speed]' keys to speed up and slow down.";
"oolite-tutorial-1-15" = "Roll:\nYour ship's rate of roll is indicated by this dial. Use the '[oolite_key_roll_left]' and '[oolite_key_roll_right]' keys to turn.";
"oolite-tutorial-1-16" = "Pitch:\nYour ship's rate of pitch is indicated by this dial. Use the '[oolite_key_pitch_forward]' and '[oolite_key_pitch_back]' keys to turn in this axis.\nNotice that the dial is relative to your ship's maximum turn rate in the axis. Almost all ships can roll faster than they can pitch.";
"oolite-tutorial-1-17" = "Pylon Status:\nThe icons here show the missiles, mines and other deployable equipment attached to your external pylons. Currently your ship has three standard missiles fitted. Other types of pylon-mounted item have different icons.";
}

View File

@ -53,7 +53,7 @@ this.startUp = function()
/* Number of substages in each stage */
this.$tutorialStages = [
3, // stage 0: mission screen, post-launch cleanup, intro message
10, // stage 1: HUD displays
30, // stage 1: HUD displays
1 // stage 2: ...
]
@ -182,6 +182,10 @@ this.startUp = function()
{
this.$HUDHighlighter.stop();
}
if (selector == "")
{
return;
}
this.$HUDHighlighterCycles = 10;
this.$HUDHighlighter = new Timer
(this,
@ -243,6 +247,7 @@ this.startUp = function()
this.__stage1sub2 = function()
{
this._setInstructions("oolite-tutorial-1-2");
this._showHUDItem("");
}
this.__stage1sub3 = function()
@ -266,6 +271,7 @@ this.startUp = function()
this.__stage1sub6 = function()
{
this._setInstructions("oolite-tutorial-1-6");
this._showHUDItem("");
player.ship.energy = 256;
player.ship.forwardShield = 0;
player.ship.aftShield = 0;
@ -281,14 +287,67 @@ this.startUp = function()
this.__stage1sub8 = function()
{
this._setInstructions("oolite-tutorial-1-8");
this._showHUDItem("");
player.ship.fuelLeakRate = 5;
}
this.__stage1sub9 = function()
{
this._setInstructions("oolite-tutorial-1-9");
this._showHUDItem("drawCabinTempBar:");
}
this.__stage1sub10 = function()
{
this._setInstructions("oolite-tutorial-1-10");
this._showHUDItem("");
player.ship.temperature = 0.999;
}
this.__stage1sub11 = function()
{
this._setInstructions("oolite-tutorial-1-11");
this._showHUDItem("drawWeaponTempBar:");
}
this.__stage1sub12 = function()
{
this._setInstructions("oolite-tutorial-1-12");
this._showHUDItem("");
}
this.__stage1sub13 = function()
{
this._setInstructions("oolite-tutorial-1-13");
this._showHUDItem("drawAltitudeBar:");
}
this.__stage1sub14 = function()
{
this._setInstructions("oolite-tutorial-1-14");
this._showHUDItem("drawSpeedBar:");
}
this.__stage1sub15 = function()
{
this._setInstructions("oolite-tutorial-1-15");
this._showHUDItem("drawRollBar:");
}
this.__stage1sub16 = function()
{
this._setInstructions("oolite-tutorial-1-16");
this._showHUDItem("drawPitchBar:");
}
this.__stage1sub17 = function()
{
this._setInstructions("oolite-tutorial-1-17");
this._showHUDItem("drawMissileDisplay:");
}
this.__stage2sub0 = function()
{