Moscrif API Docs for: 2012q3
Show:

SlideToBottom Class

include "lib://game2d/sceneTransitions/slideToBottom.ms";
Library: game2d

Scene transition SlideToBotton, move scene into botton. An instance of this class is applied onto Game.push or Game.pop methods.

Example:

var scene = new Scene();
game.push(scene, new SlideToBottom());

Item Index

Methods

Methods

draw

(
  • canvas
)
protected

Draw method draws new and old scene. Both scenes are translate on y-axis.

Parameters:

  • canvas Canvas

    Current game canvas

init

() protected

Init instance

setState

(
  • value
)
protected

Set transition state - current position of the scenes on y-axis

Parameters:

  • value Integer

    curent position in the animation