예제 #1
0
        public BaseActor Shoot()
        {
            h_startShootTimer();
            var bullet = new EnemyBullet(Info, this);

            bullet.Load();
            return(bullet);
        }
예제 #2
0
파일: Ship2.cs 프로젝트: sid365365/Galaxy
        public EnemyBullet CreateEnemyBullet(Ship2 ship)
        {
            var enbullet  = new EnemyBullet(Info);
            int positionY = ship.Position.Y + 26;
            int positionX = ship.Position.X + 12;

            enbullet.Position = new Point(positionX, positionY);
            enbullet.Load();
            return(enbullet);
        }
예제 #3
0
        public EnemyBullet CreatEnemyBullet()
        {
            var enemybullet = new EnemyBullet(Info);
            int positionY   = Position.Y + 20;
            int positionX   = Position.X + 20;

            enemybullet.Position = new Point(positionX, positionY);
            enemybullet.Load();

            return(enemybullet);
        }