Skip to content

A Elimination games based on the HTML,Javascript。Used the createjs framework。

License

Notifications You must be signed in to change notification settings

yicheng-irun/Elimination-games-XiaoXiaoLe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Elimination-games-XiaoXiaoLe

A Elimination games based on the HTML,Javascript。Used the createjs framework。



screenshot:

Example 1:
demo1

Example "hint()":
demo1

Example [col&row]:

{
   col:20,  //set 20 columns
   row:16,  //set 16 rows
}

demo1

usage:

<div class="game-container">
    <canvas id="js-game" width="300" height="250" class="gamecanvas"></canvas>
</div>
<script src="res/zepto.min.1.1.6.js"></script>
<script src="res/easeljs-0.8.2.min.js"></script>
<script src="res/tweenjs-0.6.2.min.js"></script>
<script src="res/hammer.min.js"></script>
<script src="xiaoxiaole.js"></script>
<script>
    var xxl = new XiaoXiaoLe("js-game", "img" ,{
            col:6,  //6 columns
            row:5,  //5 rows
        },
        function (score) {  //score changed calback
            $("#js-score-num").text(score)
        }, 
        function (score) {   //game end calback
            alert("gameover!!,You get " + score + " points");
        }, 
        function (time) {
            $("#js-time-down").text(time)
        }
    );

    xxl.start();

    // hint 
    xxl.hint();
</script>



About

A Elimination games based on the HTML,Javascript。Used the createjs framework。

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published