The green frog adventure!
This is a platform game created on basis of the kinetic framework.
It is about a frog that goes explore.
The adventure is supposed to be divided into separate episodes each with its special scene setup.
thus, the frog may be confronted with different universes all along the way through the game.
In the first episode he leaves his familiar surroundings down from the moor.
He is endowed with an initial capital (900 points) of which he can consume of in order to cope with the hardships during the trip. Possibly he gets the opportunity to earn new resources later on or even must do so to keep on going ..
He therefore do well to use the leaves of water lilies as a springboard to get through quickly and save strength.
The frog is subject to the law of gravity so he falls constantly at a given fixed, flat decrease rate in
the gameloop. (If he falls below a certain level the game stops). He can react upon that with the arrow key movements. (but - as always! - at a cost on his stock of life ressources ).
Hitting a leave gives the frog extra momentum.
So his focus should be on not falling down into the gaps between the platforms.
Instead of one big zone, the canvas is stratified into 4 separate zones so that each zone runs its own proper cycle which means: we have got 4 separate 'if-condition- statements to count on in the global gameloop .
That is what what makes the leaves seem to disappear so abruptly and makes the game more challenging.
Leaves enters from left and are moving to the right. They come at random with respect to y-coords (vertically). And new ones are continuously created to have varied width.
When the frog has succeed to pass to the end of the canvas and breaks through the wall he enters into another world.
The trees are pieced together from elements (treetop, trunk and branches) in a kinetic.Group.
The trees (= a group ) are driven in a loop with random y-coord position.
The clouds are circles with a low opacity.They also run in a loop.
© Arrangement December 2014, netscale.dk