Cocos2d

Cocos2d-x
Original author(s)Zhe Wang
Developer(s)Chukong 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 author(s)Ricardo Quesada
Developer(s)Andrei Volodin and Lars Birkemose
Initial release25 June 2008 (2008-06-25)
Stable release
3.5.0[3] / 3 April 2016; 8 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 author(s)Ricardo Quesada, Lucio Torre
Initial release29 February 2008 (2008-02-29)
Stable release
0.6.10[4][5] / 17 July 2023; 17 months ago (2023-07-17)
Repositorygithub.com/los-cocos/cocos
Written inPython
PlatformCross-platform
License3-clause BSD
Websitelos-cocos.github.io/cocos-site/

Cocos2d is an open-source game development framework for creating 2D games and other graphical software for iOS, Android, Windows, macOS, Linux, HarmonyOS, OpenHarmony and web platforms. It is written in C++ and provides bindings for various programming languages, including C++, C#, Lua, and JavaScript. The framework offers a wide range of features, including physics, 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, and level editors, like SpriteBuilder and CocoStudio.

Sprites and scenes

All versions of Cocos2d work using the basic primitive known as a sprite. 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

Animation

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

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

Many Cocos2D implementations come with support for common 2D physics engines like Box2D and Chipmunk.

Audio

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

Scripting support

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

Editor support

End of life support

  • SpriteBuilder: Previously known as CocosBuilder,[6] SpriteBuilder is an IDE for Cocos2D-SpriteBuilder apps. SpriteBuilder is free and its development was sponsored by Apportable, who also sponsored the free Cocos2D-SpriteBuilder, Cocos3D, and Chipmunk physics projects. It was available as a free app in the Mac 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: a proprietary 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 a proprietary project developed by Chukong 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

  • Cocos Creator, which is a proprietary[12] unified game development tool for Cocos2d-X. As of August 2017, it supports JavaScript and TypeScript only and does not support neither C++ nor Lua. It was based on the free Fireball-X.[13] C++ and Lua support for creator is under alpha-stage development since April 2017.[14]
  • SpriteBuilderX, a free scene editor for Cocos2d-X with C++ support and runs on macOS only.[15]
  • X-Studio, a proprietary[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

Branch Target Platform API Language
Cocos2d Windows, OS X, Linux Python 2.6, 2.7 or 3.3+, Objective-C
Cocos2d-x iOS, Android, Tizen, Windows, Windows Phone 8, Linux, Mac OS X C++, Lua, JavaScript
Cocos2d-ObjC iOS, Mac OS X, tvOS[20] Objective-C, Swift
Cocos2d-html5 HTML5-ready browsers JavaScript
Cocos2d-xna Windows Phone 7 & 8, Windows 7 & 8, Xbox 360 C#
Cocos Creator Android, iOS, HarmonyOS C#, C++, TypeScript, JavaScript

History

Cocos2d (Python)

February 2008, in the village of Los Cocos, near Córdoba, Argentina, Ricardo Quesada, a game developer, and Lucio Torre created a 2D game engine for Python 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

Attracted by the potential of the new Apple App Store for the iPhone, Quesada rewrote Cocos2d in Objective-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 designer Michael Heald designed a new logo for Cocos2d (the Cocos2d logo was previously a running coconut).

Cocos2d-x

November 2010, a developer from China named Zhe Wang branched Cocos2d-x based on Cocos2d. Cocos2d-x is also a free engine under MIT 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 at Chukong Technologies. Chukong is also developing CocoStudio, which is a WYSIWYG editor for Cocos2d-x and Cocos2D-html5, and a free Cocos3d-x fork of the Cocos3D project.

Other ports, forks, and bindings

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

  • ShinyCocos, in Ruby
  • Cocos2d-Android, in Java for Android
  • Cocos2d-windows, in C++ for Windows XP and Windows 7
  • CocosNet, in C# based on Mono
  • Cocos2d-javascript, in JavaScript for web browsers
  • Cocos2d-XNA was born in cocos2d-x community for supporting Windows Phone 7, but now it's branched to an independent project using C# and mono to run on multiple platforms. Jacob Anderson at Totally Evil Entertainment is leading this branch.
  • Cocos3d works as an extension on cocos2d-iPhone, written in Objective-C. Bill Hollings at Brenwill 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

See also

References

  1. ^ "Happy 7th Birthday Cocos2d-x!". December 2017. Retrieved December 17, 2017.
  2. ^ "Release 4.0". November 29, 2019. Retrieved November 30, 2019.
  3. ^ "Releases". cocos2d/cocos2d-objc. GitHub.
  4. ^ "Release history".
  5. ^ "cocos2d". Archived from the original on January 15, 2024. Retrieved May 10, 2024.
  6. ^ "CocosBuilder". GitHub. November 9, 2021.
  7. ^ "SpriteBuilder". GitHub. November 8, 2021.
  8. ^ "Sprite Builder". spritebuilder.com. December 1, 2018. Retrieved April 10, 2024.
  9. ^ "SpriteBuilder 1.5.0 vs Cocos2D v3.4.9 - Cocos2D-SpriteBuilder Forum". Archived from the original on December 22, 2016. Retrieved December 22, 2016.
  10. ^ "Cocos Studio | Cocos2d-x". Archived from the original on July 17, 2017. Retrieved December 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, retrieved January 12, 2023
  21. ^ a b c Quesada, Ricardo (April 16, 2017). "The history of Cocos2d in a glimpse". RETRO.MOE. Retrieved 2019-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. Retrieved April 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. Retrieved August 18, 2024.
  25. ^ Takaki, Hiroshige (July 13, 2016). "Cocos2d-xチューニング、マルチデバイス対応...任天堂エンジニアに聞いた「Miitomo」開発の裏側". CodeIQ MAGAZINE (in Japanese). Goo. Archived from the original on April 15, 2021. Retrieved April 14, 2021.
  26. ^ Vuorinen, Johannes (April 27, 2013). "BADLAND – a cocos2d-iphone game". Cocos2D. Archived from the original on February 10, 2014. Retrieved June 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

  • Roger Engelbert (2013). Cocos2d-x by Example Beginner's Guide. Packt Publishing Ltd. ISBN 978-1-78216-735-8.

Read other articles:

Ini adalah nama Nias, madonya adalah Bu’ulölö. Historis Bu’ulölö Informasi pribadiLahir0 Agustus 1965 (umur 58)IndonesiaKarier militerPihak IndonesiaDinas/cabang TNI Angkatan UdaraMasa dinas1989—2023Pangkat Marsekal Muda TNINRP509839SatuanKorps PenerbangSunting kotak info • L • B Marsekal Pertama TNI (Purn.) Historis P. Bu’ulölö, S.H. (lahir Agustus 1965) adalah seorang Purnawirawan TNI-AU yang terakhir menjabat Pati Sahli Kasau Bidang Strahan.[1...

 

 

Katedral MakauKatedral Kelahiran Bunda MariaSé Catedral da Natividade de Nossa Senhora聖母誕辰主敎座堂/澳門主敎座堂Sé Catedral da Natividade de Nossa SenhoraLokasiSé, Concelho de MacauNegara MakauDenominasiGereja Katolik RomaArsitekturSelesai1937Biaya100.900 MOPAdministrasiKeuskupanKeuskupan Makau Katedral Kelahiran Bunda Maria[1] juga Sé Catedral da Natividade de Nossa Senhora dan Igreja da Sé (Hanzi: 澳門主敎座堂) adalah sebuah gereja katedral Katol...

 

 

Wakil Presiden Wakil Presiden Republik Rakyat Tiongkok中华人民共和国副主席Lambang Republik Rakyat TiongkokBendera Republik Rakyat TiongkokPetahanaHan Zhengsejak 10 Maret 2023GelarWakil Ketua (副主席)KediamanZhongnanhai (informal)KantorGedung Barat, Zhongnanhai, Beijing[1]Dicalonkan olehPresidium Kongres Rakyat NasionalDitunjuk olehKongres Rakyat NasionalMasa jabatanLima tahunDapat diperpanjangPejabat perdanaZhu De(sebagai Wakil Ketua berdasarkan Konstitusi Tiongkok 1...

GeragaiKecamatanKegiatan masyarakat Lagan Ulu, Kec Geragai menggunakan sungai sebagai jalur transportasi dengan menggunakan perahuNegara IndonesiaProvinsiJambiKabupatenTanjung Jabung TimurPemerintahan • CamatIDUAR AIDI, SKMPopulasi • Total- jiwaKode pos36764Kode Kemendagri15.07.10 Kode BPS1506012 Desa/kelurahan8 Desa1 Kelurahan Pembakaran gas dari minyak produksi PetroChina di ladang Jabung di Geragai Geragai adalah sebuah kecamatan di Kabupaten Tanjung Jabung Tim...

 

 

نيا كيوس (باليونانية: Νέα Κίος)‏[1]   خريطة الموقع سميت باسم كيمليك  تاريخ التأسيس 1927  تقسيم إداري البلد اليونان  [2] خصائص جغرافية إحداثيات 37°35′15″N 22°44′40″E / 37.5875°N 22.744444444444°E / 37.5875; 22.744444444444   الارتفاع 5 متر  السكان التعداد السكاني 2743 (إح...

 

 

Pour les articles homonymes, voir Al-Mansur. Al-MansurStatue d'al-Mansour à Bagdad.FonctionCalife abbasside10 juin 754 - 6 octobre 775As-SaffahAl-MahdiBiographieNaissance 714Al-Humaymah (Bilad el-Cham, Califat arabe (en))Décès 7 octobre 775 ou 18 octobre 775Bagdad (califat abbasside)Sépulture Al Muallaa Cemetery (en)Nom dans la langue maternelle أبو جعفر عبدالله بن محمد المنصورPseudonyme Al-MansurActivité CalifeFamille AbbassidesPère Muhammad ibn Ali al-Abbas...

Cet article est une ébauche concernant une localité italienne et le Trentin-Haut-Adige. Vous pouvez partager vos connaissances en l’améliorant (comment ?) selon les recommandations des projets correspondants. Cavalese Armoiries Drapeau Noms Nom allemand Gasslöss Administration Pays Italie Région Trentin-Haut-Adige  Province Trentin   Code postal 38033 Code ISTAT 022050 Code cadastral C372 Préfixe tel. 0462 Démographie Gentilé cavalesani Population 4 010 hab...

 

 

Stately home located in Long Melford, Suffolk, England Kentwell HallSouth facade of Kentwell HallGeneral informationArchitectural styleEnglish perpendicularLocationLong Melford, Suffolk, EnglandCoordinates52°05′54″N 0°43′07″E / 52.098306°N 0.718516°E / 52.098306; 0.718516Construction started15th century Kentwell Hall is a stately home in Long Melford, Suffolk, England. It includes the hall, outbuildings, a rare-breeds farm and gardens. Most of the current b...

 

 

Airport rail link of Daxing Airport, part of Beijing Subway system Not to be confused with Capital Airport Express or Daxing line. Daxing Airport ExpressA Daxing Airport Express train passing Beiwangchang Village, Panggezhuang TownOverviewOther name(s)M35[1] (planned name)StatusOperationalLocaleFengtai, Daxing districts (Beijing) & Guangyang district (Langfang, Hebei Province)TerminiCaoqiaoDaxing AirportStations3ServiceTypeRapid transit, Airport rail linkSystemBeijing SubwayO...

This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these template messages) This article may require cleanup to meet Wikipedia's quality standards. No cleanup reason has been specified. Please help improve this article if you can. (January 2011) (Learn how and when to remove this message) This article may be very hard to understand. Please help clarify it. (April 2019) (Learn how and when to remove this message) Ar...

 

 

Men's regu at the 2018 Asian GamesVenueRanau Sports HallDate25–28 August 2018Competitors45 from 9 nationsMedalists   Malaysia  Indonesia  South Korea  Singapore← 20142022 → Sepak takraw at the2018 Asian GamesRegumenQuadrantmenwomenTeam doublesmenTeam regumenwomenvte Main article: Sepak takraw at the 2018 Asian Games The men's regu sepak takraw competition at the 2018 Asian Games was held at Ranau Sports Hall,...

 

 

Giuseppe Antonini Nazionalità  Italia Altezza 165 cm Peso 66 kg Calcio Ruolo Centrocampista Termine carriera 1951 - giocatore1955 - allenatore CarrieraGiovanili  VeronaSquadre di club1 1933-1937 Verona86 (9)1937-1949 Milan268 (23)1949-1951 Reggiana22 (2)Carriera da allenatore 1949-1952 Reggiana1953-1954 Venezia1955 Piacenza 1 I due numeri indicano le presenze e le reti segnate, per le sole partite di campionato.Il simbolo → indica un trasferimento i...

American actress and model (born 1998) Hunter SchaferSchafer at the 2024 BerlinaleBorn (1998-12-31) December 31, 1998 (age 25)Trenton, New Jersey, U.S.Occupations Actress model Years active2017–presentModeling informationHair colorBlondeEye colorBlueAgency Community (New York) Why Not Model Management (Milan) Premier Model Management (London)[1] Hunter Schafer (born December 31, 1998) is an American actress and model. She is mainly known for her role as transgender high sc...

 

 

Attorney General Election in New York State 1982 New York Attorney General Election ← 1978 2 November 1982 1986 →   Nominee Robert Abrams Frances A. Sciafani Party Democratic Republican Alliance Liberal Conservative Popular vote 3,056,950 1,560,474 Percentage 64.44% 32.90% New York Attorney General before election Robert Abrams Democratic Elected New York Attorney General Robert Abrams Democratic Elections in New York State Federal government Presidential elect...

 

 

36°20′48.2″N 6°36′11.13″E / 36.346722°N 6.6030917°E / 36.346722; 6.6030917   هذه المقالة عن مسجد الأمير عبد القادر. لمعانٍ أخرى، طالع الأمير عبد القادر (توضيح). مسجد الأمير عبد القادر إحداثيات 13°54′23″N 4°33′18″W / 13.90639°N 4.55500°W / 13.90639; -4.55500 معلومات عامة القرية أو المدينة قسن�...

American adventure film series This article is about the Universal Pictures films and related franchise. For the various works with the same name, see Mummy (disambiguation). The Mummy is a media franchise based on films by Universal Pictures about a mummified ancient Egyptian priest who is accidentally resurrected, bringing with him a powerful curse, and the ensuing efforts of heroic archaeologists to stop him. The franchise was created by Nina Wilcox Putnam and Richard Schayer. Universal Or...

 

 

County in Tennessee, United States Loudon County redirects here. For the county in Virginia, see Loudoun County, Virginia. County in TennesseeLoudon CountyCountyThe Loudon County Courthouse in LoudonLocation within the U.S. state of TennesseeTennessee's location within the U.S.Coordinates: 35°44′N 84°19′W / 35.73°N 84.31°W / 35.73; -84.31Country United StatesState TennesseeFounded1870Named forFort Loudoun[1]SeatLoudonLargest cityLenoir City (p...

 

 

Myths of China Nine Dragons, handscroll section, by Chen Rong, AD 1244, Song dynasty, Museum of Fine Arts, Boston Part of a series onChinese folk religion Concepts Tian—Shangdi Qi Shen Ling Xian ling Yinyang Hundun Mingyun Yuanfen Baoying Wu Theory Chinese theology Chinese gods and immortals Chinese mythology Chinese creation myth Chinese spiritual world concepts Model humanity: Xian Zhenren Wen and wu Practices Fenxiang Jingxiang Feng shui Miaohui Wu shamanism Jitong mediumship Precious sc...

Proteins that bind with DNA, such as transcription factors, polymerases, nucleases and histones Cro protein complex with DNA Interaction of DNA (orange) with histones (blue). These proteins' basic amino acids bind to the acidic phosphate groups on DNA. The lambda repressor helix-turn-helix transcription factor bound to its DNA target[1] The restriction enzyme EcoRV (green) in a complex with its substrate DNA[2] DNA-binding proteins are proteins that have DNA-binding domains an...

 

 

Questa voce sull'argomento cardinali italiani è solo un abbozzo. Contribuisci a migliorarla secondo le convenzioni di Wikipedia. Carlo Laurenzicardinale di Santa Romana Chiesa  Incarichi ricoperti Vescovo titolare di Amatunte di Palestina (1877-1884) Vescovo ausiliare di Perugia (1877-1879) Assessore della Congregazione della Romana e Universale Inquisizione (1882-1884) Cardinale presbitero di Sant'Anastasia (1884-1893) Segretario dei Memoriali (1885-1889) Camerlengo del Collegio ...