Skip to content

Based on the HTML,Javascript elimination games 。Use the createjs framework

License

Notifications You must be signed in to change notification settings

litmouse/Elimination-games-XiaoXiaoLe

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Elimination-games-XiaoXiaoLe

Based on the HTML,Javascript elimination games 。Use the createjs framework

screenshot:

Example 1:
demo1

Example "hint()":
demo1

usage:

<div class="game-container">
    <canvas id="js-game-bg" width="300" height="250" class="game-bg-canvas"></canvas>
    <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", "js-game-bg", "img",
        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

Based on the HTML,Javascript elimination games 。Use the createjs framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 87.9%
  • HTML 6.8%
  • CSS 5.3%