更新角色和网络组件的二进制类文件
更新了 Alice.class,以反映最近角色行为的变化。 修改了 AliceAnimationTest.class,以改进动画测试。 修订了 Fighter$Action.class,以增强 Fighter 角色的动作处理。 更新了 Fighter.class,实现了新功能并进行了优化。 更改了 CreateServer$1.class,以改进服务器创建逻辑。 更新了 CreateServer.class,以提升网络处理能力和性能。
This commit is contained in:
@@ -14,8 +14,7 @@ public class Alice extends Fighter {
|
||||
speed = 350f; // 速度更快
|
||||
maxHealth = 90; // 生命值较低
|
||||
health = maxHealth;
|
||||
attackPower = 12; // 攻击力中等\
|
||||
|
||||
attackPower = 12; // 攻击力中等
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -2,16 +2,12 @@ package uno.mloluyu.characters;
|
||||
|
||||
import com.badlogic.gdx.ApplicationAdapter;
|
||||
import com.badlogic.gdx.Gdx;
|
||||
import com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application;
|
||||
import com.badlogic.gdx.backends.lwjgl3.Lwjgl3ApplicationConfiguration;
|
||||
import com.badlogic.gdx.graphics.GL20;
|
||||
import com.badlogic.gdx.graphics.OrthographicCamera;
|
||||
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
|
||||
import com.badlogic.gdx.utils.viewport.FitViewport;
|
||||
import com.badlogic.gdx.utils.viewport.Viewport;
|
||||
|
||||
import uno.mloluyu.characters.Alice;
|
||||
import uno.mloluyu.characters.Fighter;
|
||||
|
||||
public class AliceAnimationTest extends ApplicationAdapter {
|
||||
|
||||
|
||||
@@ -18,7 +18,8 @@ public abstract class Fighter implements Disposable {
|
||||
public enum Action {
|
||||
IDLE, WALK, JUMP, FALL,
|
||||
ATTACK1, ATTACK2, ATTACK3, ATTACK4,
|
||||
HIT, DEFEND,
|
||||
HIT,
|
||||
DEFEND,
|
||||
SPECIAL1, SPECIAL2,
|
||||
DEATH
|
||||
}
|
||||
|
||||
@@ -26,6 +26,7 @@ public class CreateServer {
|
||||
System.out.println("玩家连接"+clientSocket);
|
||||
//连接上后在这里编写进入游戏界面的代码
|
||||
} catch (Exception e) {
|
||||
|
||||
|
||||
} finally {
|
||||
if (clientSocket != null) {
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 2.3 MiB |
File diff suppressed because it is too large
Load Diff
Binary file not shown.
|
Before Width: | Height: | Size: 2.3 MiB |
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user