Example #1
0
 public Lab1State()
 {
     prevState = Keyboard.GetState();
     layer = new TPLayer(this.layers);
     layer.AddEntity(s);
     s.Position = new Vector2(200, 200);
 }
Example #2
0
 /// <summary>
 /// Adds a visible entity to the states default render layer. Allows small classes and lazy programmeres
 /// to add visible entities to a state without having to create a layer and add it.
 /// </summary>
 /// <param name="entity"></param>
 public void AddEntity(TPVisibleEntity entity)
 {
     m_DefaultLayer.AddEntity(entity);
 }