更新项目说明以及清空多余素材

This commit is contained in:
2025-09-22 14:44:02 +08:00
parent 87cfe5aed6
commit 8723b1354d
27 changed files with 122 additions and 150 deletions

View File

@@ -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;
}
}

View File

@@ -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() {
}

View 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"));
}