};
};
+ if((object.number>=11)&&(object.number<=13)){
+ if((object.face>=5)&&(object.face<6)){
+ object.face++;
+ }else{
+ object.face=5;
+ };
+ };
+
};
return object;
object.speed++;
} else {
if((input==4)||(input==6)){
+ if(object.direction!=input){
+ object.speed = 0;
+ } else {
+ object.speed = 1;
+ };
object.direction = input;
- object.speed = 1;
+
};
if(input==2){
object.x++;
} else if(object.face==4){
mvprintw(object.x,offset,"%s",object.line1);
mvprintw(object.x-1,offset,"%s",object.line0);
+ } else if(object.face==5){
+ mvprintw(object.x,offset,"%s",object.line1);
+ mvprintw(object.x-1,offset,"%s",object.line0);
+ } else if(object.face==6){
+ mvprintw(object.x,offset,"%s",object.line3);
+ mvprintw(object.x-1,offset,"%s",object.line2);
};
};
gatebeam1.x = 16;
gatebeam1.y = 40;
gatebeam1.direction = 5;
- gatebeam1.face = 4;
+ gatebeam1.face = 5;
gatebeam1.speed = 0;
gatebeam1.vspeed = 0;
gatebeam1.vtime = 0;
strcpy (gatebeam1.line0, " ] ");
strcpy (gatebeam1.line1, " [ ");
+ strcpy (gatebeam1.line2, " [ ");
+ strcpy (gatebeam1.line3, " ] ");
strcpy (gatebeam1.radar, "|");
game_object gatebeam2;
- gatebeam2.number = 11;
+ gatebeam2.number = 12;
gatebeam2.active = 1;
gatebeam2.x = 14;
gatebeam2.y = 40;
gatebeam2.direction = 5;
- gatebeam2.face = 4;
+ gatebeam2.face = 5;
gatebeam2.speed = 0;
gatebeam2.vspeed = 0;
gatebeam2.vtime = 0;
strcpy (gatebeam2.line0, " ] ");
strcpy (gatebeam2.line1, " [ ");
+ strcpy (gatebeam2.line2, " [ ");
+ strcpy (gatebeam2.line3, " ] ");
strcpy (gatebeam2.radar, "|");
game_object gatebeam3;
- gatebeam3.number = 11;
+ gatebeam3.number = 13;
gatebeam3.active = 1;
gatebeam3.x = 12;
gatebeam3.y = 40;
gatebeam3.direction = 5;
- gatebeam3.face = 4;
+ gatebeam3.face = 5;
gatebeam3.speed = 0;
gatebeam3.vspeed = 0;
gatebeam3.vtime = 0;
strcpy (gatebeam3.line0, " ] ");
strcpy (gatebeam3.line1, " [ ");
+ strcpy (gatebeam3.line2, " [ ");
+ strcpy (gatebeam3.line3, " ] ");
strcpy (gatebeam3.radar, "|");
game_object pod2;
pod7 = process_motion(pod7, player);
pod8 = process_motion(pod8, player);
pod9 = process_motion(pod9, player);
+
+ gatebeam1 = process_motion(gatebeam1, player);
+ gatebeam2 = process_motion(gatebeam2, player);
+ gatebeam3 = process_motion(gatebeam3, player);
// Draw player object 1