Public static void main (String [] args) {
Final int WINDOW_ WIDTH=800;
Final int WINDOW_ HEIGHT=800;
The final float PI=3.1415926 F;
Int x=0;
Int y=0;
Int w=0; Int h=50;
Int speed=10;
Boolean isLive=true;
Float firection=PI/4;
Int bulletSpeed=speed * 2;
System. The out. Println (" tank current location: x="+ x + y=" "+ y);
System. The out. Println (" tanks move a frame to the right ");
X=x + speed;//x, y is constant
System. The out. Println (" tank current location: x1="+" y1="+ x + y);
System. The out. Println (" tanks longitudinal motion down a frame ");
Y +=speed;
System. The out. Println (" tank current location: x2="+ x +" y2="+ y);
System. The out. Println (" tanks oblique movement a frame 45 degrees ");
System. The out. Println (" at the current location: tanks current location: x3="+" y3="+ x + y);
}
}
CodePudding user response:
You put the two behind the 800; For English input method; Have a tryCodePudding user response:
Life variable WINDOW_ WIDTH, WINDOW_ HEIGHT more Spaces,Errors are written