public GameLayer(CCSize screenSize, CCClipMode clipmode) : base(screenSize, clipmode) { this.screenSize = screenSize; Init (); Schedule (RunGameLogic); }
public CCLayer(CCCamera camera, CCClipMode clipMode) : base() { ChildClippingMode = clipMode; IgnoreAnchorPointForPosition = true; AnchorPoint = CCPoint.AnchorMiddle; Camera = camera; }
public CCLayer(CCCameraProjection cameraProjection, CCClipMode clipMode = CCClipMode.None) : base() { ChildClippingMode = clipMode; IgnoreAnchorPointForPosition = true; AnchorPoint = CCPoint.AnchorMiddle; initCameraProjection = cameraProjection; }
public CCLayer(CCCameraProjection cameraProjection, CCClipMode clipMode = CCClipMode.None) : base() { beforeDrawCommand = new CCCustomCommand(BeforeDraw); afterDrawCommand = new CCCustomCommand(AfterDraw); ChildClippingMode = clipMode; IgnoreAnchorPointForPosition = true; AnchorPoint = CCPoint.AnchorMiddle; initCameraProjection = cameraProjection; }
public CCLayer(CCClipMode clipMode) { m_childClippingMode = clipMode; AnchorPoint = new CCPoint(0.5f, 0.5f); m_bIgnoreAnchorPointForPosition = true; CCDirector director = CCDirector.SharedDirector; if (director != null) { ContentSize = director.WinSize; } Init(); }
public CCLayer(CCClipMode clipMode) { m_childClippingMode = clipMode; AnchorPoint = new CCPoint(0.5f, 0.5f); m_bIgnoreAnchorPointForPosition = true; CCDirector director = CCDirector.SharedDirector; if (director != null) { ContentSize = director.WinSize; } m_OnGamePadButtonUpdateDelegate = new CCGamePadButtonDelegate(OnGamePadButtonUpdate); m_OnGamePadConnectionUpdateDelegate = new CCGamePadConnectionDelegate(OnGamePadConnectionUpdate); m_OnGamePadDPadUpdateDelegate = new CCGamePadDPadDelegate(OnGamePadDPadUpdate); m_OnGamePadStickUpdateDelegate = new CCGamePadStickUpdateDelegate(OnGamePadStickUpdate); m_OnGamePadTriggerUpdateDelegate = new CCGamePadTriggerDelegate(OnGamePadTriggerUpdate); Init(); }
public CCLayer(CCCamera camera, CCClipMode clipMode = CCClipMode.None) : this(camera.Projection, clipMode) { Camera = camera; }
public CCLayer(CCSize visibleBoundsDimensions, CCCameraProjection cameraProjection, CCClipMode clipMode = CCClipMode.None) : this(new CCCamera(cameraProjection, visibleBoundsDimensions), clipMode) { }
public CCLayer(CCSize visibleBoundsDimensions, CCClipMode clipMode = CCClipMode.None) : this(visibleBoundsDimensions, DefaultCameraProjection, clipMode) { }
public CCLayer(CCSize visibleBoundsDimensions, CCClipMode clipMode = CCClipMode.None) : this(new CCCamera(visibleBoundsDimensions), clipMode) { }
public GameLayer(CCSize screenSize, CCClipMode clipmode) : base(screenSize, clipmode) { this.screenSize = screenSize; Init(); Schedule(RunGameLogic); }