Moscrif API Docs for: 2012q3
Show:

SlideToTop Class

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

Scene transition SlideToTop, move scene into top. 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