• Stars
    star
    638
  • Rank 70,537 (Top 2 %)
  • Language
    Objective-C
  • License
    Other
  • Created over 13 years ago
  • Updated almost 12 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

3rd party extensions for cocos2d-iphone

Cocos2d Extensions

This repo is a collection of quality 3rd party extensions and additions for the Cocos2D-iPhone Engine.
Everything that doesn’t modify Cocos2D itself, while bringing new functionality can become a part of Cocos2D-iPhone-Extensions Repo: alternative versions of existing classes, additional categories, new nodes, actions, etc…

All extensions are well documented,shipped with testcases and are compatible with latest stable Cocos2D-iPhone version.
With rare exceptions, they are designed for both Mac & iOS.

As well as Cocos2D, Cocos2D Extensions are licensed under the MIT License.

Cocos2D Extensions subforum: http://www.cocos2d-iphone.org/forum/forum/17

Build & Runtime Requirements

  • Mac OS X 10.6, Xcode 3.2.3 (or newer)
  • iOS 3.0 or newer for iOS games
  • Snow Leopard (v10.5) or newer for Mac games

How to get the source

    git clone [email protected]:cocos2d/cocos2d-iphone-extensions.git
    cd cocos2d-iphone-extensions
	
	# init cocos2d-iphone submodules in order to build & run the tests.
    git submodule update --init
	
	# to get latest source from develop branch, use this command:
	git checkout -t origin/develop

Files & Folders

  • cocos2d - cocos2d-iphone 1.x submodule.
  • cocos2d_2.x - cocos2d-iphone 2.x submodule.
  • Extensions - folders with extensions sources, that can be inlcuded in your project.
  • Tests - sources & resources of Extensions demos.
    • SharedResources - resources shared between all tests (icons, fps images, etc...)
    • SharedSources - sources shared between all tests (appDelegates, pch's, etc...)
  • cocos2d-extensions-ios.xcodeproj - XCode Project containing all extensions and their demos/tests for iOS Platform.
  • cocos2d-extensions-mac.xcodeproj - XCode Project containing all extensions and their demos/tests for Mac OS X Platform.
  • cocos2d_2.x-extensions-ios.xcodeproj - same as cocos2d-extensions-ios.xcodeproj, but uses Cocos2D-iPhone 2.x ( stable tag in "gles20" branch )
  • cocos2d_2.x-extensions-mac.xcodeproj - same as cocos2d-extensions-mac.xcodeproj, but uses Cocos2D-iPhone 2.x ( stable tag in "gles20" branch )

Extensions

  • [iOS/Mac] CCMenuAdvanced - CCMenu subclass with additional features: relativeAnchor, more align options, priority property, scrolling with swipe/trackpad/mousewheel
  • [iOS/Mac] CCMenuItemSpriteIndependent - CCMenuItemSprite Subclass, that doesnt add normal/selected/disabled images (sprites) as children. It retains them and delegates rect & convertToNodeSpace: methods to normalImage_. So it's possible to use CCSpriteBatchNode & add position sprites of menuItem anyway you want.
  • [iOS/Mac] CCVideoPlayer - Simple Video Player for Cocos2D apps.
  • [iOS/Mac] CCBigImage - Dynamic Tiled Node for holding Large Images.
  • [iOS/Mac] CCSlider - Little Slider Control to allow the user to set the music/sfx/etc level in the range of 0.0f to 1.0f.
  • [iOS/Mac] CCSendMessages - CCActionInstant subclass, that is more flexible than other CCActions that run functions. Can be used in many cases as blocks replacement.
  • [iOS/Mac] CCScrollLayer - CCLayer subclass that lets you pass-in an array of layers and it will then create a smooth scroller. Complete with the "snapping" effect.
  • [iOS/Mac] FilesDownloader - Downloader for a group of files with shared source path.
  • [iOS/Mac] TMXGenerator - Class that generates a single TMX map with multiple layers.
  • [iOS] CCLayerPanZoom - CCLayer subclass that can be scrolled and zoomed with one or two fingers (complete with rubber effect, two modes & ability to click through delegate).

Video Overview and more Info can be found on the Wiki
Detailed README for each extension is available in it's folder (i.e. Extensions/CCSlider/README.md).
On the GitHub it will be automatically shown under files list in the extension folder.

Building & Running Tests

Agregate target "BuildAllTests" will build all extensions tests - just set it as active target and change only active executable to choose the test.
Extension Test Template is used only as a template for new extensions test targets. It should not build, cause there's no ExtensionTest class implementation for this target.
SYNTHESIZE_EXTENSION_TEST() macro is used (only once in each extension test) to implement ExtensionTest class, that creates scene with default extension test layer.

Contributing

Looking for Roadmap or TODO's? Check the issues page.
Want to share your own extension for cocos2d? Read this: Adding-new-Extension
Know something that should be inlcuded in cocos2d-extensions-repo? Got problems and/or found a bug? Create an Issue

More Repositories

1

cocos2d-x

Cocos2d-x is a suite of open-source, cross-platform, game-development tools utilized by millions of developers across the globe. Its core has evolved to serve as the foundation for Cocos Creator 1.x & 2.x.
C++
18,090
star
2

cocos2d-objc

Cocos2d for iOS and OS X, built using Objective-C
Objective-C
4,070
star
3

cocos2d-html5

Cocos2d for Web Browsers. Built using JavaScript.
JavaScript
3,055
star
4

cocos2d-js

cocos2d-x for JS
C++
1,858
star
5

CocosBuilder

CocosBuilder, the visual editor for cocos2d
Objective-C
1,012
star
6

cocos2d-x-samples

Contains different cocos2d-x samples
Python
575
star
7

creator_to_cocos2dx

Creator plugin to support C++& Lua in cocos2d-x
C++
234
star
8

cocos2d-x-3rd-party-libs-bin

C
197
star
9

cocos2d-js-tests

cocos2d JavaScript test cases and games.
JavaScript
187
star
10

bindings-generator

JSBindings generator for C++
Python
168
star
11

cocos2d-x-extensions

samples games & code snips for cocos2d-x
C++
152
star
12

cocos2d-console

cocos2d command line tool
Python
151
star
13

cocos2d-x-3rd-party-libs-src

Dependencies of cocos2d-x.
Perl
140
star
14

cocos2d-x-for-xna

port cocos2d-x into c# based on XNA
C#
123
star
15

cocos2d-x-docs

documentation of cocos2d-x
HTML
102
star
16

cocos2d-objc-ext

Extensions and utility classes for Cocos2D-iphone
Objective-C
58
star
17

cocos2d-iphone-classic

Repository of original V1 and V2 of Cocos2D-iphone
Objective-C
47
star
18

cocos2d-frame

Player and "stub" for cocos2d
C
37
star
19

cocos2d-js-samples

Includes different samples to be used with cocos2d
JavaScript
36
star
20

cocos2d-x-swift-bindings

Swift bindings for cocos2d-x
Objective-C++
32
star
21

cocos2d-x-external

use CMake to build external 3rd party modules for cocos2d-x
C
18
star
22

cocos2d-js__old__

cocos2d in JavaScript central repository
JavaScript
14
star
23

js-bindings

C++
13
star
24

cocos2d-x-classic

For full history commit logs of cocos2d-x
C
8
star
25

v8

V8 building
Python
7
star
26

migration-demo-objc

The Objective-C flavoured version of migration-demo-x
Objective-C
6
star
27

migration-demo-x

Demonstrates -obj to -x project migration
C++
5
star
28

console-binary

The binary files for cocos2d-console
4
star
29

cocos2d-x-docs-deps

Dependencies of building cocos2d-x docs
Shell
2
star
30

cocos2d.github.io

1
star