My favorites | Sign in
Project Home Downloads Wiki Issues Source
Project Information
Members
Featured
Downloads
Links

Important Notice:

This framework may not be in maintainance anymore. Please try to use the new generation of this framework QuarkJS on github: http://github.com/quark-dev-team/quarkjs


CasualJS Framework是根据ActionScript3.0的架构开发的一套适用于HTML5 Canvas的面向对象的开发框架。目的是让你无缝的从AS3开发过渡到HTML5 Canvas开发。虽然Canvas提供了强大的绘图功能,但满足不了高级开发的需要。利用CasualJS的显示对象架构及渲染机制,你可以轻松的在Canvas中操控各种位图、图形、影片剪辑等显示对象,就如同在用AS3开发一样愉快。


Features

  • An AS3-like display object list implementation (类似AS3的显示对象列表结构封装)
  • Frame-based display objects rendering mechanism (基于帧的显示对象渲染机制)
  • Frame-based MovieClip implementation (基于帧的MovieClip动画片段实现)
  • Simple event mode (内置简单的事件模型)
  • Display objects collision implementation (显示对象碰撞检测)

Examples

Note: If you run these examples above from local, please pay attention on the Same-Origin Policy, you may get SECURITY_ERR: DOM Exception 18 error.

To solve this problem:

  • Firefox:Type about:config in the address bar and press Enter,change security.fileuri.strict_origin_policy to false。
  • Chrome:Run command /path-to-chrome/chrome.exe -allow-file-access-from-files。

Game Demos

Note: The games above are not really games, for CasualJS Framework demonstration purpose mostly. Recommend use Firefox 4.0+, Chrome 10+, IE 9+, Safari 5+ to experience.(注意:以上游戏并非完整的游戏,主要目的是为演示CasualJS框架,推荐用Firefox 4.0+, Chrome 10+, IE 9+, Safari 5+来体验这些游戏。)


API Documentation


Downloads


Visit http://www.riaidea.com or http://www.html5idea.com for more information.

Note: The framework is in alpha stage at the moment. This means use it at your own risk. Not everything is finished and tested yet.

If you are interested in this project and would like to join, please contact me: flashlizi#gmail.com.

Powered by Google Project Hosting