tutorial 2: failsafe path for wipf

shapetextures
Maikel de Vries 2015-09-23 17:25:15 +02:00
parent 8b16ab0972
commit c6d1a1c763
6 changed files with 13 additions and 15 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

View File

@ -71,8 +71,15 @@ private func InitCaveMiddle()
// Make sure the brick overlaps the rock to blast.
DrawMaterialQuad("Brick", 432, 536, 472, 536, 472, 542, 432, 542, true);
// Some firestones on the way, to pick up.
//PlaceObjects(Firestone, 2 + Random(2), "Earth", 248, 440, 40, 40);
// Widen and cover the exit for the wipf.
DrawMaterialQuad("Tunnel", 550, 526, 570, 526, 570, 536, 550, 536, DMQ_Sub);
var trunk = CreateObjectAbove(Trunk, 570, 558);
trunk.MeshTransformation = [821, 0, 795, 0, 0, 1145, 0, 0, -795, 0, 821, 0];
trunk.Plane = 510; trunk->SetR(90);
// A source of light drawing attention to the wipf.
var torch = CreateObjectAbove(Torch, 484, 528);
torch->AttachToWall(true);
// Some mushrooms and ferns in the middle: left cave.
Fern->Place(2 + Random(2), Rectangle(0, 480, 56, 40));

View File

@ -16,7 +16,7 @@ MsgTutorialDigging=Now that you are holding shovel, you better use it. Hold the
MsgTutorialFirestones=Watch out! The reddish material ahead is dangerous, if you dig through this material firestones will appear. These are fragile and highly explosive, luckily the clonk picks them up automatically when they are in range. Be sure to pick up a couple, they might come in handy.
MsgTutorialFoundWipf=Almost found your wipf, but a patch of rock is in the way. Rock can not be dug away and must be blown. Throw some firestones on the rock, but keep your distance! Click the [%s] in the direction you want to throw.
MsgTutorialBlastedRock=Well done, you blasted the rock and found your friend! He seems exhausted, bring him some food, for example the mushrooms in the caves around. To drop an item press [%s] plus the inventory number key while standing close to the Wipf.
MsgTutorialFedWipf=That has done him good! Just follow your little friend, he seems to be attracted by something.
MsgTutorialFedWipf=That has done him good! And he is off again... Also try to find a way out of here.
MsgTutorialDigOutLoam=This way! These orange objects ahead are pieces of loam, dig them out and collect a few. Loam can be used to build bridges out of earth, hold the [%s] to construct a bridge in the direction of the mouse cursor.
MsgTutorialFragileBridge=Wait a second... That bridge looks highly fragile, and below there is acid, which is very dangerous. You should let your wipf go ahead to probe the bridge since he is much lighter.
MsgTutorialMakeLoamBridge=I told you so, it was fragile after all, luckily your friend made it. Use the pieces of loam to construct a bridge to safely pass the acid below and get to your furry friend.

View File

@ -16,7 +16,7 @@ MsgTutorialDigging=Now that you are holding shovel, you better use it. Hold the
MsgTutorialFirestones=Watch out! The reddish material ahead is dangerous, if you dig through this material firestones will appear. These are fragile and highly explosive, luckily the clonk picks them up automatically when they are in range. Be sure to pick up a couple, they might come in handy.
MsgTutorialFoundWipf=Almost found your wipf, but a patch of rock is in the way. Rock can not be dug away and must be blown. Throw some firestones on the rock, but keep your distance! Click the [%s] in the direction you want to throw.
MsgTutorialBlastedRock=Well done, you blasted the rock and found your friend! He seems exhausted, bring him some food, for example the mushrooms in the caves around. To drop an item press [%s] plus the inventory number key while standing close to the Wipf.
MsgTutorialFedWipf=That has done him good! Just follow your little friend, he seems to be attracted by something.
MsgTutorialFedWipf=That has done him good! And he is off again... Also try to find a way out of here.
MsgTutorialDigOutLoam=This way! These orange objects ahead are pieces of loam, dig them out and collect a few. Loam can be used to build bridges out of earth, hold the [%s] to construct a bridge in the direction of the mouse cursor.
MsgTutorialFragileBridge=Wait a second... That bridge looks highly fragile, and below there is acid, which is very dangerous. You should let your wipf go ahead to probe the bridge since he is much lighter.
MsgTutorialMakeLoamBridge=I told you so, it was fragile after all, luckily your friend made it. Use the pieces of loam to construct a bridge to safely pass the acid below and get to your furry friend.

View File

@ -43,17 +43,8 @@ protected func FxTutorialWipfTimer(object target, proplist effect, int time)
Collect(food, true);
Eat(food);
effect.had_food = true;
SetCommand("MoveTo", nil, 488, 620);
effect.sequence = "MoveToLoam";
}
// Move down to the loam.
if (effect.sequence == "MoveToLoam" )
{
if (Inside(GetX(), 472, 520) && Inside(GetY(), 600, 632) && PathFree(484, 616, 544, 602))
{
SetCommand("MoveTo", nil, 796, 524);
effect.sequence = "MoveToBridge";
}
SetCommand("MoveTo", nil, 796, 524);
effect.sequence = "MoveToBridge";
}
// Move to the bridge.
if (effect.sequence == "MoveToBridge")