Exemplo n.º 1
0
 public IEnumerable <Drawable> GetDrawables()
 {
     return(LevelDrawers[Game.CurrentLevelIndex]
            .GetDrawables()
            .Append(HeroDrawer.GetDrawable())
            .Append(CrosshairDrawer.GetDrawable()));
 }
Exemplo n.º 2
0
 public GameDrawer(Game game)
 {
     Game            = game;
     HeroDrawer      = new HeroDrawer(game.Player);
     CrosshairDrawer = new CrosshairDrawer(game.Crosshair);
     LevelDrawers    = game.Levels.Select(level => new LevelDrawer(level)).ToList();
 }