Example #1
0
Boss1Weapon::Boss1Weapon()
{
	IOsmooth smooth;
	speed = 0.5;
	active = true;

	weaponTex.loadFromFile("graphics//enemies//pew.png");
	weaponTex.setSmooth(smooth.ReadSmoothSettings());
	sprite.setTexture(weaponTex);
	sprite.setRotation(180);
	sprite.setOrigin(23.5, 12);
}
Example #2
0
SpaceMonkey::SpaceMonkey()
{
	IOdiff diff;
	IOsmooth smooth;

	speed = 0.3;
	health = 10 * diff.ReadDiffSettings();
	active = true;
	moveLeft = true;

	enemyTex.loadFromFile("graphics//enemies//spacemonkey.png");
	enemyTex.setSmooth(smooth.ReadSmoothSettings());
	sprite.setTexture(enemyTex);
	sprite.setOrigin(36, 20);
	sprite.setPosition(364, 25);

}
Example #3
0
EnemyFormation::EnemyFormation(){

	//Get Settings
	IOdiff diff;
	IOsmooth smooth;

	//init stuff
	m_speed = 0.6f;
	m_damage = 15;
	m_active = true;
	m_die = false;
	m_hasTargetTexture = false;
	m_health = 3 * diff.ReadDiffSettings();
	m_maxHealth = m_health;

	m_texture.loadFromFile("graphics/enemies/enemyFormation.png");
	m_texture.setSmooth(smooth.ReadSmoothSettings());
	sprite.setTexture(m_texture);

	//initialize Healthbar
	initHealthBar();
}
Example #4
0
Boss3firstWeapon::Boss3firstWeapon(){
	//read settings
	IOdiff diff;
	m_diff = diff.ReadDiffSettings();
	IOsmooth smooth;

	//init stuff
	m_speed = 0.5f;
	m_active = true;
	m_hasTargetTexture = false;
	m_health = 1;
	m_maxHealth = m_health;


	m_weaponTex.loadFromFile("graphics/enemies/cowWeapon.png");
	m_weaponTex.setSmooth(smooth.ReadSmoothSettings());
	sprite.setTexture(m_weaponTex);
	sprite.setRotation(180);
	sprite.setOrigin(m_weaponTex.getSize().x / 2.0f, m_weaponTex.getSize().y / 2.0f);

	//initialize Healthbar here to make sure that the position is known
	initHealthBar();
}