greg 4 lat temu
rodzic
commit
05c87c536a

+ 1 - 1
assets/res/mainPackage/scenes/Fighting.fire

@@ -499,7 +499,7 @@
     "_depth": -1,
     "_zoomRatio": 1,
     "_targetTexture": null,
-    "_fov": 90,
+    "_fov": 60,
     "_orthoSize": 10,
     "_nearClip": 1,
     "_farClip": 10000,

+ 12 - 0
assets/res/polygons/polygon002.meta

@@ -0,0 +1,12 @@
+{
+  "ver": "1.1.2",
+  "uuid": "ef4c0d50-50c3-4d71-b1db-8d7e9363caea",
+  "isBundle": false,
+  "bundleName": "",
+  "priority": 1,
+  "compressionType": {},
+  "optimizeHotUpdate": {},
+  "inlineSpriteFrames": {},
+  "isRemoteBundle": {},
+  "subMetas": {}
+}

+ 1 - 1
assets/resources/PreloadingScene.fire

@@ -171,7 +171,7 @@
       "array": [
         0,
         0,
-        357.6604157944995,
+        358.5345171667576,
         0,
         0,
         0,

+ 6 - 3
assets/script/game/modules/fightings/GameController.ts

@@ -97,8 +97,6 @@ export default class GameController extends cc.Component {
         LoadingView.single.Hide();
     }
 
-
-
     private InitGame():void{
         this.inCirclePolygon=new InCirclePolygon(this.polygon);
         this.StartGame();
@@ -145,12 +143,17 @@ export default class GameController extends cc.Component {
         pos.x=MathUtils.CircularMapping(pos.x,this.inCirclePolygon.maxX,this.inCirclePolygon.minX);
         this.player.logicPosition=pos;
 
+        //背景跟角色使用保持固定的距离
+        pos=this.background.node.position;
+        pos.z=0-(this.player.logicPosition.y+1000);
+        this.background.node.position=pos;
+
         //摄像机跟随
         if(!this.isDrop){
             pos=this.camera.position;
             pos.x=this.player.logicPosition.x;
             pos.y=this.inCirclePolygon.center.y;
-            pos.z=-this.player.logicPosition.z+30;
+            pos.z=-this.player.logicPosition.z+50;
             this.camera.position=pos;
             // cc.log("摄像机位置:",pos.x,pos.y,pos.z);
         }

+ 1 - 1
assets/script/game/modules/fightings/PlayerController.ts

@@ -72,7 +72,7 @@ export default class PlayerController extends cc.Component {
         this.sprintSpeed=new cc.Vec3();
         this.sprintSpeed.z=GameController.single.carConfig.sprintSpeed;
 
-        this.dropSpeed=new cc.Vec3(0,-1,0);
+        this.dropSpeed=new cc.Vec3(0,-60,0);
     }
 
     update (dt:number) {