Downloads containing StoneAbyss4.j2as

Downloads
Name Author Game Mode Rating
JJ2+ Only: Stone AbyssFeatured Download Bloody_Body Single player 9.6 Download file

File preview

jjPAL Evil;
bool Boss=false;
int b=0,i,e;
const string MUSICFILENAME = "colony.j2b";	

void onLevelLoad() 
{

//jjObjectPresets[OBJECT::RAVEN].behavior = RAVEN1;


	//jjObjectPresets[OBJECT::BIRDCAGE].direction = SPRITE::FLIPV;
	for (int weaponID = WEAPON::BLASTER; weaponID <= WEAPON::GUN9; ++weaponID) {
		jjWEAPON@ weaponProfile = jjWeapons[weaponID];
		weaponProfile.comesFromBirds = weaponProfile.comesFromBirdsPowerup = true; 
	}
	
	Evil.gradient(0, 0,0,             0, 0,0,         0, 10, 1.0);
	Evil.gradient(255, 255,255,             255, 255,255,         10, 6, 1.0);
	Evil.gradient(199, 255,0,             199, 255,0,         16, 1, 1.0);
	Evil.gradient(143, 219,0,             0, 11,0,         17, 7, 1.0);
	Evil.gradient(255, 0,0,             163, 0,0,         24, 4, 1.0);
	Evil.gradient(135, 0,0,             11, 0,0,         28, 4, 1.0);
	Evil.gradient(187, 227,255,             0, 139,255,         32, 4, 1.0);
	Evil.gradient(0, 107,203,             0, 7,11,         36, 4, 1.0);
	Evil.gradient(255, 255,0,             255, 199,0,         40, 2, 1.0);
	Evil.gradient(255, 147,0,             255, 95,0,         42, 2, 1.0);
	Evil.gradient(203, 55,0,             11, 0,0,         44, 4, 1.0);
	Evil.gradient(251, 139,183,       239, 0,99,         48, 4, 1.0);            
	Evil.gradient(191, 0,71,      55, 0,19,         52, 4, 1.0);
	Evil.gradient(220, 165,113,             154, 129,100,         56, 3, 1.0);
	Evil.gradient(219, 195,0,             11, 7,0,         59, 5, 1.0);
	Evil.gradient(255, 243,211,             255, 243,211,         64, 1, 1.0);
	Evil.gradient(219, 207,175,             11, 7,7,         65, 7, 1.0);
	Evil.gradient(211, 231,255,             211, 231,255,         72, 1, 1.0);
	Evil.gradient(171, 195,219,             107, 127,155,         73, 3, 1.0);
	Evil.gradient(75, 95,119,             7, 7,11,         76, 3, 1.0);
	Evil.gradient(0, 255,195,             0, 11,7,         80, 8, 1.0);
	Evil.gradient(231, 119,255,             11, 0,7,         88, 8, 1.0);
	/*
	Evil.gradient(204, 99,12,             179, 70,7,         96, 2, 1.0);
	Evil.gradient(153, 46,0,             0, 0,0,         98, 6, 1.0);
	Evil.gradient(200, 135,70,             0, 0,0,         112, 16, 1.0);
	Evil.gradient(120, 0,50,             0, 0,0,         128, 8, 1.0);
	Evil.gradient(90, 85,90,             0, 0,0,         136, 8, 1.0);
	Evil.gradient(255, 225,0,            180, 120,0,         168, 4, 1.0);
	Evil.gradient(165, 100,0,            0, 0,0,         172, 4, 1.0);
	Evil.gradient(100, 50,0,             40, 0,0,         176, 16, 1.0);
	Evil.gradient(40, 20,0,             0, 0,0,         192, 16, 1.0);
	Evil.gradient(0, 0,0,           105, 85,40,            208, 16, 1.0);
	Evil.gradient(112, 90,43,          200, 175,90,         224, 16, 1.0);
	*/
	
	Evil.gradient(255, 79,12,             209, 50,7,         96, 2, 1.0);
	Evil.gradient(173, 36,0,             0, 0,0,         98, 6, 1.0);
	Evil.gradient(150, 140,110,              0, 0,0,         112, 16, 1.0);
	Evil.gradient(180, 40,0,             0, 0,0,         128, 8, 1.0);
	Evil.gradient(200, 120,90,             0, 0,0,         136, 8, 1.0);
	//Evil.gradient(255, 225,180,            180, 120,90,         168, 4, 1.0);
	//Evil.gradient(165, 130,100,            0, 0,0,         172, 4, 1.0);
	Evil.gradient(85, 80,75,             20, 15,10,         176, 16, 1.0);
	Evil.gradient(45, 40,35,             0, 0,0,         192, 16, 1.0);
	Evil.gradient(0, 0,0,           90, 35,30,            208, 16, 1.0);
	Evil.gradient(100, 40,35,          255, 105,90,         224, 16, 1.0);
	
	//jjPalette.gradient(35, 135,135,             0, 0,0,         96, 8, 1.0);
	//jjPalette.gradient(255, 155,120,             0, 0,0,         112, 16, 1.0);
	//jjPalette.gradient(255, 0,100,             0, 0,0,         128, 8, 1.0);
	//jjPalette.gradient(110, 50,80,             0, 0,0,         136, 8, 1.0);
	//jjPalette.gradient(255, 225,0,            180, 120,0,         168, 4, 1.0);
	//jjPalette.gradient(165, 100,0,            0, 0,0,         172, 4, 1.0);
	//jjPalette.gradient(110, 50,0,             0, 0,0,         176, 32, 1.0);
	//jjPalette.gradient(212, 75,6,              232, 147,116,         208, 16, 1.0);
	//jjPalette.gradient(232, 150,123,            255, 255,255,         224, 16, 1.0);
	
	//jjPalette.apply();
	

	
}


void onLevelReload() {
jjMusicLoad(MUSICFILENAME);
b=0;
Boss=false;
jjPalette.reset();
jjSetFadeColors(255,180,0);
}

void onMain(){
//jjAlert("b "+ formatInt(b, "1"));
	jjSetFadeColors(255-2*b,180-1.8*b,0);
	
if (b<=99 && Boss && (jjGameTicks & 20) == 0) { 
b++;
		jjPalette.reset();
		jjPalette.copyFrom(
			1,		
			254,		
			1,		
			Evil,	
			b/100.0	
		);
		jjPalette.apply();
		}
		else if (b==99) {
		Evil.apply();
		}
		}

		
	jjOBJ@ enemy;
 
	
		
		
void onPlayerTimerEnd(jjPLAYER@ play) { 

		play.kill(); 
		}



void onFunction0(jjPLAYER@ play) {
Boss=true;
jjMusicLoad("Boss1.j2b");
	if (play.timerState == TIMER::STOPPED) {
		play.activateBoss();
		
		play.timerStart(70*60*2-jjDifficulty*20*70);
		play.showText("@Good if you have a bird @and some missiles", STRING::SMALL);
		//play.morphTo(CHAR::BIRD2, false);
		//char.morphTo(char.charNew == CHAR::BIRD);
		//play.fly = FLIGHT::AIRBOARD;
	}
}

//	void RAVEN1(jjOBJ@ enemy) {
//		enemy.behave(BEHAVIOR::RAVEN);
//				if (enemy.state == STATE::KILL && jjRandom() & 2 == 0)
//	{jjAddObject(OBJECT::SILVERCOIN, enemy.xPos, enemy.yPos, p.playerID, CREATOR::PLAYER);}
//		}