Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (obj.Name == "Chest")
- {
- //find locations
- Microsoft.Xna.Framework.Vector2 chestLocation = new Vector2();
- chestLocation.X = obj.BoundingBox.X;
- chestLocation.Y = obj.BoundingBox.Y;
- //debuging
- Console.WriteLine("obj location at " + obj.BoundingBox.X + ", " + obj.BoundingBox.Y);
- Console.WriteLine("obj location at " + obj.BoundingBox.X / 64 + ", " + obj.BoundingBox.Y / 64);
- savedChestLocations.Add(chestLocation);
- Console.WriteLine("----------------");
- Console.WriteLine("Finding chests and saving location at " + chestLocation.X + ", " + chestLocation.Y);
- Console.WriteLine("----------------");
- Console.WriteLine(savedChestLocations.Count + " total chests found");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement