Ejemplo n.º 1
0
        private PlayerBullet AddPlayerBullet()
        {
            PlayerBullet bullet = new PlayerBullet();

            bullet.Position = new CCPoint(player.Position.X, player.Position.Y + player.ContentSize.Height / 2);
            AddChild(bullet, PLAYER_BULLET_INDEX);

            var moveBullet = new CCMoveTo(5.0f, new CCPoint(bullet.Position.X, VisibleBoundsWorldspace.MaxY));

            bullet.RunActions(moveBullet, moveOutOfView);
            return(bullet);
        }