I'm sorry if this is insanely stupid, but I'm a total newbie when it comes to C# and especially the XNA Framework. I got the error message from above; why in the heck does it work for Platformer1's Player code but not for me?!
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
namespace WindowsGame1
{
class Cell
{
public bool alive;
public Texture2D CSprite;
public int x
{
get { return x; }
set { x = value; }
}
public int y
{
get { return y; }
set { y = value; }
}
public void Draw(GameTime gameTime, SpriteBatch spriteBatch)
{
}
public void Update(GameTime gameTime)
{
}
protected override void LoadContent()
{
//spriteBatch = new SpriteBatch(GraphicsDevice);
CSprite = new ContentManager.Load<Texture2D>("10by10tile"); // TODO: This does NOT work for some reason.
}
}
}