HTML5游戲開發開源庫件lufylegend1.3.1發布

openkk 12年前發布 | 17K 次閱讀 HTML5

這次更新,其實也加什么太多的內容,主要是為了方便使用,將庫件重新封裝成了一個文件,大家使用時只需要把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的簡易API文檔

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

四,lufylegend.js庫件的使用舉例

下面是幾個簡單的例子,在下美工很爛,大家主要看一下功能。

1,俄羅斯方塊
http://fsanguo.comoj.com/html5/jstoas10/index.html
HTML5游戲開發開源庫件lufylegend1.3.1發布

2,抽獎小游戲
http://fsanguo.comoj.com/html5/lottery_html5/index.html
HTML5游戲開發開源庫件lufylegend1.3.1發布

3,老虎機

http://fsanguo.comoj.com/html5/slot/index.html
HTML5游戲開發開源庫件lufylegend1.3.1發布

4,仿雷電

http://fsanguo.comoj.com/html5/barrage2/index.html
HTML5游戲開發開源庫件lufylegend1.3.1發布

5,Tower Defense(塔防)

http://fsanguo.comoj.com/html5/td/index.html
HTML5游戲開發開源庫件lufylegend1.3.1發布

6,RPG

http://fsanguo.comoj.com/html5/rpg5/index.html
HTML5游戲開發開源庫件lufylegend1.3.1發布

7,連連看

http://fsanguo.comoj.com/html5/lianlian/index.html
HTML5游戲開發開源庫件lufylegend1.3.1發布

,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

 本文由用戶 openkk 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!