public class Game1 : Microsoft.Xna.Framework.Game
{
GraphicsDeviceManager graphics;
SpriteBatch spriteBatch;
public Game1()
{
graphics = new GraphicsDeviceManager(this);
Content.RootDirectory = "Content";
}
protected override void Initialize()
{
base.Initialize();
}
bool hasJumped = true;
Vector2 velocity;
Texture2D player;
Texture2D ground1;
List<Vector2> vectors = new List<Vector2>();
List<int> list = new List<int>();
List.add(1);
List.add(1);
结果在2个错误"Invalid Token '(' in class,struct,or interface member declaration"
和"using the generetic type 'System.Collections.Generic.List<T>' requiers 1type arguments"
使用System.Collections.Generic的问题;还是其他什么东西
发生了什么事,请告诉我
请花一些时间在下次正确格式化您的问题 – sll
问题不是关于大写L也许我已经粘贴它错误看看当我键入“矢量”与“V”该程序不显示它为注册 –
@GeorgiAntonov程序有其他语法错误。在出现语法错误时,您不能相信IDE反馈。您应该修复所有人列出的错误,并且将来可能会提供更完整的代码示例。最好的祝愿。 K –