码迷,mamicode.com
首页 > Web开发 > 详细

Cocos2d-JS全貌

时间:2014-10-30 07:13:05      阅读:337      评论:0      收藏:0      [点我收藏+]

标签:cocos2d-html5   html5引擎   html5   web前端   游戏开发   

Cocos2d-JS is Cocos2d-x engine‘s JavaScript version that includes Cocos2d-html5 and Cocos2d-x JavaScript Bindings. It equips your game with cross-browser and cross-platform abilities, accompanied by full Cocos2d-x features and simplified JavaScript friendly APIs.

Cocos2d-html5和Cocos2d-x JavaScript捆绑在一起组成的Cocos2d-JS是基于Cocos2d-x引擎的JavaScript版本。通过全面的Cocos2d-x特性和简洁优雅的javascript友好的应用程序接口,该框架可以让你的游戏拥有跨浏览器和平台的能力。


Cocos2d-JS reinvented workflows for all platforms in v3.0, it provides a consistent development experience for whichever platform you want to distribute to, no matter web and native. "Code once, run everywhere" is incredibly easy and natural in Cocos2d-JS. With one single JavaScript code base, you can run your game on all web browsers and native platforms including Mac OS, Windows, iOS and Android. This will bring your game great opportunities in almost all channels of distribution. On the other hand, if you are only interested in casual games on the web, you can embed directly in your web page the Cocos2d-JS Lite Version which is extremely easy to use and light as a feather.

从3.0版本开始,Cocos2d-JS为所有平台打造了了一种全新的工作流,它为任何一个你想分发的平台包括网络和本地提供了一个一致的开发模式。“一次编码,多处运行”在Cocos2d-JS这里显得非常容易和顺理成章。通过简单的JS基石,你开发的游戏可以很容易运行各系统,比如PC端的Mac, windows,移动端的IOS和Android的浏览器和本地平台。在几乎所有的渠道分发能给你游戏带来巨大的机会。另外,如果你仅仅是感兴趣于web端的游戏开发,你可以直接下载和引用精简版的(Lite Version)Cocos2d-JS版本在你的web页面中,这种方式是相当简单和轻量级的。

Furthermore, JavaScript friendly APIs make your game development experience a breeze - easy to code, test and distribute. In the meantime, Cocos2d-JS v3.0 is super powerful along with all these cool new features: Editors Support, Assets Manager, Object Pool, JS to Objective-C/JAVA reflection, etc.

此外,JS人性化的API能让你在写代码,测试,发布开发环节上非常轻松,同时,通过编辑器支持,资源管理器,对象池以及JS和OC/JAVA的映射关系等新酷的特性让Cocos2d-JS显得异常强大。


Workflows

  • Cross platforms developers can use Cocos Console to create projects, boost their development with web version engine and deploy games onto all native platforms and all browsers with Cocos Console.

  • Casual web game developers can download the Lite Version and start to develop just like using other web frameworks (e.g. jQuery).


工作流

跨平台者开发可通过Cocos 控制台,可建立项目,并使用web 版本引擎在开发中,同时部署游戏在本地平台和浏览器上面。


web游戏开发者可以像使用别的web框架一样(比如JQ)下载精简版本的Cocos-Js开发。


Download and API reference(下载和API引用)

Main features(主要特征)

  • Support All modern browsers and native platforms
  • 支持现代浏览器和本地平台
  • Scene management (workflow)
  • 场景控制器
  • Transitions between scenes
  • 场景切换
  • Sprites and Sprite Sheets
  • 精灵
  • Effects: Lens, Ripple, Waves, Liquid, etc.
  • 特效
  • Actions (behaviours):
  • 动作
    • Trasformation Actions: Move, Rotate, Scale, Fade, Tint, etc.
    • Composable actions: Sequence, Spawn, Repeat, Reverse
    • Ease Actions: Exp, Sin, Cubic, Elastic, etc.
    • Misc actions: CallFunc, OrbitCamera, Follow, Tween
  • Assets manager (hot update)
  • 资源管理
  • Basic menus and buttons
  • 基本菜单和按钮
  • Integrated with physics engines: Chipmunk and Box2d
  • 相互协调的物理引擎
  • Particle system
  • 颗粒系统
  • Skeleton Animations: Spine and Armature support
  • Fonts:
    • Fast font rendering using Fixed and Variable width fonts
    • Support for .ttf fonts
  • Tile Map support: Orthogonal, Isometric and Hexagonal
  • Parallax scrolling
  • Motion Streak
  • Render To Texture
  • Touch/Accelerometer on mobile devices
  • Touch/Mouse/Keyboard on desktop
  • Sound Engine support (CocosDenshion library) based on OpenAL or WebAudio on web
  • Integrated Slow motion/Fast forward
  • Fast and compressed textures: PVR compressed and uncompressed textures, ETC1 compressed textures, and more
  • Resolution Independence
  • Modularized engine for customization
  • Open Source Commercial Friendly: Compatible with open and closed source projects
  • OpenGL ES 2.0 (mobile) / OpenGL 2.1 (desktop) based
  • Full WebGL support and auto canvas fallback

Documents

Cocos2d-JS全貌

标签:cocos2d-html5   html5引擎   html5   web前端   游戏开发   

原文地址:http://blog.csdn.net/xizai2012/article/details/40607781

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!