sansancn

以下是分析部分

    <script>
    // 飞机大战:
        // 引擎:难度选择,logo,loading,游戏开始
        // 我的飞机:创建,跟随鼠标移动,开火
        // 我的子弹:创建,移动,死亡
        // 敌机:创建,移动,碰撞检测,死亡
    
    // 引擎:
    function Engine(){

    }
    Engine.prototype.init = function(){}

    // 我的飞机:
    var plane = {

    }

    // 我的子弹:
    function Bullet(){

    }
    Bullet.prototype = {
        constructor:Bullet,
        init:function(){

        }
    }

    // 敌机:
    class Enemy{
        constructor(){

        }
        init(){

        }
    }

</script>

分类:

技术点:

相关文章:

  • 2021-09-29
  • 2021-08-24
  • 2021-09-21
  • 2021-11-19
  • 2021-12-20
猜你喜欢
  • 2021-08-18
  • 2022-12-23
  • 2022-12-23
  • 2021-09-09
  • 2021-10-12
  • 2022-12-23
  • 2021-08-05
相关资源
相似解决方案