public override void Update(GameTime gameTime) { base.Update(gameTime); UpdateState(); color = DataConversionLibrary.GetSquareColor(data.enemyType); if (IsTargeted()) { MapCreatorGUI.SetTargetedSquare(this); } }
public override void Initialize() { base.Initialize(); spriteSheet = new Sprite(Game.Content.Load <Texture2D>("MapCreator/MapCreatorSpriteSheet")); String currentName = "map1"; levelMechanics = new LevelMechanics(Game, spriteSheet, currentName); levelMechanics.Initialize(); gui = new MapCreatorGUI(Game, spriteSheet, levelMechanics); squarePalethera = new SquarePalethera(spriteSheet, new Vector2(380, 100)); String equipInfo = "No equipment set yet."; gui.SetEquipInfo(equipInfo); }