Ejemplo n.º 1
0
 /// <summary>
 /// LoadContent will be called once per game and is the place to load
 /// all of your content.
 /// </summary>
 protected override void LoadContent()
 {
     //Sound.Initialise();
     Fireball.LoadContent(contentManager);
     Vortex.LoadContent(contentManager);
     Fireballer.LoadContent(contentManager);
     Vortexer.LoadContent(contentManager);
     arial = contentManager.Load <SpriteFont>(@"Content/Arial");
     // Create a new SpriteBatch, which can be used to draw textures.
     spriteBatch = new SpriteBatch(GraphicsDevice);
     // TODO: use this.Content to load your game content here
 }
Ejemplo n.º 2
0
        protected override void CreateProjectile(Vector2 direction)
        {
            Vortex vortex = new Vortex(owner, direction);

            ProjectileManager.AddProjectile(vortex);
        }