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的簡易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