public DrawableService(XSonicGame game) : base(game) { game.Services.AddService(typeof(DrawableService), this); game.Components.Add(this); this.game = game; this.DrawOrder = 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; }
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>(); }
public InputManager(XSonicGame game) : base(game) { game.Components.Add(this); this.game = game; }