public PlayerSkin(Game game, Werewolf wolf) : base(game) { game.Components.Add(this); this.wolf = wolf; DrawOrder = 5; oldX = wolf.X; oldY = wolf.Y; // TODO: Construct any child components here }
/// <summary> /// Allows the game to perform any initialization it needs to before starting to run. /// This is where it can query for any required services and load any non-graphic /// related content. Calling base.Initialize will enumerate through any components /// and initialize them as well. /// </summary> protected override void Initialize() { // TODO: Add your initialization logic here map = new Map(this, MAP_SIZE, MAP_SIZE); wW = new Werewolf(this, map.getWidth(), map.getHeight()); for (int i = 0; i < 50; i++) { Ball ball = new Ball(this,i); } //sheep = new Sheep(this, 50, 50, map); cam = new Camera(this, wW); //temp = new Vision(this, 5, 5); spriteBatch = new SpriteBatch(GraphicsDevice); //hb = new HealthBar(this, 0, 0); base.Initialize(); }
public Camera(Game game, Werewolf wolf) : base(game) { game.Components.Add(this); this.wolf = wolf; }