Giter Site home page Giter Site logo

seasons7 / cocosbuilder3-javascript-extensions Goto Github PK

View Code? Open in Web Editor NEW

This project forked from manelix2000/cocosbuilder3-javascript-extensions

0.0 2.0 0.0 16.69 MB

CocosBuilder 3 Javascript Extensions (Objective-C)

Objective-C 68.46% C 16.44% C++ 9.12% JavaScript 1.31% MATLAB 0.03% M 4.64%

cocosbuilder3-javascript-extensions's Introduction

CocosBuilder3-JavaScript-Extensions

Since cocos2d-iphone 2.1 comes with Javascript enabled bindings, a new door to cross-platform development has been opened.

For those who don't know how JavaScript bindings work, here you have a great introduction:

JSBindings: [https://github.com/zynga/jsbindings/] (https://github.com/zynga/jsbindings/)

But not all is magic: if you want to use pure JavaScript, every piece of native code should have his jsbinding. If you start to develop with CocosBuilder3 for creating your scenes, you will see that you cannot use some of the controls that are bundled (CCControlButton,CCScrollView,etc). This controls are cocosbuilder extensions that you have to download in order to use them in your projects.

Once you download the code, you cannot use these controls if you are using JavaScript controlled controllers. That is because the 'glue code' for this controls has not been generated.

In this project you will find the 'glue code' (jsbindings) for CCControl,CCControlButton,CCScrollView and CCScale9Sprite.

Using the JavaScript Extensions

Follow the steps below in order to use these extensions:

  1. Install templates from cocos2d-iphone 2.1beta4
  2. Create a new cocos2d-iOS with Javascript project
  3. Delete jsbindings/src and CocosBuilderReader dirs from 'libs'
  4. Copy all folders inside 'CCBReader' dir to your 'libs' dir and add them to your Xcode project (be carefull with 'js' resources since Xcode does not copy them by default in your target -copy resources build phase-)
  5. Start using CocosBuilder3 JavaScript Extensions!

And example has been provided to see how these extensions work! Enjoy it!

Requeriments

  1. CocosBuilder 3 http://www.cocosbuilder.com
  2. cocos2d-iphone 2.1beta4 http://www.cocos2d-iphone.org/

License (MIT)

Copyright (c) 2011 Viktor Lidholt

Copyright (c) 2012 Zynga Inc.

Copyright (c) 2013 Divertap

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

cocosbuilder3-javascript-extensions's People

Contributors

seasons7 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.