Simple HTML Platformer Game
<style type="text/css">
    body {
        margin: 0;
        padding: 0;
    }

    #container {
        width: 600px;
        height: 400px;
        margin: 0 auto;
        position: relative;
        border: 1px solid black;
    }

    #player {
        position: absolute;
        left: 50px;
        top: 50px;
        width: 50px;
        height: 50px;
        background-color: blue;
    }

    .platform {
        position: absolute;
        width: 200px;
        height: 30px;
        background-color: green;
    }

    #platform1 {
        top: 100px;
        left: 200px;
    }

    #platform2 {
        top: 250px;
        left: 0px;
    }

</style>
Simple HTML Platformer Game: Build Your Own Jump & Run

原文地址: https://www.cveoy.top/t/topic/lmms 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录