Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Cocos2d

From Wikipedia, the free encyclopedia
Software framework
This article has multiple issues. Please helpimprove it or discuss these issues on thetalk page.(Learn how and when to remove these messages)
icon
This articleneeds additional citations forverification. Please helpimprove this article byadding citations to reliable sources. Unsourced material may be challenged and removed.
Find sources: "Cocos2d" – news ·newspapers ·books ·scholar ·JSTOR
(August 2014) (Learn how and when to remove this message)
This articlerelies excessively onreferences toprimary sources. Please improve this article by addingsecondary or tertiary sources.
Find sources: "Cocos2d" – news ·newspapers ·books ·scholar ·JSTOR
(August 2014) (Learn how and when to remove this message)
(Learn how and when to remove this message)

Cocos2d-x
Original authorZhe Wang
DeveloperChukong Technologies
Initial release1 December 2010 (2010-12-01)[1]
Stable release
4.0[2] Edit this on Wikidata / 29 November 2019; 5 years ago (29 November 2019)
Repositorygithub.com/cocos2d/cocos2d-x
Written inC++
PlatformCross-platform
LicenseMIT License
Websitecocos2d-x.org
Cocos2D-ObjC
Original authorRicardo Quesada
DevelopersAndrei Volodin and Lars Birkemose
Initial release25 June 2008 (2008-06-25)
Stable release
3.5.0[3] / 3 April 2016; 9 years ago (2016-04-03)
Repositorygithub.com/cocos2d/cocos2d-objc
Written inObjective-C
PlatformCross-platform
LicenseMIT License
Websiteweb.archive.org/web/20180811094414/http://cocos2d-objc.org/
Cocos2d
Original authorsRicardo Quesada, Lucio Torre
Initial release29 February 2008 (2008-02-29)
Stable release
0.6.10[4][5] / 17 July 2023; 2 years ago (2023-07-17)
Repositorygithub.com/los-cocos/cocos
Written inPython
PlatformCross-platform
License3-clause BSD
Websitelos-cocos.github.io/cocos-site/

Cocos2d is anopen-sourcegame development framework for creating2D games and othergraphical software foriOS,Android,Windows,macOS,Linux,HarmonyOS,OpenHarmony andweb platforms. It is written inC++ and provides bindings for various programming languages, includingC++,C#,Lua, andJavaScript. The framework offers a wide range of features, includingphysics,particle systems,skeletal animations,tile maps, and others.

Cocos2d was first released in 2008, and was originally written in Python. It contains many branches with the best known being Cocos2d-ObjC (formerly known as Cocos2d-iPhone), Cocos2d-x, Cocos2d-JS and Cocos2d-XNA. There are also many third-party tools, editors and libraries made by the Cocos2d community, such as particle editors,spritesheet editors,font editors, andlevel editors, like SpriteBuilder and CocoStudio.

Sprites and scenes

[edit]

All versions of Cocos2d work using the basic primitive known as asprite. A sprite can be thought of as a simple 2D image, but can also be a container for other sprites. In Cocos2D, sprites are arranged together to form a scene, like a game level or a menu. Sprites can be manipulated in code based on events or actions or as part of animations. The sprites can be moved, rotated, scaled, have their image changed, etc.

Features

[edit]

Animation

[edit]

Cocos2D provides basic animation primitives that can work on sprites using a set of actions and timers. They can be chained and composed together to form more complex animations. Most Cocos2D implementations let you manipulate the size, scale, position, and other effects of the sprite. Some versions of Cocos2D let you also animate particle effects, image filtering effects via shaders (warp, ripple, etc.).

GUI

[edit]

Cocos2D provides primitives to represent common GUI elements in game scenes. This includes things like text boxes, labels, menus, buttons, and other common elements.

Physics system

[edit]

Many Cocos2D implementations come with support for common 2D physics engines likeBox2D andChipmunk.

Audio

[edit]

Various versions of Cocos2D have audio libraries that wrapOpenAL or other libraries to provide full audio capabilities. Features are dependent on the implementation of Cocos2D.

Scripting support

[edit]

Support binding toJavaScript,Lua, and other engines exist for Cocos2D. For example, Cocos2d JavaScript Binding (JSB) forC/C++/Objective-C is the wrapper code that sits between native code and JavaScript code usingMozilla's SpiderMonkey. With JSB, you can accelerate your development process by writing your game using easy and flexible JavaScript.

Editor support

[edit]

End of life support

[edit]
  • SpriteBuilder: Previously known as CocosBuilder,[6] SpriteBuilder is an IDE for Cocos2D-SpriteBuilder apps. SpriteBuilder isfree and its development was sponsored byApportable, who also sponsored thefree Cocos2D-SpriteBuilder, Cocos3D, and Chipmunk physics projects. It was available as a free app in theMac App Store. Its latest official version is 1.4.[7][8] Its latest unofficial version is 1.5 which is compatible with cocos2d-objC 3.4.9.[9] It supports Objective-C.
  • CocoStudio: aproprietary toolkit based on Cocos2d-x, containing UI Editor, Animation Editor, Scene Editor and Data Editor, together forming a complete system; the former two are tools mainly for artists while the latter are two mainly for designers. This is aproprietary project developed byChukong Technologies. Its latest version is 3.10 which is compatible with cocos2d-X 3.10.[10][11] It supports C++. In April 2016 it was deprecated and replaced with Cocos Creator.

Current support

[edit]
  • Cocos Creator, which is aproprietary[12] unifiedgame development tool for Cocos2d-X. As of August 2017, it supports JavaScript andTypeScript only and does not support neither C++ nor Lua. It was based on thefree Fireball-X.[13] C++ and Lua support for creator is under alpha-stage development since April 2017.[14]
  • SpriteBuilderX, afree scene editor for Cocos2d-X with C++ support and runs on macOS only.[15]
  • X-Studio, aproprietary[16] scene editor for Cocos2d-X with Lua support and runs on Windows only.[17][18]
  • CCProjectGenerator: a project generator for Cocos2d-ObjC 3.5 that generates Swift or Objective-C projects for Xcode.[19]

Supported platforms and languages

[edit]
BranchTarget PlatformAPI Language
Cocos2dWindows, OS X, LinuxPython 2.6, 2.7 or 3.3+, Objective-C
Cocos2d-xiOS, Android, Tizen, Windows, Windows Phone 8, Linux, Mac OS XC++, Lua, JavaScript
Cocos2d-ObjCiOS, Mac OS X, tvOS[20]Objective-C, Swift
Cocos2d-html5HTML5-ready browsersJavaScript
Cocos2d-xnaWindows Phone 7 & 8, Windows 7 & 8, Xbox 360C#
Cocos CreatorAndroid, iOS, HarmonyOSC#, C++, TypeScript, JavaScript

History

[edit]
icon
This sectiondoes notcite anysources. Please helpimprove this section byadding citations to reliable sources. Unsourced material may be challenged andremoved.(August 2014) (Learn how and when to remove this message)

Cocos2d (Python)

[edit]

February 2008, in the village ofLos Cocos, nearCórdoba, Argentina,Ricardo Quesada, a game developer, andLucio Torre created a 2D game engine forPython with several of their developer friends. They named it "Los Cocos" after its birthplace. A month later, the group released the version 0.1 and changed its name to "Cocos2d".[21]

Cocos2d-iPhone

[edit]

Attracted by the potential of the newAppleApp Store for theiPhone, Quesada rewrote Cocos2d inObjective-C and in June 2008 released "Cocos2d for iPhone" v0.1, the predecessor of the later Cocos2d family.[21]

Cocos2D-ObjC (formerly known as Cocos2D-iPhone and Cocos2D-SpriteBuilder), is maintained by Lars Birkemose.

Also, the English designerMichael Heald designed a new logo for Cocos2d (the Cocos2d logo was previously a running coconut).

Cocos2d-x

[edit]

November 2010, a developer fromChina named Zhe Wang branched Cocos2d-x based on Cocos2d. Cocos2d-x is also afree engine underMIT License, and it allows for compiling and running on multiple platforms with one code base.

In 2013, Quesada left cocos2d-iPhone and joined in cocos2d-x team. In March 2017, Quesada was laid off from the Chukong company.[22][21] In 2015, there are 4 cocos2d branches being actively maintained.

Cocos2d-x & Cocos2d-html5 is maintained and sponsored by developers atChukong Technologies. Chukong is also developing CocoStudio, which is aWYSIWYG editor for Cocos2d-x and Cocos2D-html5, and afree Cocos3d-xfork of the Cocos3D project.

Other ports, forks, and bindings

[edit]

Cocos2d has been ported into various programming languages and to all kinds of platforms. Among them there are:

  • ShinyCocos, inRuby
  • Cocos2d-Android, inJava forAndroid
  • Cocos2d-windows, inC++ forWindows XP andWindows 7
  • CocosNet, inC# based onMono
  • Cocos2d-javascript, inJavaScript for web browsers
  • Cocos2d-XNA was born in cocos2d-x community for supportingWindows Phone 7, but now it's branched to an independent project using C# and mono to run on multiple platforms. Jacob Anderson atTotally Evil Entertainment is leading this branch.
  • Cocos3d works as an extension on cocos2d-iPhone, written in Objective-C. Bill Hollings atBrenwill Workshop Ltd is leading this branch.
  • Axmol Engine is an open-source, C++ multi-platform engine designed for mobile devices, desktop, and Xbox, well-suited for 2D game development. It was launched in November 2019 as a fork of Cocos2d-x v4.0.

Games developed with cocos2d

[edit]

See also

[edit]

References

[edit]
  1. ^"Happy 7th Birthday Cocos2d-x!". December 2017. RetrievedDecember 17, 2017.
  2. ^"Release 4.0". November 29, 2019. RetrievedNovember 30, 2019.
  3. ^"Releases". cocos2d/cocos2d-objc.GitHub.
  4. ^"Release history".
  5. ^"cocos2d". Archived fromthe original on January 15, 2024. RetrievedMay 10, 2024.
  6. ^"CocosBuilder".GitHub. November 9, 2021.
  7. ^"SpriteBuilder".GitHub. November 8, 2021.
  8. ^"Sprite Builder".spritebuilder.com. December 1, 2018. RetrievedApril 10, 2024.
  9. ^"SpriteBuilder 1.5.0 vs Cocos2D v3.4.9 - Cocos2D-SpriteBuilder Forum". Archived fromthe original on December 22, 2016. RetrievedDecember 22, 2016.
  10. ^"Cocos Studio | Cocos2d-x". Archived fromthe original on July 17, 2017. RetrievedDecember 21, 2016.
  11. ^"Where i can download Сocos studio?". July 19, 2016.
  12. ^"Is EDITOR of cocos creator open source?". February 7, 2017.
  13. ^"Fireball-x/Fireball on GitHub". January 28, 2015.
  14. ^"C++ and Lua support for creator alpha0 released". April 11, 2017.
  15. ^"SpriteBuilderX - editor for Cocos2d-X with C++ support". February 6, 2017.
  16. ^"#x-studio, a game development tool based on Cocos2d-x". March 19, 2017.
  17. ^"X-studio IDE、代码编辑器、Lua调试器、UI编辑器".
  18. ^X-Studio website
  19. ^"CCProjectGenerator".GitHub. November 9, 2020.
  20. ^Cocos2D-ObjC, cocos2d, January 9, 2023, retrievedJanuary 12, 2023
  21. ^abcQuesada, Ricardo (April 16, 2017)."The history of Cocos2d in a glimpse".RETRO.MOE. Retrieved2019-07-03.
  22. ^"Survey: The reasons why I won't use Cocos Creator". August 9, 2017.
  23. ^Baker, Liana B. (May 9, 2011)."Zynga buys iPhone game engine development team".Reuters.Archived from the original on May 13, 2011. RetrievedApril 14, 2021.Zynga said it would not be acquiring cocos2d, which is a free game engine that developers use to make games for Apple devices such as the iPhone, the iPad and iPod touch. Zynga's Chief Technology Officer, Cadir Lee, said in an interview that Zynga already uses the game engine in its FarmVille game on the iPhone. Having the developers, who were key in developing the free platform, will help Zynga master the technology, Lee said.
  24. ^"All done in COCOS2D ..."Reddit.com. November 19, 2013. RetrievedAugust 18, 2024.
  25. ^Takaki, Hiroshige (July 13, 2016)."Cocos2d-xチューニング、マルチデバイス対応...任天堂エンジニアに聞いた「Miitomo」開発の裏側".CodeIQ MAGAZINE (in Japanese).Goo. Archived fromthe original on April 15, 2021. RetrievedApril 14, 2021.
  26. ^Vuorinen, Johannes (April 27, 2013)."BADLAND – a cocos2d-iphone game".Cocos2D. Archived fromthe original on February 10, 2014. RetrievedJune 8, 2021.
  27. ^"The Biggest Korean Games Using The Cocos Engine". April 22, 2020.
  28. ^"The Best Companies In America Build Mobile Games With Cocos". June 30, 2020.

Further reading

[edit]
[icon]
This sectionneeds expansion. You can help byadding to it.(August 2014)
  • Roger Engelbert (2013).Cocos2d-x by Example Beginner's Guide. Packt Publishing Ltd.ISBN 978-1-78216-735-8.

External links

[edit]


Proprietary
1980s
1990s
2000s
2010s
2020s
Free and
open-source
1970s
1990s
2000s
2010s
2020s
Retrieved from "https://en.wikipedia.org/w/index.php?title=Cocos2d&oldid=1322017191"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp