Giter Site home page Giter Site logo

cocos2d-v2.x-arc-uikit's Introduction

cocos2d-V2.x-ARC-UIKit [iPad only]

Project based on the 'cocos2d-2.x-ARC-iOS' template available here: https://github.com/LearnCocos2D/cocos2d-iphone-arc-templates so please visit if you need more info.

Ready to use cocos2D v2.x project and UIKit integration with ARC enabled. This project is only for the iPad, but very straight forward to move to an iPhone or Universal version.

============================ How to use it

Inside 'Supporting Files' folder I have created a MainWindow.xib containing a navigation controller, which also contains the MainMenuViewController. I have used the RootViewController to setup the Cocos2D default configuration and launch the HelloWorldLayer scene.

Right now, there is a button 'Start cocos' in the MainMenuViewController which launches the RootViewController. To be able to return, there is a UIKit button in the RootViewController.

The view controllers are managed by the NavigationViewController, declared in the AppDelegate.

================ Additional Notes

I followed some Ray Wenderlich tutorials (like http://www.raywenderlich.com/4817/how-to-integrate-cocos2d-and-uikit ) and I am going to upgrade the project the next couple of days to have the option of using Storyboards (probably following this tutorial http://www.tinytimgames.com/2012/02/07/cocos2d-and-storyboards/ ).

I have just done it for myself, but someone could find it interesting.

cocos2d-v2.x-arc-uikit's People

Contributors

victorbaro avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.