//generates points for the tree void randomPointGen(int numberofpoints, List<TreePoint> treePoints) { for(int i = 0; i < numberofpoints; i++) { TreePoint tP = new TreePoint(); tP.treePoint = new Point(random.Next(treeLocation.Left + 5, treeLocation.Right - 5), random.Next(treeLocation.Top - 15,treeLocation.Bottom - 150)); treePoints.Add(tP); } }
public Game1() { graphics = new GraphicsDeviceManager(this); Content.RootDirectory = "Content"; for (int i = 0; i < numberOfLeaves; i++) { Leaf myLeaf = new Leaf(); leaves.Add(myLeaf); } for (int i = 0; i < numberOfLeaves; i++) { TreePoint tp = new TreePoint(); treePoints.Add(tp); } }