HTML5激流勇进迷宫逃生小游戏源码

HTML5激流勇进迷宫逃生小游戏源码-精品资源网
HTML5激流勇进迷宫逃生小游戏源码
此内容为免费资源,请登录后查看
0
免费资源

HTML5激流勇进迷宫逃生小游戏源码

一款简单好玩的HTML5激流勇进迷宫逃生小游戏源码。游戏玩法:使用左键、右键和上箭头键移动。

js代码

<script src=\"game.js\"></script>
<script>
    window.onload = function () {
        var height = document.documentElement.clientHeight;
        var kbBox = document.getElementById(\"kbBox\");
        var top = height - 400;
        console.log(top);
        kbBox.setAttribute(\"style\",\"height:\"+top/2+\"px\");

        var startGameId = document.getElementById(\"startGame\");
        var enterGameId = document.getElementById(\"enterGame\");
        var gameId = document.getElementById(\"gameId\");
        enterGameId.onclick = function () {
            gameId.setAttribute(\"style\",\"display:block\");
            startGameId.setAttribute(\"style\",\"display:none\");
            Loop();
        }
    }
</script>

© 版权声明
THE END
点赞0 分享
评论 抢沙发
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称表情代码图片

    暂无评论内容