Trees | Indices | Toggle frames |
---|
This module defines the ScrollableLayer and ScrollingManager classes.
You have two options for scrolling:
The ScrollingManager has a concept of "focus" which is the pixel position of the player's view focus (usually the center of the player sprite itself, but the player may be allowed to move the view around, or you may move it around for them to highlight something else in the scene). The ScrollingManager is clever enough to manage many layers and handle scaling them.
Two methods are available for setting the map focus:
ScrollableLayer
A Cocos Layer that is scrollable in a Scene.
|
|
ScrollingManager
Manages scrolling of Layers in a Cocos Scene.
|
__package__ =
|
Trees | Indices | Toggle frames |
---|
Generated by Epydoc 3.0beta1 on Wed Jul 07 22:46:48 2010 | http://epydoc.sourceforge.net |