예제 #1
0
        private void AddCannonBall(Vector2 position)
        {
            CannonBall cannonBall = new CannonBall();

            cannonBall.Initialize(GraphicsDevice.Viewport, cannonBallTexture, new Vector2(player.Position.X, random.Next(100, GraphicsDevice.Viewport.Height - 100)));
            cannonBalls.Add(cannonBall);
        }