js实现小鸟飞行穿越柱子游戏代码

代码语言:html

所属分类:游戏

代码描述:js实现小鸟飞行穿越柱子游戏代码

代码标签: 飞行 穿越 柱子 游戏

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en">
<head>
   
<meta charset="UTF-8">
   
<meta name="viewport" content="width=device-width, initial-scale=1.0">
   
<title></title>
   
<style>
        #contaner{
            width: 100%;
            height: 600px;
            margin: 0px auto;
            background: url(//repo.bfw.wiki/bfwrepo/images/game/feiniao/sky.png);
            position: relative;
            overflow: hidden;
            text-align: center;
        }
        #contaner #bird{
            background: url(//repo.bfw.wiki/bfwrepo/images/game/feiniao/bird1.png) no-repeat;
            position: absolute;
            top: 230px;
            width: 30px;
            height: 30px;
            left: 50%;
        }
        #contaner h2{
            font-weight: bold;
            color: #fff;
            cursor: pointer;
            top: 290px;
            position: absolute;
            left: 50%;
            margin-left: -30px;
            animation: bound 0.3s ease-in-out 0s infinite alternate;
        }
        @keyframes bound{
            0%{
                transform: scale(1);
            }
            25%{
                transform: s.........完整代码请登录后点击上方下载按钮下载查看

网友评论0