Okay - our green frog has landed in an extinct and gloomy valley and of course it's not a place he want to be in more than necessary.
To get away he must first find the golden key which is located somewhere in the desert. In his efforts to find the key he must also beware of falling lava stones falling from the volcano in the background. If he is hit by a stone, he is finished and the game ends!
Also when the stones has landed he must be careful not to move too close to them because otherwise he will suffer severe burns.
He can withstand 10 burns before he must give up and the game ends in this case.
Frog plays out with the resources he has inherited from the previous episode. The amount of life-resources is specified in the text box.
Its certainly not smart to remain passive. The desert wil be totally covered with stones and the key will be lost for ever
Strategically, he may choose to do two things:
EITHER (1) to avoid that the desert is covered with fallen stones, he can take up his laser weapon and destroy the stones when they come against him. Each time he shoot he pays (10 points) also when hit will not succeed to hit the stones.
It improves his chances in two respects.
A.He avoids the key will be covered with lava
B.He keeps track free so he does not get burned
OR he can go can navigate around with arrow keys (10 px) and immediately try to scan the area and spot where the key is!
When he finds the key he gets a bonus of 100 points.
OR he can pursue both strategies at the same time. This could actually be the best to do!
At the moment they serve as decoration but the scorpion , the birds and other creepy creatures on the canvas could likely come to play a role in later revisions The flock of birds is defined as Kinetic.Group. This group lives in its own Kinetic.Animation loop. The lava stones are defined as Kinetic.images() objects. (50 in all). They are organized in an array. And they are moved along in straight lines in a Kinetic.Animation() loop.. The coords of landing point of each stone is randomly pre set.
As we work with equations with only one unknown we can easily determine the line sloop.
arrild[u].setX(arrild[u].getX()+haeldningx); arrild[u].setY(arrild[u].getY() +haeldningy); bredde=bredde+.45; hojde=hojde+.45; arrild[u].setWidth(bredde); arrild[u].setHeight(hojde);
We make the stones gradually grow with .45 px in the loop. The same goes for opacity. They start with zero and ends up with 1 in opacity. This provides a convincing effect!© Arrangement, December 2014, netscale.dk