HTML5 游戏引擎:CanvasEngine

Canvas Engine 是个 HTML5 Canvas 框架,也是个面向 2D 的视频游戏。Canvas Engine 能提供所有 HTML5 创建简单游戏的 Canvas,提供给游戏架构一个简单的 API。用 Canvas Engine 制作的游戏能兼容所有主流的浏览器,支持触屏设备和移动设备。

特性

Low-level API

Fullscreen support (Supported platforms). Multiple image file formats: DDS, JPG, PNG and TGA. Define a transparent color Scene Structure Overlay scenes Pause scene Multiplayer model Preloading Get the percentage of loading Elements Manipulation Manipulation : jQuery syntaxe Draw : HTML5 Canvas API syntaxe Utilities merge object class

Windows

Dialog box with the outline Cursor

Animations

Set an animation from a spritesheet Frequence and animation speed Sequence of multiple image Creating a custom animation with multiple sequences Display once, loop or temporary

Timeline (aka Tween)

Easy to make interpolations effects 29 Effects : easeInQuad, easeOutQuad, easeInCubic, easeOutCubic, etc. Loop

Collision

Entities model Test collision with virtual grid Polygon intersection and Contains Point.

Text

Set maximum line width Display effect Line by line Character by character font file formats : TTF, EOT external fonts
Google Fonts Fontdeck Fonts.com Typekit

Sound

Multiple sound file formats: OGG, WAV, MP3. Fading effects Web Audio or SoundManager2

Effects

Change tone screen Perform a flash Shake screen

Scrolling

Level Design

Tiled Map Editor (http://www.mapeditor.org) Gleed 2d (http://gleed2d.codeplex.com)

Save & Load

Encoding with BISON.js

Spritesheet Management

Input

Access to input types: Keyboard, Mouse, Xbox360 Pad, Joysticks click, dbclick, mousemove, mouseup, mousedown, mouseout, mouseover* Multi-Touch with Hammer.js : hold tap doubletap drag, dragstart, dragend, dragup, dragdown, dragleft, dragright swipe, swipeup, swipedown, swipeleft, swiperight transform, transformstart, transformend rotate pinch, pinchin, pinchout touch (gesture detection starts) release (gesture detection ends)

项目主页:http://www.open-open.com/lib/view/home/1396964379325

 本文由用户 jopen 自行上传分享,仅供网友学习交流。所有权归原作者,若您的权利被侵害,请联系管理员。

 转载本站原创文章,请注明出处,并保留原始链接、图片水印。

 本站是一个以用户分享为主的开源技术平台,欢迎各类分享!

相关知识

HTML5 游戏引擎:CanvasEngine
深入浅出HTML5游戏引擎视频教程【共32课时】
白鹭引擎HTML5专场 移动游戏蓝海启航
5款常用的html5游戏引擎以及优缺点分析
HTML5游戏开发进阶指南
游戏引擎白鹭:一款卓越的开源免费移动游戏引擎
html5游戏开发进阶指南 pdf
20个超赞的HTML5网页游戏设计欣赏
《HTML5游戏开发进阶指南》怎么样
这几款非常好用的开源游戏引擎和框架,赶快收藏

网址: HTML5 游戏引擎:CanvasEngine http://www.hyxgl.com/newsview380020.html

推荐资讯