예제 #1
0
 public void AddObject(Point groundPoint, Texture2D texture, bool isVisible)
 {
     GameObject tempGameObject = new GameObject(groundPoint.ToVector2(), texture, isVisible, PhysicsType.StaticObject);
     LevelObjects.Add(tempGameObject);
 }
예제 #2
0
 public void AddTeleportObject(Point groundPoint, Point assetSize, Texture2D texture, bool isVisible, Point destination)
 {
     TeleportComponent teleComp = new TeleportComponent(texture.Width, texture.Height, destination);
     GameObject tempObject = new GameObject(groundPoint.ToVector2(), texture, isVisible, teleComp);
     tempObject.Size = assetSize;
     LevelObjects.Add(tempObject);
 }
예제 #3
0
 public void AddTrampolineObject(Point groundPoint, Point assetSize, Texture2D texture, bool isVisible, float jumpMagnifier)
 {
     TrampolineComponent trampComp = new TrampolineComponent(texture.Width, texture.Height, jumpMagnifier);
     GameObject tempObject = new GameObject(groundPoint.ToVector2(), texture, isVisible, trampComp);
     tempObject.Size = assetSize;
     LevelObjects.Add(tempObject);
 }