// MTE MK1 (la Churrera) v5.0
// Copyleft 2010-2014, 2020 by the Mojon Twins

// Simple, lineal enemies

// _x = 0 + enit* 3; _y = 2; _t = _en_my; print_number2 ();

en_estado = en_an_state [enit];
if (power_type == 12) en_estado = 2;
mover_enemigo();

switch (rdt){

	case 1:	// Mummy
		
		elegir_camino();
		if (!aux1) comprobar_limites();
		comprobar_tile_pisado();
		animar_enemigo();
		en_an_base_frame [enit] = aux2;

	break;

	case 2: // Snake
		comprobar_limites();
		 
		if (running_snakes){
			mover_enemigo();
			comprobar_limites();
		}
		if (n_pant > 22) {
			if (maincounter == 170) {
				running_snakes = 1;
			}
			if (maincounter == 0) {
				running_snakes = 0;
			}
		}
		animar_enemigo();
		en_an_base_frame [enit] = aux2+9;
	break;
	
	case 3:	// Beetle
		
		elegir_camino();
		if (!aux1) comprobar_limites();
		comprobar_tile_pisado();
		animar_enemigo();
		en_an_base_frame [enit] = aux2+17;

	break;

	default: 
		en_an_next_frame [enit] = SPRFR_EMPTY;
	break;

}














