Exemplo n.º 1
0
 public void DrawPlayStatus(PlayStatus status)
 {
     spriteBatch.DrawString(SpriteFont, status.ToString (), new Vector2(20, 20), Color.Black);
 }
Exemplo n.º 2
0
 public GameState Clone(
     Player p1 = null,
     Player p2 = null,
     float health = float.NegativeInfinity,
     PlayStatus status = null,
     List<Platform> platforms = null,
     Goal goal = null
 )
 {
     return new GameState(
         p1: p1 == null ? this.p1 : p1,
         p2: p2 == null ? this.p2 : p2,
         health: health == float.NegativeInfinity ? this.Health : health,
         platforms: platforms == null ? this.platforms : platforms,
         goal: goal == null ? this.goal : goal
     );
 }