Example #1
0
        public Game()
        {
            bulletCompany = new Charactors.Bullet.Company(gameLayer);
            shotCompany   = new Charactors.Shot.Company(gameLayer, player);
            enemyCompany  = new Charactors.Enemy.Company(gameLayer, bulletCompany, shotCompany, player);

            gameLayer.AddObject(player);
            AddLayer(gameLayer);

            stausLayer.AddObject(hp);
            AddLayer(stausLayer);
        }
Example #2
0
        public Company(
            asd.Layer2D layer,
            Charactors.Bullet.Company bulletCompany,
            Charactors.Shot.Company shotCompany,
            Player player)
        {
            this.layer         = layer;
            this.bulletCompany = bulletCompany;
            this.shotCompany   = shotCompany;
            this.player        = player;

            enemyData = new System.Drawing.Bitmap("Resource/enemy.bmp");
        }