public DrawableGameObject(ContentManager content,GameObject parent, string textureName)
     : base(content,parent)
 {
     Texture = Content.Load<Texture2D>(textureName);
 }
Example #2
0
 public Tileset(ContentManager content,GameObject parent,int id)
     : base(content,parent)
 {
     Data = new TilesetData(id);
     Texture = content.Load<Texture2D>(Data.FileName);
 }
 public PlatformerPlayer(ContentManager content,GameObject parent, string textureName)
     : base(content, parent, textureName)
 {
 }
Example #4
0
 public Map(ContentManager content,GameObject parent,int id)
     : base(content,parent)
 {
     Data = new MapData(id);
     Tileset = new Tileset(content,this, id);
 }
Example #5
0
 public void AddElement(GameObject obj)
 {
     Elements.Add(obj);
 }
Example #6
0
 public GameObject(ContentManager content, GameObject parent)
 {
     Content = content;
     Parent = parent;
 }