woso_javan 2 месяцев назад
Родитель
Сommit
c88af498ed

Разница между файлами не показана из-за своего большого размера
+ 0 - 302
assets/module_basic/config/ai_config.json


Разница между файлами не показана из-за своего большого размера
+ 736 - 875
assets/module_storm_sunder/Prefabs/Map1.prefab


+ 7 - 127
assets/module_storm_sunder/Prefabs/Props/cow.prefab

@@ -20,25 +20,22 @@
     "_children": [
       {
         "__id__": 2
-      },
-      {
-        "__id__": 20
       }
     ],
     "_active": true,
     "_components": [
       {
-        "__id__": 25
+        "__id__": 20
       },
       {
-        "__id__": 27
+        "__id__": 22
       },
       {
-        "__id__": 29
+        "__id__": 24
       }
     ],
     "_prefab": {
-      "__id__": 31
+      "__id__": 26
     },
     "_lpos": {
       "__type__": "cc.Vec3",
@@ -320,123 +317,6 @@
       "__expectedType__": "cc.AnimationClip"
     }
   },
-  {
-    "__type__": "cc.Node",
-    "_name": "Directional Light",
-    "_objFlags": 0,
-    "__editorExtras__": {},
-    "_parent": {
-      "__id__": 1
-    },
-    "_children": [],
-    "_active": true,
-    "_components": [
-      {
-        "__id__": 21
-      }
-    ],
-    "_prefab": {
-      "__id__": 24
-    },
-    "_lpos": {
-      "__type__": "cc.Vec3",
-      "x": 0,
-      "y": 0,
-      "z": 0
-    },
-    "_lrot": {
-      "__type__": "cc.Quat",
-      "x": 0,
-      "y": 0,
-      "z": 0,
-      "w": 1
-    },
-    "_lscale": {
-      "__type__": "cc.Vec3",
-      "x": 1,
-      "y": 1,
-      "z": 1
-    },
-    "_mobility": 0,
-    "_layer": 1073741824,
-    "_euler": {
-      "__type__": "cc.Vec3",
-      "x": 0,
-      "y": 0,
-      "z": 0
-    },
-    "_id": ""
-  },
-  {
-    "__type__": "cc.DirectionalLight",
-    "_name": "",
-    "_objFlags": 0,
-    "__editorExtras__": {},
-    "node": {
-      "__id__": 20
-    },
-    "_enabled": true,
-    "__prefab": {
-      "__id__": 22
-    },
-    "_color": {
-      "__type__": "cc.Color",
-      "r": 255,
-      "g": 255,
-      "b": 255,
-      "a": 255
-    },
-    "_useColorTemperature": false,
-    "_colorTemperature": 6550,
-    "_staticSettings": {
-      "__id__": 23
-    },
-    "_visibility": -325058561,
-    "_illuminanceHDR": 65000,
-    "_illuminance": 65000,
-    "_illuminanceLDR": 1.6927083333333335,
-    "_shadowEnabled": false,
-    "_shadowPcf": 2,
-    "_shadowBias": 0.00001,
-    "_shadowNormalBias": 0,
-    "_shadowSaturation": 1,
-    "_shadowDistance": 50,
-    "_shadowInvisibleOcclusionRange": 200,
-    "_csmLevel": 4,
-    "_csmLayerLambda": 0.75,
-    "_csmOptimizationMode": 2,
-    "_csmAdvancedOptions": false,
-    "_csmLayersTransition": false,
-    "_csmTransitionRange": 0.05,
-    "_shadowFixedArea": false,
-    "_shadowNear": 0.1,
-    "_shadowFar": 10,
-    "_shadowOrthoSize": 5,
-    "_id": ""
-  },
-  {
-    "__type__": "cc.CompPrefabInfo",
-    "fileId": "91jBZrf8NIlbP4OGo/msm2"
-  },
-  {
-    "__type__": "cc.StaticLightSettings",
-    "_baked": false,
-    "_editorOnly": false,
-    "_castShadow": true
-  },
-  {
-    "__type__": "cc.PrefabInfo",
-    "root": {
-      "__id__": 1
-    },
-    "asset": {
-      "__id__": 0
-    },
-    "fileId": "38EfK9/MNNup+U5xae/8gb",
-    "instance": null,
-    "targetOverrides": null,
-    "nestedPrefabInstanceRoots": null
-  },
   {
     "__type__": "cc.RigidBody",
     "_name": "",
@@ -447,7 +327,7 @@
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 26
+      "__id__": 21
     },
     "_group": 16,
     "_type": 4,
@@ -484,7 +364,7 @@
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 28
+      "__id__": 23
     },
     "_material": null,
     "_isTrigger": false,
@@ -516,7 +396,7 @@
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 30
+      "__id__": 25
     },
     "hp": 1,
     "currentExp": 4,

+ 7 - 127
assets/module_storm_sunder/Prefabs/Props/sheep.prefab

@@ -20,25 +20,22 @@
     "_children": [
       {
         "__id__": 2
-      },
-      {
-        "__id__": 16
       }
     ],
     "_active": true,
     "_components": [
       {
-        "__id__": 21
+        "__id__": 16
       },
       {
-        "__id__": 23
+        "__id__": 18
       },
       {
-        "__id__": 25
+        "__id__": 20
       }
     ],
     "_prefab": {
-      "__id__": 27
+      "__id__": 22
     },
     "_lpos": {
       "__type__": "cc.Vec3",
@@ -254,123 +251,6 @@
       "__expectedType__": "cc.Skeleton"
     }
   },
-  {
-    "__type__": "cc.Node",
-    "_name": "Directional Light",
-    "_objFlags": 0,
-    "__editorExtras__": {},
-    "_parent": {
-      "__id__": 1
-    },
-    "_children": [],
-    "_active": true,
-    "_components": [
-      {
-        "__id__": 17
-      }
-    ],
-    "_prefab": {
-      "__id__": 20
-    },
-    "_lpos": {
-      "__type__": "cc.Vec3",
-      "x": 0,
-      "y": 0,
-      "z": 0
-    },
-    "_lrot": {
-      "__type__": "cc.Quat",
-      "x": 0,
-      "y": 0,
-      "z": 0,
-      "w": 1
-    },
-    "_lscale": {
-      "__type__": "cc.Vec3",
-      "x": 1,
-      "y": 1,
-      "z": 1
-    },
-    "_mobility": 0,
-    "_layer": 1073741824,
-    "_euler": {
-      "__type__": "cc.Vec3",
-      "x": 0,
-      "y": 0,
-      "z": 0
-    },
-    "_id": ""
-  },
-  {
-    "__type__": "cc.DirectionalLight",
-    "_name": "",
-    "_objFlags": 0,
-    "__editorExtras__": {},
-    "node": {
-      "__id__": 16
-    },
-    "_enabled": true,
-    "__prefab": {
-      "__id__": 18
-    },
-    "_color": {
-      "__type__": "cc.Color",
-      "r": 255,
-      "g": 255,
-      "b": 255,
-      "a": 255
-    },
-    "_useColorTemperature": false,
-    "_colorTemperature": 6550,
-    "_staticSettings": {
-      "__id__": 19
-    },
-    "_visibility": -325058561,
-    "_illuminanceHDR": 65000,
-    "_illuminance": 65000,
-    "_illuminanceLDR": 1.6927083333333335,
-    "_shadowEnabled": false,
-    "_shadowPcf": 2,
-    "_shadowBias": 0.00001,
-    "_shadowNormalBias": 0,
-    "_shadowSaturation": 1,
-    "_shadowDistance": 50,
-    "_shadowInvisibleOcclusionRange": 200,
-    "_csmLevel": 4,
-    "_csmLayerLambda": 0.75,
-    "_csmOptimizationMode": 2,
-    "_csmAdvancedOptions": false,
-    "_csmLayersTransition": false,
-    "_csmTransitionRange": 0.05,
-    "_shadowFixedArea": false,
-    "_shadowNear": 0.1,
-    "_shadowFar": 10,
-    "_shadowOrthoSize": 5,
-    "_id": ""
-  },
-  {
-    "__type__": "cc.CompPrefabInfo",
-    "fileId": "bc3TftW0JOioRn0V1tvRsv"
-  },
-  {
-    "__type__": "cc.StaticLightSettings",
-    "_baked": false,
-    "_editorOnly": false,
-    "_castShadow": true
-  },
-  {
-    "__type__": "cc.PrefabInfo",
-    "root": {
-      "__id__": 1
-    },
-    "asset": {
-      "__id__": 0
-    },
-    "fileId": "5doSRZswRMC57a1ijlpMBe",
-    "instance": null,
-    "targetOverrides": null,
-    "nestedPrefabInstanceRoots": null
-  },
   {
     "__type__": "cc.RigidBody",
     "_name": "",
@@ -381,7 +261,7 @@
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 22
+      "__id__": 17
     },
     "_group": 16,
     "_type": 4,
@@ -418,7 +298,7 @@
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 24
+      "__id__": 19
     },
     "_material": null,
     "_isTrigger": false,
@@ -450,7 +330,7 @@
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 26
+      "__id__": 21
     },
     "hp": 1,
     "currentExp": 2,

+ 4 - 4
assets/module_storm_sunder/Script/Component/TornadoAIComponent.ts

@@ -59,9 +59,9 @@ export class TornadoAIComponent extends TornadoComponent {
         this.currentLv = 1;
         this.playerInfo.level = this.currentLv;
 
-        this.moveDuration = Math.floor(move_time[0] + Math.random() * (move_time[1] - move_time[0] + 1));
-        this.escapeDuration = Math.floor(escape_time[0] + Math.random() * (escape_time[1] - escape_time[0] + 1));
-        this.chaseDuration = Math.floor(pursuit_time[0] + Math.random() * (pursuit_time[1] - pursuit_time[0] + 1));
+        this.moveDuration = Math.floor(Math.random() * (move_time[1] - move_time[0] + 1));
+        this.escapeDuration = Math.floor(Math.random() * (escape_time[1] - escape_time[0] + 1));
+        this.chaseDuration = Math.floor(Math.random() * (pursuit_time[1] - pursuit_time[0] + 1));
         this.chaseAIProbability = pursuit_1;
         this.chasePlayerProbability = pursuit_2;
 
@@ -74,7 +74,7 @@ export class TornadoAIComponent extends TornadoComponent {
         this.attack = this.attributeBonusMgr.getStormSunderAttack(this.currentLv, true);
         this.speed = this.attributeBonusMgr.getStormSunderSpeed(this.currentLv, true);
         this.speed = Math.round((this.speed / 2) * 100) / 100;
-        // this.speed = this.speed * 0.8;//测试
+        this.speed = this.speed * 0.8;//测试
         console.log(`AI速度:${this.speed}`);
     }
 

+ 2 - 2
assets/module_storm_sunder/Script/Component/TornadoComponent.ts

@@ -86,7 +86,7 @@ export class TornadoComponent extends Component {
         this.attributeBonusMgr = AttributeBonusMgr.inst;
         const userModel = this.attributeBonusMgr.userModel;
 
-        this.currentLv = 2;
+        this.currentLv = 1;
         this.currentExp = 0;
         this.nextExp = this.attributeBonusMgr.getExpNeed(this.currentLv + 1);
         this.attack = this.attributeBonusMgr.getStormSunderAttack(this.currentLv);
@@ -94,7 +94,7 @@ export class TornadoComponent extends Component {
         this.nickName = userModel.nickName;
         this.height = userModel.game_tornado_base_height;
         this.speed = Math.round((this.speed / 2) * 100) / 100;
-        // this.speed = this.speed * 1.5;//测试
+        this.speed = this.speed * 1.5;//测试
 
         console.log(`玩家的速度:${this.speed}`);
         this.playerInfo = {

+ 3 - 3
assets/module_storm_sunder/Script/Manager/PlayerMgr.ts

@@ -27,8 +27,8 @@ export class PlayerMgr {
 
     public tornadoNode: Node = null;//玩家节点
     public aiPlayersConfig: Map<number, any> = new Map();//AI玩家配置
-    public createAIPlayerCount: number = 10;//创建AI玩家数量
-    public aiConfigCount: number = 10;//AI配置数量
+    public createAIPlayerCount: number = 1;//创建AI玩家数量
+    public aiConfigCount: number = 15;//AI配置数量
 
     private aiIndex: number = 0;//AI索引
     private pickAiMap: Map<number, Tableai_config> = new Map();//权重随机的AI
@@ -40,7 +40,7 @@ export class PlayerMgr {
             this.createAIPlayerCount = mapConfig.count;
             this.createAIPlayerCount = 10;//测试
             const aiPoints = StormSunderGlobalInstance.instance.aiPoints;
-            for (let i = 0; i < this.createAIPlayerCount; i++) {
+            for (let i = 0; i < this.createAIPlayerCount - 1; i++) {
                 const infoPrefab = await resLoader.loadAsync(resLoader.gameBundleName, res[0], Prefab);
                 let infoNode = instantiate(infoPrefab);
                 infoPrefab.name = 'AIPlayer' + i;

Разница между файлами не показана из-за своего большого размера
+ 337 - 117
assets/module_storm_sunder/rooster_stormsunder.scene


+ 1 - 1
assets/start/Start.ts

@@ -75,7 +75,7 @@ export class Start extends Component {
             EPhysics2DDrawFlags.Joint |
             EPhysics2DDrawFlags.Shape;
 
-        PhysicsSystem2D.instance.debugDrawFlags = 0; // 启用调试绘制
+        PhysicsSystem2D.instance.debugDrawFlags = 1; // 启用调试绘制
 
         tgxModuleContext.setDefaultModule(ModuleDef.BASIC);
 

Некоторые файлы не были показаны из-за большого количества измененных файлов