📄 choose.java
字号:
/**
* <p>Title: Transpanzer</p>
* <p>Description:
* You cannot remove this copyright and notice.
* You cannot use this file any part without the express permission of the author.
* All Rights Reserved</p>
* @author Jjyo
* @email jjyo@163.com
* @version 1.0.0
*/
public class Choose extends FSprite{
public byte chooseType;
public static final byte WHELL=1;
public static final byte POIT=2;
public Choose(byte chooseType)
{
isHidden=false;
this.chooseType=chooseType;
if(chooseType==WHELL){
this.frameCnt = 0;
}else{
this.frameCnt=10;
}
}
public void action()
{
switch(chooseType){
case WHELL:
if(++timeCnt%2==0)
{
frameCnt++;
if(frameCnt>=4)
frameCnt=0;
}
break;
case POIT:
if(++timeCnt%4==0)
{
frameCnt++;
if(frameCnt>10)
frameCnt=9;
}
break;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -