基于HTML5的移动应用引擎的设计
he design of the mobile application engine based on HTML5
HTML5的良好的跨平台性可以大大减少项目开发时为不同操作系统进行版本适配的工作量,并且HTML5规范中还具有许多功能丰富的API,开发者可以使用这些API开发出令用户耳目一新的网络应用。因此,通过对这些新增特性的使用,结合HTML5自身良好的跨平台性,设计一款基于HTML5的移动应用引擎具有很高的实用价值。本文主要阐述了基于HTML5的移动应用引擎的主要模块的功能设计及各个模块间的相互关系。这些功能模块包括:资源加载模块、精灵模块、动画模块、碰撞检测模块、触摸交互模块、应用状态自调用模块、声音播放模块、场景绘制模块、视野选择模块以及离线数据存取模块。并给出了提高引擎抗干扰性的解决方法。最后,提出了引擎的优化方案,对引擎进行了性能优化。
Moblie applications development's workload can be greatly reduced due to the good cross-platform featured in HTML5.In addition, the HTML5 specification also has many of the feature-rich API, developers can use these APIs to develop fresh web applications. Therefore, using of these new features, in combination with HTML5's cross-platform feature, design a HTML5-based mobile application engine is of great practical value. This article focuses on the functional design of HTML5 mobile application engine modules, and the relationship between each module. These functional modules including: the resource load module, sprite module, animation module, collision detection module, touch interactive module, application state loop module, audio module, scene rendering module, view selection module as well as offline data access module. And then the article focused on the improvment solution on the anti-interference and the performance optimization of the engine.
黄小军、张奇伟
计算技术、计算机技术
HTML5移动应用引擎设计
HTML5moblie application enginedesign
黄小军,张奇伟.基于HTML5的移动应用引擎的设计[EB/OL].(2012-12-27)[2025-05-24].http://www.paper.edu.cn/releasepaper/content/201212-1021.点此复制
评论