|
@ -60,13 +60,13 @@ namespace CoreGame.Logic |
|
|
|
|
|
|
|
|
var size = LogicContext.WorldExtendSize; |
|
|
var size = LogicContext.WorldExtendSize; |
|
|
LEntityCreatorSvc.CreateBattleHero(battleModel); |
|
|
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(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(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, 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); |
|
|
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++)
|
|
|
// for (int i = 0; i < size.x; i++)
|
|
@ -90,8 +90,8 @@ namespace CoreGame.Logic |
|
|
// LSingleton<SceneManagement>.instance.InitScene(20, 50);
|
|
|
// LSingleton<SceneManagement>.instance.InitScene(20, 50);
|
|
|
var global = LogicContext.CreateEntity("Global"); |
|
|
var global = LogicContext.CreateEntity("Global"); |
|
|
LogicContext.SetGlobalEnt(global); |
|
|
LogicContext.SetGlobalEnt(global); |
|
|
LogicContext.SetWorldSize(new Fixed64Vector2(8, 13)); |
|
|
LogicContext.SetWorldSize(CoreGameConfig.ExtendSize); |
|
|
global.AddLevelWave(15, 13, 1, 0, Fixed64._2); |
|
|
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)); |
|
|
LogicContext.SetPhyWorld(new PhysicsWorld(LogicTime.FrameSpanMs, 0, PhysicsConfig.DEFAULT_DAMPING)); |
|
|
PhysicsWorld.DrawLine = (start, end, color, duration) => |
|
|
PhysicsWorld.DrawLine = (start, end, color, duration) => |
|
|