更新项目说明以及清空多余素材
This commit is contained in:
@@ -13,6 +13,7 @@ public class Alice extends Fighter {
|
||||
maxHealth = 90; // 生命值较低
|
||||
health = maxHealth;
|
||||
attackPower = 12; // 攻击力中等
|
||||
name = "alice";
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -53,4 +54,8 @@ public class Alice extends Fighter {
|
||||
protected boolean canAttack() {
|
||||
return super.canAttack() || currentAction == Action.JUMP || currentAction == Action.FALL;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return this.name;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,6 +21,7 @@ public abstract class Fighter implements Disposable {
|
||||
SPECIAL1, SPECIAL2,
|
||||
DEATH
|
||||
}
|
||||
protected String name;
|
||||
|
||||
// 动画帧间隔(秒)
|
||||
protected static final float DEFAULT_FRAME_DURATION = 0.1f;
|
||||
@@ -351,6 +352,8 @@ public abstract class Fighter implements Disposable {
|
||||
return attackPower;
|
||||
}
|
||||
|
||||
public String getName(){ return ""; }
|
||||
|
||||
@Override
|
||||
public void dispose() {
|
||||
}
|
||||
|
||||
10
src/main/java/uno/mloluyu/characters/FighterList.java
Normal file
10
src/main/java/uno/mloluyu/characters/FighterList.java
Normal file
@@ -0,0 +1,10 @@
|
||||
package uno.mloluyu.characters;
|
||||
|
||||
import com.badlogic.gdx.Gdx;
|
||||
import com.badlogic.gdx.graphics.g2d.TextureAtlas;
|
||||
|
||||
public class FighterList {
|
||||
|
||||
public static final TextureAtlas aliceAtlas = new TextureAtlas(Gdx.files.internal("src\\main\\resources\\character\\alice\\alice.atlas"));
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user