`
webcode
  • 浏览: 5929498 次
  • 性别: Icon_minigender_1
  • 来自: 上海
文章分类
社区版块
存档分类
最新评论

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

 
阅读更多

这次更新,其实也没加什么太多的内容,主要是为了方便使用,将库件重新封装成了一个文件,大家使用时只需要把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系列文章,具体连接如下

第一篇,显示一张图片
http://blog.csdn.net/lufy_legend/article/details/6753032
第二篇,利用Sprite来实现动画
http://blog.csdn.net/lufy_legend/article/details/6753032
第三篇,鼠标事件与游戏人物移动
http://blog.csdn.net/lufy_legend/article/details/6760812
第四篇,继承与简单的rpg
http://blog.csdn.net/lufy_legend/article/details/6770713
第五篇,Graphics绘图
http://blog.csdn.net/lufy_legend/article/details/6777784
第六篇,TextField与输入框
http://blog.csdn.net/lufy_legend/article/details/6782218
第七篇,自定义按钮
http://blog.csdn.net/lufy_legend/article/details/6798187
第八篇,图片处理+粒子效果
http://blog.csdn.net/lufy_legend/article/details/6798192
第九篇,仿URLLoader读取文件
http://blog.csdn.net/lufy_legend/article/details/6824136

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics