Exemple #1
0
        public void createFood()
        {
            if (isEaten)
            {
                var x = random.Next(5, 80);
                var y = random.Next(5, 50);

                foodblock = new FoodBlock(_Texture, new Vector2(x, y), Color.Chocolate);

                isEaten = false;
            }
        }
Exemple #2
0
 void CreateFood(Tiles.Tile Tile)
 {
     foodblock = new FoodBlock(Tile._Texture, Tile._Position, Tile._Color);
 }