Ejemplo n.º 1
0
void Drawing()
{
	int bbx = Squidgee.cx - Player.px;
	int bby = Squidgee.cy - Player.py;

	if (bbx - bby >= 0)
	{
		if (bbx == bby && bby <= 0 && bbx <= 0)
		{
			if (Squidgee.calive == 1)
			{
				Squidgee.CDraw();
			}

			else if (Squidgee.calive == 2)
			{
				Squidgee.CDie();
			}

			Player.Draw_Character();
		}
		else
		{
			Player.Draw_Character();

			if (Squidgee.calive == 1)
			{
				Squidgee.CDraw();
			}

			else if (Squidgee.calive == 2)
			{
				Squidgee.CDie();
			}
		}
	}
	else
	{

		if (Squidgee.calive == 1)
		{
			Squidgee.CDraw();
		}

		else if (Squidgee.calive == 2)
		{
			Squidgee.CDie();
		}

		Player.Draw_Character();
	}
}
Ejemplo n.º 2
0
void Monsters(Monster& Creep, Map& Habitat, int X)
{
	if (Creep.calive == 1)
	{
		Creep.CDamage();
	}

	if (Creep.calive == 2)
	{
		Creep.CDie();
	}

	if (Creep.calive == 0)
	{
		if (Creep.climit < Habitat.Monster_Stats[X - 1][1])
		{
			Creep.CSpawn();

			Creep.clocation = Habitat.number;
		}
	}

	if (Creep.calive == 0 && Creep.crespawn_count == 0)
	{
		Creep.crespawn_count = Habitat.Monster_Stats[X - 1][0];
	}

	if (Creep.calive == 0)
	{
		if (Creep.crespawn_count == 1)
		{
			Creep.climit--;

			Creep.crespawn_count = 0;
		}

		else
		{
			Creep.crespawn_count--;
		}
	}

	if (Creep.calive == 1)
	{
		Creep.CMove();
	}
}