Exemplo n.º 1
0
 public DrawableService(XSonicGame game)
     : base(game)
 {
     game.Services.AddService(typeof(DrawableService), this);
     game.Components.Add(this);
     this.game = game;
     this.DrawOrder = 0;
 }
Exemplo n.º 2
0
 public LevelTransitions(String levelTitle, SpriteFont font, XSonicGame parent)
 {
     this.font = font;
     this.levelTitle = levelTitle;
     this.framesPerSec = 60;
     this.startFrame = 0;
     this.endFrame = 120;
     this.frameRow = 0;
     this.frameWidth = 0;
     this.frameHeight = 0;
     this.loop = false;
     this.milliElapsed = 0.0f;
     this.currentFrame = 0;
     textureSheet = parent.Content.Load<Texture2D>("LevelTransitions");
     Parent = parent;
 }
Exemplo n.º 3
0
 public AnimationManager(XSonicGame game, ContentManager Content)
     : base(game)
 {
     this.DrawOrder = 10;
     game.Services.AddService(typeof(AnimationManager), this);
     game.Components.Add(this);
     this.game = game;
     this.content = Content;
     currentAnimations = new List<Animation>();
 }
Exemplo n.º 4
0
 public InputManager(XSonicGame game)
     : base(game)
 {
     game.Components.Add(this);
     this.game = game;
 }