Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
1.1 kB
0
Indexable
Never
<!DOCTYPE html>
<html>
<head>
    <title>Flappy Bird</title>
    <style>
        #game {
            width: 288px;
            height: 512px;
            background-color: #4ec0ca;
            margin: auto;
            position: relative;
            overflow: hidden;
        }
        #bird {
            width: 34px;
            height: 24px;
            background-image: url('https://compucademy.net/wp-content/uploads/2019/06/bird.png');
            position: absolute;
            top: 200px;
            left: 50px;
        }
        .pipe {
            width: 52px;
            height: 320px;
            background-image: url('https://compucademy.net/wp-content/uploads/2019/06/pipe.png');
            position: absolute;
        }
        .pipe.top {
            top: -320px;
        }
        .pipe.bottom {
            bottom: -320px;
        }
    </style>
</head>
<body>
    <div id="game">
        <div id="bird"></div>
        <div class="pipe top"></div>
        <div class="pipe bottom"></div>
    </div>
</body>
</html>