Latest 0.3.1
Homepage https://github.com/czgarrett/CZGSpinLayer
License MIT
Platforms ios 6.0, requires ARC
Dependencies cocos2d
Authors

CZGSpinLayer is a cocos2d CCLayer subclass that allows you to have a spinning "wheel" like interaction.

I pulled this class out of the game QatQi – this is what was used to create the spinning main menu, as well as the spinning graph on the stats page.

To use CZGSpinLayer, you will need to have cocos2d installed in your project as a cocoapod. If you’re not already using cocos2d that way, then you should set up a pod file for it, do pod install, then remove the cocos2d files that were previously in your project.

For sample code, see the HelloWorldLayer.m file in the sample project.

Latest podspec

{
    "name": "CZGSpinLayer",
    "version": "0.3.1",
    "license": "MIT",
    "summary": "A spinnable CCLayer subclass.",
    "homepage": "https://github.com/czgarrett/CZGSpinLayer",
    "authors": {
        "Christopher Z. Garrett": "[email protected]"
    },
    "source": {
        "git": "https://github.com/czgarrett/CZGSpinLayer.git",
        "tag": "0.3.1"
    },
    "platforms": {
        "ios": "6.0"
    },
    "source_files": "Classes",
    "requires_arc": true,
    "dependencies": {
        "cocos2d": [
            "~> 2.1"
        ]
    },
    "xcconfig": {
        "HEADER_SEARCH_PATHS": ""${PODS_ROOT}/cocos2d/external/kazmath/include""
    }
}

Pin It on Pinterest

Share This