search
HomeDatabaseMysql Tutorial全平台运行:Cocos 2d

全平台运行:Cocos 2d

Jun 07, 2016 pm 03:42 PM
worldwideplatformOpen sourceenginerunleading

近日,全球领先开源引擎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,真正帮助开发者实现“一次开发,全平台运行”。

全平台运行:Cocos 2d

   两套工作流:覆盖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

   (采用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

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
How does MySQL handle data replication?How does MySQL handle data replication?Apr 28, 2025 am 12:25 AM

MySQL processes data replication through three modes: asynchronous, semi-synchronous and group replication. 1) Asynchronous replication performance is high but data may be lost. 2) Semi-synchronous replication improves data security but increases latency. 3) Group replication supports multi-master replication and failover, suitable for high availability requirements.

How can you use the EXPLAIN statement to analyze query performance?How can you use the EXPLAIN statement to analyze query performance?Apr 28, 2025 am 12:24 AM

The EXPLAIN statement can be used to analyze and improve SQL query performance. 1. Execute the EXPLAIN statement to view the query plan. 2. Analyze the output results, pay attention to access type, index usage and JOIN order. 3. Create or adjust indexes based on the analysis results, optimize JOIN operations, and avoid full table scanning to improve query efficiency.

How do you back up and restore a MySQL database?How do you back up and restore a MySQL database?Apr 28, 2025 am 12:23 AM

Using mysqldump for logical backup and MySQLEnterpriseBackup for hot backup are effective ways to back up MySQL databases. 1. Use mysqldump to back up the database: mysqldump-uroot-pmydatabase>mydatabase_backup.sql. 2. Use MySQLEnterpriseBackup for hot backup: mysqlbackup--user=root-password=password--backup-dir=/path/to/backupbackup. When recovering, use the corresponding life

What are some common causes of slow queries in MySQL?What are some common causes of slow queries in MySQL?Apr 28, 2025 am 12:18 AM

The main reasons for slow MySQL query include missing or improper use of indexes, query complexity, excessive data volume and insufficient hardware resources. Optimization suggestions include: 1. Create appropriate indexes; 2. Optimize query statements; 3. Use table partitioning technology; 4. Appropriately upgrade hardware.

What are views in MySQL?What are views in MySQL?Apr 28, 2025 am 12:04 AM

MySQL view is a virtual table based on SQL query results and does not store data. 1) Views simplify complex queries, 2) Enhance data security, and 3) Maintain data consistency. Views are stored queries in databases that can be used like tables, but data is generated dynamically.

What are the differences in syntax between MySQL and other SQL dialects?What are the differences in syntax between MySQL and other SQL dialects?Apr 27, 2025 am 12:26 AM

MySQLdiffersfromotherSQLdialectsinsyntaxforLIMIT,auto-increment,stringcomparison,subqueries,andperformanceanalysis.1)MySQLusesLIMIT,whileSQLServerusesTOPandOracleusesROWNUM.2)MySQL'sAUTO_INCREMENTcontrastswithPostgreSQL'sSERIALandOracle'ssequenceandt

What is MySQL partitioning?What is MySQL partitioning?Apr 27, 2025 am 12:23 AM

MySQL partitioning improves performance and simplifies maintenance. 1) Divide large tables into small pieces by specific criteria (such as date ranges), 2) physically divide data into independent files, 3) MySQL can focus on related partitions when querying, 4) Query optimizer can skip unrelated partitions, 5) Choosing the right partition strategy and maintaining it regularly is key.

How do you grant and revoke privileges in MySQL?How do you grant and revoke privileges in MySQL?Apr 27, 2025 am 12:21 AM

How to grant and revoke permissions in MySQL? 1. Use the GRANT statement to grant permissions, such as GRANTALLPRIVILEGESONdatabase_name.TO'username'@'host'; 2. Use the REVOKE statement to revoke permissions, such as REVOKEALLPRIVILEGESONdatabase_name.FROM'username'@'host' to ensure timely communication of permission changes.

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function