<commit_before>var desertEntrances = [];
var desertCollisions = [];
var desertEntranceChecking;
var desertMapWidth = 40;
var desertMap;
var Fountain;

function FirstDesertLoader(){
  var desertMap = desert.getObject("CollisionLayer").data;
  //Loading Collisions
  for (var i = 0; i < desertMap.length; i++) {
		if (desertMap[i] != 0) {
			desertCollisions.push(i);
		}
	}
  //Loading entrances
  var entrances = desert.getObject("EntranceLayer").data;
  for (var i = 0; i < entrances.length; i++) {
    if (entrances[i] != 0){
      desertEntrances.push(i);
    }
  }

  LoadNPC(45, 2, './assets/Desert/Sprites/DesertWoman', 4);
  desertContainer.addChild(npcArray[0]);
  NPCMovement();

  var FountainArray = [];
  FountainArray.push(PIXI.Texture.fromImage('./assets/Desert/Sprites/Fountain1.png'));
  FountainArray.push(PIXI.Texture.fromImage('./assets/Desert/Sprites/Fountain2.png'));
  FountainArray.push(PIXI.Texture.fromImage('./assets/Desert/Sprites/Fountain3.png'));
  Fountain = new PIXI.extras.MovieClip(FountainArray);
  Fountain.animationSpeed = 0.1;
  Fountain.x = 640;
  Fountain.y = 181;
  Fountain.play();
  desertContainer.addChild(Fountain);

  //call loadnpc with map.
  mapContainer.addChild(desertContainer);
  desertContainer.visible = false;
}

function DesertLoader(){
  desertContainer.visible = true;
  //////////////////////////////
  //Risk! collisionsIndex is a//
  //pointer to forestCollisions//
  //Never set collisionsIndex to []//
  ///////////////////////////////////
  collisionsIndex = desertCollisions;
  mapWidth = desertMapWidth;

  mapArray = desertMap;
  currentmap = desert;
  var characterLayer = desert.getObject("CharacterLayer");
  LoadCharacter();
  characterLayer.addChild(mainCharacter);
<commit_msg>added enemy sprites to desert<commit_after>var desertEntrances = [];
var desertCollisions = [];
var desertNPCArray = [];
var desertEntranceChecking;
var desertMapWidth = 40;
var desertMap;
var Fountain;

function FirstDesertLoader(){
  var desertMap = desert.getObject("CollisionLayer").data;
  //Loading Collisions
  for (var i = 0; i < desertMap.length; i++) {
		if (desertMap[i] != 0) {
			desertCollisions.push(i);
		}
	}
  //Loading entrances
  var entrances = desert.getObject("EntranceLayer").data;
  for (var i = 0; i < entrances.length; i++) {
    if (entrances[i] != 0){
      desertEntrances.push(i);
    }
  }

  

  var FountainArray = [];
  FountainArray.push(PIXI.Texture.fromImage('./assets/Desert/Sprites/Fountain1.png'));
  FountainArray.push(PIXI.Texture.fromImage('./assets/Desert/Sprites/Fountain2.png'));
  FountainArray.push(PIXI.Texture.fromImage('./assets/Desert/Sprites/Fountain3.png'));
  Fountain = new PIXI.extras.MovieClip(FountainArray);
  Fountain.animationSpeed = 0.1;
  Fountain.x = 640;
  Fountain.y = 181;
  Fountain.play();
  desertContainer.addChild(Fountain);

  //call loadnpc with map.
  mapContainer.addChild(desertContainer);
  desertContainer.visible = false;
}

function DesertLoader(){
  desertContainer.visible = true;
  //////////////////////////////
  //Risk! collisionsIndex is a//
  //pointer to forestCollisions//
  //Never set collisionsIndex to []//
  ///////////////////////////////////

  npcArray = desertNPCArray;
  collisionsIndex = desertCollisions;
  mapWidth = desertMapWidth;
  world = desert;

  LoadNPC(260, 4, './assets/Desert/Sprites/DesertWoman', 4);
  desertContainer.addChild(npcArray[0]);

  LoadNPC(340, 2, './assets/Desert/Sprites/DesertWoman', 4);
  desertContainer.addChild(npcArray[1]);

  LoadNPC(180, 0, './assets/Desert/Sprites/DesertKing', 4);
  desertContainer.addChild(npcArray[2]);

  LoadNPC(306, 1, './assets/Desert/Sprites/DesertMan', 4);
  desertContainer.addChild(npcArray[3]);

  LoadNPC(1037, 1, './assets/Dungeon/monsters/Raider/Roaming/raider', 4);
  desertContainer.addChild(npcArray[4]);

  LoadNPC(1113, 1, './assets/Dungeon/monsters/Raider/Roaming/raider', 4);
  desertContainer.addChild(npcArray[5]);

  LoadNPC(525, 3, './assets/Dungeon/monsters/Skeleton/Roaming/Skeleton', 4);
  desertContainer.addChild(npcArray[6]);

  LoadNPC(484, 2, './assets/Dungeon/monsters/Skeleton/Roaming/Skeleton', 4);
  desertContainer.addChild(npcArray[7]);

  LoadNPC(1082, 0, './assets/Dungeon/monsters/SandGolem/Roaming/SandGolem', 4);
  desertContainer.addChild(npcArray[8]);

  NPCMovement();

  mapArray = desertMap;
  currentmap = desert;
  var characterLayer = desert.getObject("CharacterLayer");
  LoadCharacter();
  characterLayer.addChild(mainCharacter);

{'fraction_non_alphanumeric': 0.17219132369299223, 'fraction_numerical': 0.02135706340378198, 'mean_word_length': 3.8816503800217155, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2817892', 'n_tokens_mistral': 1667, 'n_tokens_neox': 1528, 'n_words': 258}