Skip to content

A scroll node for Cocos2D that uses a UIScrollView in the background to handle smooth bounces and accelerations.

Notifications You must be signed in to change notification settings

CarterAppleton/CCScrollNode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

CCScrollNode

OVERVIEW: A scroll node for Cocos2D that uses a UIScrollView in the background to handle smooth bounces and accelerations.

USE: In a CCLayer file, create your new CCScrollNode like so:

theScrollNode = [CCScrollNode nodeWithFrame:CGRectMake(...) andContentSize:CGSizeMake(...)]; [theScrollNode setDelegate:self]; [theScrollNode setPagingEnabled:YES]; [self addChild:theScrollNode];

NOTES:

  • You can add children to the CCScrollNode and they will recieve taps (no drags though)

COPYWRITE This work is free to use, just keep my name in it and cite use. Also, let me know if you like it!

About

A scroll node for Cocos2D that uses a UIScrollView in the background to handle smooth bounces and accelerations.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published