示例#1
0
 public Background(LostSoulGame game)
     : base(game)
 {
     bodyBehavior      = new PlaneBodyBehavior(this);
     renderBehavior    = new SpriteRenderBehavior(game, game.ContentLoader.Backgrounds[currentBackgroundIndex]);
     animationBehavior = new BackgroundAnimationBehavior(this);
 }
示例#2
0
 public HudElement(LostSoulGame game)
     : base(game)
 {
     bodyBehavior = new PlaneBodyBehavior(this);
     Visible      = true;
 }