public Snake(TextureGenerator TextureGen, int Width, int Height) { _Texture = TextureGen.CreateTexture(Width, Height, Color.White); _EmptyTexture = TextureGen.CreateTexture(Width, Height, Color.Transparent); segmentsDictionary = new Dictionary <string, SnakeSegment>(); segmentsDictionary.Add("Head", createSegment(_Texture, new Vector2(5, 5), Color.Red)); }
public Food(Random Random, TextureGenerator TextureGen, int Width, int Height) { _Texture = TextureGen.CreateTexture(Width, Height, Color.White); random = Random; }
public Walls(TextureGenerator TextureGen, int Width, int Height) { _Texture = TextureGen.CreateTexture(Width, Height, Color.White); WallDictionary = new Dictionary <string, List <WallBlock> >(); }