您的位置:首页 > Web前端 > HTML5

HTML5游戏开发开源库件lufylegend1.3.1发布

2012-04-16 10:36 281 查看
原文:/article/1360494.html

这次更新,其实也没加什么太多的内容,主要是为了方便使用,将库件重新封装成了一个文件,大家使用时只需要把lufylegend.js文件引入即可。


一,lufylegend.js是什么?

lufylegend.js是个javascript库,它的前身是LegendForHtml5Programming,名字太长所以改了,它模仿了ActionScript的语法,包含了LSprite,LBitmapData,LBitmap,LLoader,LURLLoader,LTextField,LEvent等多个AS开发人员熟悉的类,使得html5的开发可以变得简单。


二,lufylegend.js库件的下载

http://legendforhtml5programming.googlecode.com/files/lufylegend1.3.1.js

lufylegend.js 1.3.2版修正了1.3.1中firefox浏览器下鼠标失效的bug

http://legendforhtml5programming.googlecode.com/files/lufylegend1.3.2.js


三,lufylegend.js的简易API文档

http://legendforhtml5programming.googlecode.com/files/lufylegendAPI1.3.1.html


四,lufylegend.js库件的使用举例

下面是几个简单的例子,在下美工很烂,大家主要看一下功能。

1,俄罗斯方块

http://fsanguo.comoj.com/html5/jstoas10/index.html



2,抽奖小游戏

http://fsanguo.comoj.com/html5/lottery_html5/index.html



3,老虎机

http://fsanguo.comoj.com/html5/slot/index.html



4,仿雷电

http://fsanguo.comoj.com/html5/barrage2/index.html



5,Tower Defense(塔防)

http://fsanguo.comoj.com/html5/td/index.html



6,RPG

http://fsanguo.comoj.com/html5/rpg5/index.html



7,连连看

http://fsanguo.comoj.com/html5/lianlian/index.html




五,lufylegend.js库件的构建过程

可以参照在下以前的用仿ActionScript的语法来编写html5系列文章,具体连接如下

第一篇,显示一张图片

/article/1360510.html

第二篇,利用Sprite来实现动画

/article/1360510.html

第三篇,鼠标事件与游戏人物移动

/article/1360509.html

第四篇,继承与简单的rpg

/article/1360508.html

第五篇,Graphics绘图

/article/1360506.html

第六篇,TextField与输入框

/article/1360505.html

第七篇,自定义按钮

/article/1360504.html

第八篇,图片处理+粒子效果

/article/1360503.html

第九篇,仿URLLoader读取文件

/article/1360502.html
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐