摘要
设计并实现了跨平台3D魔方,该游戏使用threejs3D建模技术,采用基本图形的绘图函数及定位函数,添加相应的颜色、纹理来实现魔方模型的绘制。利用html5的跨平台特性,使游戏支持Windows,安卓,iOS等操作系统。结合JavaS-cript,收集用户的操作信息。魔方的主要功能包括随机打乱,自动复原,游戏重置,计时等功能,网络对战模式下还可对成绩进行查看。
Cross-Platform 3D cube was designed and implemented in the online game. It uses three.js,one of the 3D modeling technologies, the basic graphic drawing function and positioning function.Besides,it adds the corresponding color, texture to real- ize the rubik's cube model. For operating systerm,Windows,Android,iOS and others are supported with the cross-platform features of html5. In combination with JavaScript,the game collect users' operation information. Main functions include rubik's cube ran- dom disturbing, automatic recovery, game resetting, timing, and other functions.The score can be checked under the network mode.
作者
陈晓军
马青霄
商晓彤
朱小茹
崔晓腾
CHEN Xiao-jun, MA Qing-xiao, SHANG Xiao-tong, ZHU Xiao-ru, CUI Xiao-teng (Shijiazhuang Tiedao University, Shijiazhuang 050043, China)
出处
《电脑知识与技术》
2015年第4期180-181,184,共3页
Computer Knowledge and Technology
基金
2014年河北省大学生创新创业训练计划立项项目(201410107045)