Browse Source

cansu

master
jiannan.guo@yingxiong.com 1 month ago
parent
commit
dd5de3e668
  1. 12
      client/client/Assets/Scripts/CoreGame/AFramSync/Logic/BattleLogicWorld.cs
  2. 4
      client/client/Assets/Scripts/CoreGame/AFramSync/Shared/Bridge/Context/BattleModel.cs
  3. 3
      client/client/Assets/Scripts/CoreGame/AFramSync/Shared/CoreGameConfig.cs
  4. 7
      client/client/Assets/Scripts/UI/Const/Context.cs

12
client/client/Assets/Scripts/CoreGame/AFramSync/Logic/BattleLogicWorld.cs

@ -60,13 +60,13 @@ namespace CoreGame.Logic
var size = LogicContext.WorldExtendSize;
LEntityCreatorSvc.CreateBattleHero(battleModel);
LEntityCreatorSvc.CreateWallEntity(new Fixed64Vector2(-size.x - Fixed64._0_50,0) , new Fixed64Vector2(1, size.y), 0);
LEntityCreatorSvc.CreateWallEntity(new Fixed64Vector2(-size.x - Fixed64._0_50,0) , new Fixed64Vector2(1 - Fixed64._0_10, size.y), 0);
LEntityCreatorSvc.CreateWallEntity(new Fixed64Vector2(-size.x - Fixed64._0_50,0) , new Fixed64Vector2(Fixed64._0_75,size.y), 0);
LEntityCreatorSvc.CreateWallEntity(new Fixed64Vector2(size.x + Fixed64._0_50, 0), new Fixed64Vector2(1, size.y), 1);
LEntityCreatorSvc.CreateWallEntity(new Fixed64Vector2(size.x + Fixed64._0_50, 0), new Fixed64Vector2(1- Fixed64._0_10, size.y), 1);
LEntityCreatorSvc.CreateWallEntity(new Fixed64Vector2(size.x + Fixed64._0_50, 0), new Fixed64Vector2(Fixed64._0_75, size.y), 1);
LEntityCreatorSvc.CreateWallEntity(new Fixed64Vector2(0, size.y + Fixed64._0_50), new Fixed64Vector2(size.x, 1), 2);
LEntityCreatorSvc.CreateWallEntity(new Fixed64Vector2(0, size.y + Fixed64._0_50), new Fixed64Vector2(size.x, 1- Fixed64._0_10), 2);
LEntityCreatorSvc.CreateWallEntity(new Fixed64Vector2(0, size.y + Fixed64._0_50), new Fixed64Vector2(size.x, Fixed64._0_75), 2);
LEntityCreatorSvc.CreateWallEntity(new Fixed64Vector2(0, -size.y - Fixed64._0_50), new Fixed64Vector2(size.x, 1), 3);
LEntityCreatorSvc.CreateWallEntity(new Fixed64Vector2(0, -size.y - Fixed64._0_50), new Fixed64Vector2(size.x, 1- Fixed64._0_10), 3);
LEntityCreatorSvc.CreateWallEntity(new Fixed64Vector2(0, -size.y - Fixed64._0_50), new Fixed64Vector2(size.x, Fixed64._0_75), 3);
// for (int i = 0; i < size.x; i++)
@ -90,8 +90,8 @@ namespace CoreGame.Logic
// LSingleton<SceneManagement>.instance.InitScene(20, 50);
var global = LogicContext.CreateEntity("Global");
LogicContext.SetGlobalEnt(global);
LogicContext.SetWorldSize(new Fixed64Vector2(8, 13));
global.AddLevelWave(15, 13, 1, 0, Fixed64._2);
LogicContext.SetWorldSize(CoreGameConfig.ExtendSize);
global.AddLevelWave((CoreGameConfig.ExtendSize.x * 2 - 1 + Fixed64._0_01).AsInt, CoreGameConfig.ExtendSize.y.AsInt, 1, 0, CoreGameConfig.TurnTime);
LogicContext.SetPhyWorld(new PhysicsWorld(LogicTime.FrameSpanMs, 0, PhysicsConfig.DEFAULT_DAMPING));
PhysicsWorld.DrawLine = (start, end, color, duration) =>

4
client/client/Assets/Scripts/CoreGame/AFramSync/Shared/Bridge/Context/BattleModel.cs

@ -63,8 +63,8 @@ namespace CoreGame.Shared.Bridge
public static int n = 6;
public static readonly Fixed64Vector2[,] s_Pos = new Fixed64Vector2[2, 2]
{
{new(-5, -n), new (5, -n)},
{new(5, n), new (-5, n)}
{new(-3, -n), new (3, -n)},
{new(3, n), new (-3, n)}
};
public static Fixed64Vector2 GetPos(this HeroModel heroModel)
{

3
client/client/Assets/Scripts/CoreGame/AFramSync/Shared/CoreGameConfig.cs

@ -65,5 +65,8 @@ namespace CoreGame.Shared
};
public static float AttachOutTime = 5f;
public static Fixed64Vector2 ExtendSize = new Fixed64Vector2(Fixed64._0_50 + 4, 9);
public static Fixed64 TurnTime = Fixed64._2;
}
}

7
client/client/Assets/Scripts/UI/Const/Context.cs

@ -2,11 +2,10 @@
{
public static class Context
{
public static string[] versionIPs = new string[] { "10.0.22.46" };
public static string[] versionIPs = new string[] { "123.57.11.107" };
public static int versionPort = 9602;
public static string gameIP = "10.0.22.46";
// public static int gamePort = 49720;
public static int gamePort = 9603;
public static string gameIP = "123.57.11.107";
public static int gamePort = 9720;
public static string maintenanceIP = "10.0.22.46";
public static string buildMode = "apk";
public static string lang = "en";

Loading…
Cancel
Save