Downloads containing bosschallenge12.j2as

Downloads
Name Author Game Mode Rating
TSF with JJ2+ Only: Hard boss challenge... SmokeNC Single player 5.6 Download file

File preview

void onLevelLoad() {
	jjObjectPresets[OBJECT::NORMTURTLE].energy = 16;
	jjObjectPresets[OBJECT::NORMTURTLE].xSpeed = 7;
        jjObjectPresets[OBJECT::SKELETON].energy = 16;
	jjObjectPresets[OBJECT::SKELETON].xSpeed = 7;
        jjObjectPresets[OBJECT::DOGGYDOGG].energy = 16;
	jjObjectPresets[OBJECT::DOGGYDOGG].xSpeed = 7;
	jjObjectPresets[OBJECT::DEMON].xSpeed = 7;
        jjObjectPresets[OBJECT::ROBOT].energy = 10;
        jjObjectPresets[OBJECT::DEVILDEVAN].xSpeed = 15;
	jjWeapons[WEAPON::GUN9].maximum = 70;
	jjWeapons[WEAPON::GUN8].maximum = 85;

	jjObjectPresets[OBJECT::DEVILDEVAN].behavior = BEHAVIOR::dodo;       
	jjObjectPresets[OBJECT::BUBBA].behavior = boba; 
	jjObjectPresets[OBJECT::TUFBOSS].energy = 125; 

	jjObjectPresets[OBJECT::ROBOT].xSpeed = 6;
        jjObjectPresets[OBJECT::LABRAT].behavior = MyRat;

        jjObjectPresets[OBJECT::RAPIER].energy = 15;
        jjObjectPresets[OBJECT::RAPIER].behavior = yolo;

        jjObjectPresets[OBJECT::PACMANGHOST].behavior = BEHAVIOR::TUFBOSSBULLET;

        jjObjectPresets[OBJECT::PACMANGHOST].energy = 15;

        jjObjectPresets[OBJECT::FENCER].energy = 15;
        jjObjectPresets[OBJECT::CAT].xSpeed = 7;      
        jjObjectPresets[OBJECT::RAPIER].xSpeed = 7;  


}

void yolo(jjOBJ@ RAPIER) {
	RAPIER.behave(BEHAVIOR::BILSYBULLET, false);
	jjDrawSpriteFromCurFrame(RAPIER.xPos, RAPIER.yPos, RAPIER.curFrame, RAPIER.direction, SPRITE::TINTED, 103);


}

void swag(jjOBJ@ TUFBOSS) {
        TUFBOSS.behave(BEHAVIOR::TUFBOSS, false);
        jjDrawSpriteFromCurFrame(TUFBOSS.xPos, TUFBOSS.yPos, TUFBOSS.curFrame, TUFBOSS.direction, SPRITE::TRANSLUCENTSINGLEHUE,64);
}

void boba(jjOBJ@ BUBBA) {
        BUBBA.behave(BEHAVIOR::BUBBA, false);
        jjDrawSpriteFromCurFrame(BUBBA.xPos, BUBBA.yPos, BUBBA.curFrame, BUBBA.direction, SPRITE::TRANSLUCENTSINGLEHUE,64);
}
void MyRat(jjOBJ@ rat) {
	rat.behave(BEHAVIOR::LABRAT, false);
	jjDrawSpriteFromCurFrame(rat.xPos, rat.yPos, rat.curFrame, rat.direction, SPRITE::TINTED, 103);

rat.xSpeed =  jjCos(jjGameTicks*10) ;
     
        
}

void dodo(jjOBJ@ DEVILDEVAN) {
	DEVILDEVAN.behave(BEHAVIOR::DEVILDEVAN, false);
	jjDrawSpriteFromCurFrame(DEVILDEVAN.xPos, DEVILDEVAN.yPos, DEVILDEVAN.curFrame, DEVILDEVAN.direction, SPRITE::TRANSLUCENTSINGLEHUE,64);
}

void onFunction0(jjPLAYER@ player) {
       player.activateBoss();
      jjMusicLoad("sigmafinal.mp3");
}