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

// hud.h - Updates hud

		// SCORE
		if (score != old_score) {
			print_score ();
			if (score > next_extra_life){
				p_life ++;
				next_extra_life += 5000;
			}
		}

	// #if !defined DEACTIVATE_OBJECTS && OBJECTS_X != 99
		if (p_objs != objs_old) { // GEMAS, TESOROS
			// draw_objs ();
			_x = OBJECTS_X; _y = OBJECTS_Y; _t = p_objs; print_number2 ();
			objs_old = p_objs;
		}
	// #endif
	
	if (power_time != power_time_old) { // TIEMPO DE LOS POWER UPS
		// draw_objs ();
		_x = 29; _y = 1; _t = power_time; print_number2 ();
		power_time_old = power_time;
	}
	

	// #if LIFE_X != 99
		if (p_life != life_old) {
			// _x = LIFE_X; _y = LIFE_Y; _t = p_life; print_number2 ();
			life_old = p_life;
			print_lives();
		}
	// #endif

	#if !defined DEACTIVATE_KEYS && KEYS_X != 99
		if (p_keys != keys_old) {
			_x = KEYS_X; _y = KEYS_Y; _t = p_keys; print_number2 ();
			keys_old = p_keys;
		}
	#endif

	#if defined(PLAYER_STEPS_ON_ENEMIES) || defined(PLAYER_CAN_FIRE)
		#if KILLED_X != 99
			if (p_killed != killed_old) {
				_x = KILLED_X; _y = KILLED_Y; _t = p_killed; print_number2 ();
				killed_old = p_killed; 
			}
		#endif
	#endif

	#if defined MAX_AMMO && AMMO_X != 99
		if (p_ammo != ammo_old) {
			_x = AMMO_X; _y = AMMO_Y; _t = p_ammo; print_number2 ();
			ammo_old = p_ammo;
		}
	#endif

	#if defined TIMER_ENABLE && TIMER_X != 99
		if (timer_t != timer_old) {
			print_time();
		}
	#endif
