fglayer data/sprites/hud_base.png -1 1 0 3 3 1 1 1 1 1 0 0 0 0 0 0
fglayer data/sprites/hud.png -1 1 0 3 3 1 1 1 1 1 0 0 0 0 0 0
bglayer data/bgs/eagle/1_0-0.png 0.085 0 0 -54 1 1 1 1 0 0
bglayer data/bgs/eagle/1_1-0.png 0.17 0 453 -79 1 1 1 1 1 0
panel data/bgs/eagle/1_2-0.png
direction both
settime 0
notime 1
order a
type 1
levelscript data/levels/levelfight.c
light -256 -128
at 0
spawn empty 1
@script
void main(){
setglobalvar("Return", "Stage_Eagle");
}
@end_script
coords 0 400
at 0
spawn barricade 1
@script
void main(){
changeentityproperty(getlocalvar("self"), "position", 381, 244, 0);
}
@end_script
coords 381 244
at 0
spawn empty 1
@script
void main()
{
int P1 = getplayerproperty(0, "entity"); //Calling player 1 entity
int P2 = getplayerproperty(1, "entity"); //Calling player 2 entity
//changelevelproperty("scrollspeed", 0);
void self = getlocalvar("self"); //Get calling entity.
int width = openborvariant("levelwidth");
int half = width/2;
int hres = openborvariant("hresolution");
int xpos = openborvariant("xpos");
if(P1){
changeentityproperty(P1, "position", half-70, 200, 0); // Spawn player 1 in a specific position
changeentityproperty(P1, "direction", 1); //Face left, direction 0 for left and 1 for right
}
if(P2){
changeentityproperty(P2, "position", half+70, 200, 0); // Spawn player 2 in a specific position
changeentityproperty(P2, "direction", 0); //Face left
// changeentityproperty(P2, "health", 1);
}
changeopenborvariant("xpos", half+70); // Calling the x value point
}
@end_script
coords 0 200
at 0
spawn camera 1
@script
void main(){
void self = getlocalvar("self");
int width = openborvariant("levelwidth")/2;
changeentityproperty(self, "position",width, -5, 0);
}
@end_script
coords 0 200
at 0
spawn EagleE
@script
#import "data/scripts/aimove.c"
void main()
{
void self = getlocalvar("self");
int P1 = getplayerproperty(0, "entity"); // Get player 1
int P2 = getplayerproperty(1, "entity");
int map = getentityproperty(self, "map");
int x = getentityproperty(self, "x");
int y = getentityproperty(self, "y");
int PLAYS = openborvariant("count_players");
// setglobalvar("Fighter1", P1); // fill Fighter1 variable with player 1
// changeentityproperty(P1, "setlayer", 200);
// setglobalvar("Fighter2", self); // fill Fighter2 variable with this enemy
int width = openborvariant("levelwidth");
int half = width/2;
void e;
// changelevelproperty("scrollspeed", 0);
// setAIMove("nomove chase wander");
// changeentityproperty(self, "animation", openborconstant("ANI_FOLLOW20"));
// setidle(self, openborconstant("ANI_IDLE"),1);
if(P1){
setglobalvar("Fighter1", P1);
changeentityproperty(P1, "position", half-70, 200, 0);
changeentityproperty(P1, "direction", 1);
//changeentityproperty(P1, "health", 1);
setglobalvar("Fighter2", self);
changeentityproperty(self, "position", half+70, 200, 0);
changeentityproperty(self, "direction", 0);
changeentityproperty(self, "animation", openborconstant("ANI_FOLLOW2")); // Eagle (enemy type)
}
if(P2){
setglobalvar("Fighter2", P2);
changeentityproperty(P2, "position", half+70, 200, 0);
changeentityproperty(P2, "direction", 0);
setglobalvar("Fighter1", self);
changeentityproperty(self, "position", half-70, 200, 0);
changeentityproperty(self, "direction", 1);
changeentityproperty(self, "animation", openborconstant("ANI_FOLLOW2")); // Eagle (enemy type)
}
//changeopenborvariant("xpos", 300); // Calling the x value point
}
@end_script
health 100
alias Eagle
coords 0 200 0
at 0
spawn Rounds 1
@script
void main(){
void self = getlocalvar("self");
int zmin = openborvariant("player_min_z");
int vres = openborvariant("vresolution");
int ypos = openborvariant("ypos");
int y = ypos+vres/2;
int width = openborvariant("levelwidth")/2; //Levelwidth is full width of the level
changeentityproperty(self, "position", width, zmin, y-26);
}
@end_script
coords 0 400 10
at 0
spawn RefPlays 1
health 10
coords 160 200
at 0