全平台运行:Cocos 2d
近日,全球领先开源引擎Cocos 2d-x的JavaScript版本 Cocos 2d-JS 正式发布v3.0 Final版本!继春季开发者大会发布Alpha版以来,已过去整整半年时间, Cocos 2d-JS v3.0版经历了化蛹成蝶般的蜕变。v3.0 Final版本彻底整合了不同平台的工作流,统一了HTML5与Jav
近日,全球领先开源引擎Cocos 2d-x的JavaScript版本——Cocos 2d-JS正式发布v3.0 Final版本!继春季开发者大会发布Alpha版以来,已过去整整半年时间,Cocos 2d-JS v3.0版经历了化蛹成蝶般的蜕变。v3.0 Final版本彻底整合了不同平台的工作流,统一了HTML5与JavaScript Bindings的API,真正帮助开发者实现“一次开发,全平台运行”。
两套工作流:覆盖Web、原生不同需求
针对游戏开发者的不同需求,本次的Cocos 2d-JS v3.0版本为两类开发者分别设计了两套简洁的工作流:
● 跨平台游戏开发者——使用Cocos Console创建项目,用Web引擎加速游戏开发,最终用Cocos Console将游戏发布到所有原生平台与Web平台;
● Web端轻度休闲游戏开发者——直接下载单文件的Cocos 2d-JS Lite Version,嵌入Web页面中,像使用jQuery那样进行开发。
目前,已有EA《2014 FIFA》、Big Fish Games《Big Fish Casino》、昆仑游戏 & Line《Line悟空》、第七大道&胡莱《新神曲》、完美世界《东邪西毒》、4399《谁的乱世》、触控《进击的小怪物》等众多海内外原生游戏采用Cocos 2d-JS进行开发。
而在前阵子大行其道的微信HTML5游戏中,《你是我的小羊驼》《来自喵星的你》等多款则是基于Cocos 2d-JS Lite Version进行开发的。《你是我的小羊驼》是由一位程序员携手一位美术在不到10小时内开发完成的,得益于Cocos 2d-JS的模块定制功能,完成后的游戏文件大小仅有251K。
(采用Cocos 2d-JS Lite Version开发的《你是我的小羊驼》)
整合HTML5 & JSB:一套代码,全平台运行
根据v3.0发布说明,Cocos 2d-JS整合了JSB引擎与Web引擎的API,天然支持原生、浏览器跨平台应用。只需编写一套JavaScript游戏代码,就可以同时运行在Mac OS X、Windows、iOS、Android等原生平台、以及所有现代浏览器上。这不仅极大地提升了开发效率,还使开发者可以轻松覆盖几乎所有发行渠道,迎接更多的市场机遇。
Cocos 2d-JS v3.0支持Cocos 2d-x引擎的所有核心特性,并提供更加简单易用的JavaScript风格API,包含New构造方式、属性风格API、简化的动作API等。全新的API使得编码、测试与发布环节都变得更加轻松简单。
除此之外,本次Cocos 2d-JS v3.0版本还提供诸多强大的新特性:资源管理器支持资源与脚本的热更新、更强大更灵活的新事件管理器、JavaScript到JAVA/Objective-C反射、Spine骨骼动画支持等等。
Cocos 2d-JS v3.1 路线图披露
据引擎团队透露,Cocos 2d-JS在接下来的进化中将更加专注于优化性能、增强工具链与完善文档几个方面,v3.1版本的核心任务将有:
● Canvas渲染模式下的新渲染框架将在v3.1中合并到主分支,多项测试表明性能将比当前版本进一步优化近50%;
● Facebook SDK for Cocos 2d-JS将随v3.1发布,开发者将可使用同一套JS代码从iOS/Android/Web等不同平台接入Facebook;
● 提升JSB内存管理的稳定性,并进一步简化内存管理使用方式;
● 推出Cocos 2d-JS使用指南,完整覆盖Cocos 2d-JS开发的所有细节。
同时,Cocos 2d-JS团队与Intel、Facebook等众多海内外巨头的技术合作项目也在进行当中,将共同为Cocos 2d-JS开发者带来更高效、更简洁的开发体验。
Cocos 2d-JS v3.0 Final 版下载地址:http://www.cocos2d-x.org/filedown/Cocos 2d-JS-v3.0.zip
Cocos 2d-JS Lite Version下载地址:http://www.cocos2d-x.org/filecenter/jsbuilder
发布说明:https://github.com/pandamicro/cocos-docs/blob/master/manual/framework/html5/release-notes/v3.0/release-note/zh.md

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Image annotation is the process of associating labels or descriptive information with images to give deeper meaning and explanation to the image content. This process is critical to machine learning, which helps train vision models to more accurately identify individual elements in images. By adding annotations to images, the computer can understand the semantics and context behind the images, thereby improving the ability to understand and analyze the image content. Image annotation has a wide range of applications, covering many fields, such as computer vision, natural language processing, and graph vision models. It has a wide range of applications, such as assisting vehicles in identifying obstacles on the road, and helping in the detection and diagnosis of diseases through medical image recognition. . This article mainly recommends some better open source and free image annotation tools. 1.Makesens

Text annotation is the work of corresponding labels or tags to specific content in text. Its main purpose is to provide additional information to the text for deeper analysis and processing, especially in the field of artificial intelligence. Text annotation is crucial for supervised machine learning tasks in artificial intelligence applications. It is used to train AI models to help more accurately understand natural language text information and improve the performance of tasks such as text classification, sentiment analysis, and language translation. Through text annotation, we can teach AI models to recognize entities in text, understand context, and make accurate predictions when new similar data appears. This article mainly recommends some better open source text annotation tools. 1.LabelStudiohttps://github.com/Hu

How to execute .sh file in Linux system? In Linux systems, a .sh file is a file called a Shell script, which is used to execute a series of commands. Executing .sh files is a very common operation. This article will introduce how to execute .sh files in Linux systems and provide specific code examples. Method 1: Use an absolute path to execute a .sh file. To execute a .sh file in a Linux system, you can use an absolute path to specify the location of the file. The following are the specific steps: Open the terminal

With the advancement of communication technology, telephone contact has become more and more common in our daily lives. However, sometimes we may try to call a number only to find that the number is no longer reachable. In order to save time and energy, many people start looking for empty number verification services to confirm the validity of the number. This service can help users quickly check whether a number is valid and avoid unnecessary trouble. 1. What are the empty account detection platforms? Users can check the status of the number, including whether it is empty, by dialing the corresponding inquiry number or visiting the official website through the official inquiry service provided by the operator. This service is provided by many operators to facilitate users to quickly understand the usage of the number. Online empty number detection platforms are now emerging in an endless stream on the market. These platforms provide quick and convenient

Face detection and recognition technology is already a relatively mature and widely used technology. Currently, the most widely used Internet application language is JS. Implementing face detection and recognition on the Web front-end has advantages and disadvantages compared to back-end face recognition. Advantages include reducing network interaction and real-time recognition, which greatly shortens user waiting time and improves user experience; disadvantages include: being limited by model size, the accuracy is also limited. How to use js to implement face detection on the web? In order to implement face recognition on the Web, you need to be familiar with related programming languages and technologies, such as JavaScript, HTML, CSS, WebRTC, etc. At the same time, you also need to master relevant computer vision and artificial intelligence technologies. It is worth noting that due to the design of the Web side

New SOTA for multimodal document understanding capabilities! Alibaba's mPLUG team released the latest open source work mPLUG-DocOwl1.5, which proposed a series of solutions to address the four major challenges of high-resolution image text recognition, general document structure understanding, instruction following, and introduction of external knowledge. Without further ado, let’s look at the effects first. One-click recognition and conversion of charts with complex structures into Markdown format: Charts of different styles are available: More detailed text recognition and positioning can also be easily handled: Detailed explanations of document understanding can also be given: You know, "Document Understanding" is currently An important scenario for the implementation of large language models. There are many products on the market to assist document reading. Some of them mainly use OCR systems for text recognition and cooperate with LLM for text processing.

Let me introduce to you the latest AIGC open source project-AnimagineXL3.1. This project is the latest iteration of the anime-themed text-to-image model, aiming to provide users with a more optimized and powerful anime image generation experience. In AnimagineXL3.1, the development team focused on optimizing several key aspects to ensure that the model reaches new heights in performance and functionality. First, they expanded the training data to include not only game character data from previous versions, but also data from many other well-known anime series into the training set. This move enriches the model's knowledge base, allowing it to more fully understand various anime styles and characters. AnimagineXL3.1 introduces a new set of special tags and aesthetics

Do you know how to run m files in matlab? Below, the editor will bring you a tutorial on how to run m files in matlab. I hope it will be helpful to you. Let’s learn with the editor! 1. First open the matlab software and select the upper left "Open" the corner, as shown in the picture below. 2. Then select the m file to be run and open it, as shown in the figure below. 3. Press F5 in the window to run the program, as shown in the figure below. 4. We can view the running results in the command line window and workspace, as shown in the figure below. 5. You can also run the file by clicking "Run" directly, as shown in the figure below. 6. Finally, you can view the running results of the m file in the command line window and workspace, as shown in the figure below. The above is the matlab method that the editor brought to you
