/// <summary> /// LoadContent will be called once per game and is the place to load /// all of your content. /// </summary> protected override void LoadContent() { // Create a new SpriteBatch, which can be used to draw textures. spriteBatch = new SpriteBatch(GraphicsDevice); Texture2D temp = Content.Load <Texture2D>("Square"); sprite = new SpiralMover(temp, new Vector2(300, 300), 50); }
/// <summary> /// LoadContent will be called once per game and is the place to load /// all of your content. /// </summary> protected override void LoadContent() { // 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 // *** Pre-lab2 //sprite = new Sprite(Content.Load<Texture2D>("Square")); // *** Lab2 spiralMover = new SpiralMover(Content.Load <Texture2D>("Square"), Vector2.Zero); font = Content.Load <SpriteFont>("Font"); }