⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 base.java

📁 这是用JAVA编写的简单的坦克大战小游戏
💻 JAVA
字号:
import java.awt.*;

public class base{
	private int xPos;
	private int yPos;
	private Rectangle Base;
	private int ImageNo = 1;

	public base(){
		xPos = 260;
		yPos = 498;
		Base = new Rectangle(xPos - 11, yPos - 11, 23, 23);
	}

	public Rectangle getBaseborder(){
		return Base;
	}

	public void doom(){
		ImageNo = 2;
	}

	public int getImageNo(){
		return ImageNo;
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -