Citrus 9 місяців тому
батько
коміт
c0952436cf
100 змінених файлів з 1779 додано та 1184 видалено
  1. BIN
      Arts/new/七日签到/tinified(1).zip
  2. BIN
      Arts/new/七日签到/tinified(2).zip
  3. BIN
      Arts/new/七日签到/tinified.zip
  4. BIN
      Arts/new/七日签到/显示效果.jpg
  5. BIN
      Arts/new/主界面/tinified(1).zip
  6. BIN
      Arts/new/主界面/tinified.zip
  7. BIN
      Arts/new/主界面/呈现效果.jpg
  8. BIN
      Arts/new/游玩界面/bottom.png
  9. BIN
      Arts/new/游玩界面/cancellationrange.png
  10. BIN
      Arts/new/游玩界面/cancellationtelecontrol.png
  11. BIN
      Arts/new/游玩界面/range.png
  12. BIN
      Arts/new/游玩界面/telecontrol.png
  13. BIN
      Arts/new/游玩界面/tinified.zip
  14. BIN
      Arts/new/游玩界面/显示效果.jpg
  15. BIN
      Arts/new/设置弹窗/tinified.zip
  16. BIN
      Arts/new/设置弹窗/显示效果.jpg
  17. 1 1
      assets/Editer/bgscroll.ts
  18. 164 21
      assets/Editer/edLayout.ts
  19. 1043 45
      assets/Scene/Editer.fire
  20. 186 992
      assets/Scene/Game.fire
  21. 5 5
      assets/Script/Canmera/CanmeraScrpts.ts
  22. 0 0
      assets/Script/Canmera/CanmeraScrpts.ts.meta
  23. 21 6
      assets/Script/Character/Character.ts
  24. 6 9
      assets/Script/Character/GameTips.ts
  25. 2 1
      assets/Script/Character/Parabola.ts
  26. 57 7
      assets/Script/Character/YaoGan.ts
  27. 20 7
      assets/Script/Global.ts
  28. 2 0
      assets/Script/LocalData.ts
  29. 68 19
      assets/Script/Map/MyMap.ts
  30. BIN
      assets/Texture/UI/bottom.png
  31. 38 0
      assets/Texture/UI/bottom.png.meta
  32. 13 0
      assets/Texture/YaoGan.meta
  33. BIN
      assets/Texture/YaoGan/range.png
  34. 38 0
      assets/Texture/YaoGan/range.png.meta
  35. BIN
      assets/Texture/YaoGan/telecontrol.png
  36. 38 0
      assets/Texture/YaoGan/telecontrol.png.meta
  37. 2 2
      assets/Texture/footstep/footstep1.png.meta
  38. 1 1
      assets/resources/footstep/footstep10.prefab
  39. 1 1
      assets/resources/footstep/footstep11.prefab
  40. 1 1
      assets/resources/footstep/footstep12.prefab
  41. 1 1
      assets/resources/footstep/footstep13.prefab
  42. 1 1
      assets/resources/footstep/footstep14.prefab
  43. 1 1
      assets/resources/footstep/footstep15.prefab
  44. 1 1
      assets/resources/footstep/footstep16.prefab
  45. 1 1
      assets/resources/footstep/footstep17.prefab
  46. 1 1
      assets/resources/footstep/footstep18.prefab
  47. 1 1
      assets/resources/footstep/footstep19.prefab
  48. 1 1
      assets/resources/footstep/footstep2.prefab
  49. 1 1
      assets/resources/footstep/footstep20.prefab
  50. 1 1
      assets/resources/footstep/footstep21.prefab
  51. 1 1
      assets/resources/footstep/footstep22.prefab
  52. 1 1
      assets/resources/footstep/footstep23.prefab
  53. 1 1
      assets/resources/footstep/footstep24.prefab
  54. 1 1
      assets/resources/footstep/footstep25.prefab
  55. 1 1
      assets/resources/footstep/footstep26.prefab
  56. 1 1
      assets/resources/footstep/footstep27.prefab
  57. 1 1
      assets/resources/footstep/footstep28.prefab
  58. 1 1
      assets/resources/footstep/footstep29.prefab
  59. 1 1
      assets/resources/footstep/footstep3.prefab
  60. 1 1
      assets/resources/footstep/footstep30.prefab
  61. 2 2
      assets/resources/footstep/footstep31.prefab
  62. 1 1
      assets/resources/footstep/footstep32.prefab
  63. 1 1
      assets/resources/footstep/footstep33.prefab
  64. 1 1
      assets/resources/footstep/footstep34.prefab
  65. 1 1
      assets/resources/footstep/footstep35.prefab
  66. 1 1
      assets/resources/footstep/footstep36.prefab
  67. 1 1
      assets/resources/footstep/footstep37.prefab
  68. 1 1
      assets/resources/footstep/footstep38.prefab
  69. 1 1
      assets/resources/footstep/footstep39.prefab
  70. 1 1
      assets/resources/footstep/footstep4.prefab
  71. 1 1
      assets/resources/footstep/footstep40.prefab
  72. 1 1
      assets/resources/footstep/footstep41.prefab
  73. 1 1
      assets/resources/footstep/footstep42.prefab
  74. 1 1
      assets/resources/footstep/footstep43.prefab
  75. 1 1
      assets/resources/footstep/footstep44.prefab
  76. 1 1
      assets/resources/footstep/footstep45.prefab
  77. 1 1
      assets/resources/footstep/footstep46.prefab
  78. 1 1
      assets/resources/footstep/footstep47.prefab
  79. 1 1
      assets/resources/footstep/footstep48.prefab
  80. 1 1
      assets/resources/footstep/footstep49.prefab
  81. 1 1
      assets/resources/footstep/footstep5.prefab
  82. 1 1
      assets/resources/footstep/footstep50.prefab
  83. 1 1
      assets/resources/footstep/footstep51.prefab
  84. 1 1
      assets/resources/footstep/footstep52.prefab
  85. 1 1
      assets/resources/footstep/footstep53.prefab
  86. 1 1
      assets/resources/footstep/footstep54.prefab
  87. 1 1
      assets/resources/footstep/footstep55.prefab
  88. 1 1
      assets/resources/footstep/footstep56.prefab
  89. 1 1
      assets/resources/footstep/footstep57.prefab
  90. 1 1
      assets/resources/footstep/footstep58.prefab
  91. 1 1
      assets/resources/footstep/footstep59.prefab
  92. 1 1
      assets/resources/footstep/footstep6.prefab
  93. 1 1
      assets/resources/footstep/footstep60.prefab
  94. 1 1
      assets/resources/footstep/footstep7.prefab
  95. 1 1
      assets/resources/footstep/footstep8.prefab
  96. 1 1
      assets/resources/footstep/footstep9.prefab
  97. 8 8
      assets/resources/json/map1.json
  98. 0 0
      assets/resources/json/map3.json
  99. 6 0
      assets/resources/json/map3.json.meta
  100. 1 1
      settings/builder.json

BIN
Arts/new/七日签到/tinified(1).zip


BIN
Arts/new/七日签到/tinified(2).zip


BIN
Arts/new/七日签到/tinified.zip


BIN
Arts/new/七日签到/显示效果.jpg


BIN
Arts/new/主界面/tinified(1).zip


BIN
Arts/new/主界面/tinified.zip


BIN
Arts/new/主界面/呈现效果.jpg


BIN
Arts/new/游玩界面/bottom.png


BIN
Arts/new/游玩界面/cancellationrange.png


BIN
Arts/new/游玩界面/cancellationtelecontrol.png


BIN
Arts/new/游玩界面/range.png


BIN
Arts/new/游玩界面/telecontrol.png


BIN
Arts/new/游玩界面/tinified.zip


BIN
Arts/new/游玩界面/显示效果.jpg


BIN
Arts/new/设置弹窗/tinified.zip


BIN
Arts/new/设置弹窗/显示效果.jpg


+ 1 - 1
assets/Editer/bgscroll.ts

@@ -67,7 +67,7 @@ export default class NewClass extends cc.Component {
 
         let footstepcontent = footstep.getChildByName("view").getChildByName("content")
 
-        for (let index = 1; index < 444; index++) {
+        for (let index = 0; index < 444; index++) {
             const url = "footstep/footstep" + index
             cc.resources.load(url, cc.Prefab, (err, Prefab) => {
                 if (err) {

+ 164 - 21
assets/Editer/edLayout.ts

@@ -1,20 +1,46 @@
-// Learn TypeScript:
-//  - https://docs.cocos.com/creator/2.4/manual/en/scripting/typescript.html
-// Learn Attribute:
-//  - https://docs.cocos.com/creator/2.4/manual/en/scripting/reference/attributes.html
-// Learn life-cycle callbacks:
-//  - https://docs.cocos.com/creator/2.4/manual/en/scripting/life-cycle-callbacks.html
+// "map": [
+//     {
+//         "bg": "5",
+//         "fs": []
+//     },
+//     {
+//         "bg": "1",
+//         "fs": []
+//     },
+//     {
+//         "bg": "1",
+//         "fs": []
+//     },
+//     {
+//         "bg": "3",
+//         "fs": []
+//     }
+// ],
+// "mapX": 2,
+// "mapY": 2,
+// "BronID": 0,
+// "BronX": 55,
+// "BronY": 55
 
 const { ccclass, property } = cc._decorator;
+type ddddtype = {
+    map: maptype[]
+    mapX: number
+    mapY: number
+    BronID: number
+    BronX: number
+    BronY: number
+}
+type maptype = {
+    bg: number
+    fs: [{}]
+}
 
 @ccclass
 export default class edLayout extends cc.Component {
 
-    @property(cc.Label)
-    label: cc.Label = null;
-
-
-
+    @property(cc.EditBox)
+    daoruEditBox: cc.EditBox = null;
 
     Click: cc.Node = null;
 
@@ -47,6 +73,13 @@ export default class edLayout extends cc.Component {
 
     onLoad() {
 
+        // 监听键盘按下事件
+        cc.systemEvent.on(cc.SystemEvent.EventType.KEY_DOWN, this.onKeyDown, this);
+        // 监听键盘松开事件
+        cc.systemEvent.on(cc.SystemEvent.EventType.KEY_UP, this.onKeyUp, this);
+
+
+
         //绑定事件
         //因为摇杆很小,如果给摇杆绑定事件玩家将很难控制,摇杆的背景比较大,所以把事件都绑定在背景上是不错的选择
         this.node.on(cc.Node.EventType.TOUCH_START, this.starttt, this);//当手指在背景上移动时触发move事件
@@ -55,6 +88,46 @@ export default class edLayout extends cc.Component {
         this.node.on(cc.Node.EventType.TOUCH_CANCEL, this.finish, this);//当手指在目标节点区域外离开屏幕时触发finish事件
     }
 
+    onKeyDown(event) {
+        switch (event.keyCode) {
+            case cc.macro.KEY.a:
+                this.zuo()
+                this.zuo()
+                break;
+            case cc.macro.KEY.d:
+                this.you()
+                this.you()
+                break;
+            case cc.macro.KEY.w:
+                this.shang()
+                this.shang()
+                break;
+            case cc.macro.KEY.s:
+                this.xia()
+                this.xia()
+                break;
+            // 添加更多按键处理逻辑
+        }
+    }
+
+    onKeyUp(event) {
+        switch (event.keyCode) {
+            case cc.macro.KEY.a:
+                console.log('A 键被松开');
+                break;
+            case cc.macro.KEY.b:
+                console.log('B 键被松开');
+                break;
+            // 添加更多按键处理逻辑
+        }
+    }
+
+    onDestroy() {
+        // 在组件销毁时,取消键盘事件监听
+        cc.systemEvent.off(cc.SystemEvent.EventType.KEY_DOWN, this.onKeyDown, this);
+        cc.systemEvent.off(cc.SystemEvent.EventType.KEY_UP, this.onKeyUp, this);
+    }
+
     startpos: cc.Vec2
     starttt(event: cc.Event.EventTouch) {
         this.startpos = event.getLocation()
@@ -65,8 +138,11 @@ export default class edLayout extends cc.Component {
 
 
 
-        // this.node.x += (event.getLocationX() - this.startpos.x) * 0.1
-        // this.node.y += (event.getLocationY() - this.startpos.y) * 0.1
+        console.log(event.getLocationX(), event.getLocationY());
+
+
+        this.node.x += (event.getLocationX() - this.startpos.x) * 0.1
+        this.node.y += (event.getLocationY() - this.startpos.y) * 0.1
 
 
         this.node.x += event.getDeltaX()
@@ -112,7 +188,7 @@ export default class edLayout extends cc.Component {
 
         for (let index = 0; index < total; index++) {
             if (index == 0) {
-                background.on('touchstart', () => {
+                background.on('touchstart', (event) => {
                     console.log(index);
                     window['selectNode'] && (window['selectNode'].opacity = 255)
 
@@ -131,7 +207,7 @@ export default class edLayout extends cc.Component {
 
                 let Label = temp.getChildByName("Label")
                 Label.getComponent(cc.Label).string = index.toString()
-                temp.on('touchstart', () => {
+                temp.on('touchstart', (event) => {
                     console.log(index);
                     window['selectNode'] && (window['selectNode'].opacity = 255)
                     window['selectNode'] = temp
@@ -173,6 +249,10 @@ export default class edLayout extends cc.Component {
 
     /////
 
+
+
+
+
     shang() {
         this.node.y += 20
     }
@@ -192,23 +272,82 @@ export default class edLayout extends cc.Component {
         }
     }
 
-    out() {
 
+    daoru() {
 
+        this.heng = (window['dd'] as ddddtype).mapX
+        this.shu = (window['dd'] as ddddtype).mapY;
 
+        this.init()
 
-        // 将JavaScript对象转换为JSON字符串
+        let mmmp = (window['dd'] as ddddtype).map
 
-        let tempmap = this.node.children
+
+        mmmp.forEach(e => {
+            e.bg
+            e.fs
+        })
 
 
+        for (let i = 0; i < this.node.children.length; i++) {
+            const node = this.node.children[i];
+            const data = mmmp[i];
 
+            const url = "bg/bg" + data.bg
+            cc.resources.load(url, cc.SpriteFrame, (err, spriteframe) => {
+                if (err) {
+                    return
+                }
+
+                let sprite = node.getComponent(cc.Sprite);
+                sprite.spriteFrame = spriteframe;
+            });
+
+            for (let j = 0; j < data.fs.length; j++) {
+                const element = data.fs[j];
+
+                const url = "footstep/footstep" + element['sp']
+                cc.resources.load(url, cc.Prefab, (err, Prefab) => {
+                    if (err) {
+                        return
+                    }
+
+                    let a = cc.instantiate(Prefab);
+                    a.parent = node
+                    a.active = true
+
+                    a.setPosition(element['x'], element['y'])
+                    a.setRotation(element['ro'])
+                    a.setScale(element['sc'])
+
+                });
+
+            }
+
+        }
+
+ 
+
+
+
+    }
+
+
+    out() {
+
+        // 将JavaScript对象转换为JSON字符串
+
+        let tempmap = this.node.children
 
 
         let subMapData = {
             map: [],
             mapX: 0,
             mapY: 0,
+
+            BronID: 0,
+            BronX: 0,
+            BronY: 0,
         }
 
 
@@ -233,8 +372,8 @@ export default class edLayout extends cc.Component {
 
                         sp: prop.getComponent(cc.Sprite).spriteFrame.name.replace(/[^0-9]/ig, ""),
                         // sp: prop.getComponent(cc.Sprite).spriteFrame.name,
-                        ro:prop.rotation,
-                        sc:prop.scale,
+                        ro: prop.rotation,
+                        sc: prop.scale,
                         x: prop.position.x.toFixed(2),
                         y: prop.position.y.toFixed(2)
                     }
@@ -245,13 +384,17 @@ export default class edLayout extends cc.Component {
         subMapData.mapX = this.heng
         subMapData.mapY = this.shu
 
+        subMapData.BronID = 0
+        subMapData.BronX = 55
+        subMapData.BronY = 55
+
         console.log(subMapData);
         const jsonData = JSON.stringify(subMapData);
         console.log(jsonData);
 
         this.saveForBrowser(jsonData, 'map1')
 
- 
+
     }
 
     /**

Різницю між файлами не показано, бо вона завелика
+ 1043 - 45
assets/Scene/Editer.fire


Різницю між файлами не показано, бо вона завелика
+ 186 - 992
assets/Scene/Game.fire


+ 5 - 5
assets/Script/Canmera/Canmera.ts → assets/Script/Canmera/CanmeraScrpts.ts

@@ -4,24 +4,24 @@
 //  - https://docs.cocos.com/creator/2.4/manual/en/scripting/reference/attributes.html
 // Learn life-cycle callbacks:
 //  - https://docs.cocos.com/creator/2.4/manual/en/scripting/life-cycle-callbacks.html
- 
+
 
 const { ccclass, property } = cc._decorator;
 
 @ccclass
-export default class Canmera extends cc.Component {
+export default class CanmeraScrpts extends cc.Component {
 
 
     @property(cc.Node)
     Character: cc.Node = null;//人物节点
 
 
- 
+
 
     protected lateUpdate(dt: number): void {
-        this.node.setPosition(this.Character.position)
+        this.node.setPosition(this.Character.position.x, this.Character.position.y + 400)
     }
 
- 
+
 
 }

+ 0 - 0
assets/Script/Canmera/Canmera.ts.meta → assets/Script/Canmera/CanmeraScrpts.ts.meta


+ 21 - 6
assets/Script/Character/Character.ts

@@ -69,8 +69,8 @@ export default class Character extends MyComponent {
 
     onTouchMove(dir: cc.Vec3, power: number) {
 
-        this.CharacterRigidBody.linearVelocity = cc.v2(dir.x * 0.3 * this.JumpConstX, dir.y * 0.3 * this.JumpConstY)
-        return
+        // this.CharacterRigidBody.linearVelocity = cc.v2(dir.x * 0.3 * this.JumpConstX, dir.y * 0.3 * this.JumpConstY)
+        // return
         if (!this.JumpOk()) {
             return
         }
@@ -80,11 +80,11 @@ export default class Character extends MyComponent {
 
         let Temp = cc.v2(dir.x * power * this.JumpConstX, dir.y * power * this.JumpConstY)
 
-        let START_POS = cc.v2(this.node.position.x, this.node.position.y - 80)
+        let START_POS = cc.v2(this.node.position.x, this.node.position.y)
 
-        const dt = 0.15;
+        const dt = 0.2;
 
-        for (let count = 2; count < 100; count++) {
+        for (let count = 1; count < 5/*5*/; count++) {
             const time = dt * count;
             // s = v_x * t
             const dx = Temp.x * time;
@@ -94,7 +94,7 @@ export default class Character extends MyComponent {
             const targetX = START_POS.x + dx;
             const targetY = START_POS.y + dy;
             // 坐标超过地板就不画了
-            if (targetY < START_POS.y - 80) break;
+            // if (targetY < START_POS.y) break;
             this.Parabola.circle(targetX, targetY);
         }
         // this.graphic_line.fill()
@@ -112,10 +112,25 @@ export default class Character extends MyComponent {
         this.Parabola.clear()
 
 
+
+        this.schedule(this.sendHight.bind(this), 0.1, 9999999, 0.1)
+
         //跳跃
         this.CharacterRigidBody.linearVelocity = cc.v2(dir.x * power * this.JumpConstX, dir.y * power * this.JumpConstY)
     }
 
+
+    sendHight() {
+        this.unschedule(this.sendHight)
+        cc.systemEvent.emit(EventName.Update_CurrentHight, this.getHight())
+    }
+
+    getHight(): number {
+        let y = this.node.getPosition().y
+        y = y + (1334 / 2) + (this.node.getContentSize().height / 2)
+        return parseInt(y.toString())
+    }
+
     JumpOk() {
         if (this.CharacterRigidBody.awake == false) {
             return true

+ 6 - 9
assets/Script/Character/GameTips.ts

@@ -16,8 +16,6 @@ export default class GameTips extends MyComponent {
     @property(cc.Label)
     Hight: cc.Label = null;
     @property(cc.Label)
-    History: cc.Label = null;
-    @property(cc.Label)
     Now: cc.Label = null;
 
 
@@ -29,18 +27,17 @@ export default class GameTips extends MyComponent {
 
     start() {
         this.regEvent(EventName.Update_CurrentHight, this.Update_CurrentHight, this)
-        this.regEvent(EventName.YaoGanEnd, this.YaoGanEnd, this)
+        // this.regEvent(EventName.YaoGanEnd, this.YaoGanEnd, this)
         this.regEvent(EventName.YaoGanMove, this.YaoGanMove, this)
     }
 
     Update_CurrentHight(hightNum: number) {
-        this.Hight.string = hightNum.toString()
-    }
-    YaoGanEnd(dir: cc.Vec3, power: number) {
-        const result = parseFloat((power * 100).toFixed(2));
-        this.History.string = `历史:${this.GetAngle(dir)}° , ${result}%`
-
+        this.Hight.string = `当前高度 ${hightNum.toString()} M`
     }
+    // YaoGanEnd(dir: cc.Vec3, power: number) {
+    //     // const result = parseFloat((power * 100).toFixed(2));
+    //     // this.History.string = `历史:${this.GetAngle(dir)}° , ${result}%`
+    // }
     YaoGanMove(dir: cc.Vec3, power: number) {
 
         const result = parseFloat((power * 100).toFixed(2));

+ 2 - 1
assets/Script/Character/Parabola.ts

@@ -10,7 +10,7 @@ const { ccclass, property } = cc._decorator;
 @ccclass
 export default class Parabola extends cc.Component {
 
-    ParabolaID: number = 1002
+    ParabolaID: number = 1000
 
 
     prefab: cc.Node = null
@@ -23,6 +23,7 @@ export default class Parabola extends cc.Component {
             let SubNode = new cc.Node()
             SubNode.addComponent(cc.Sprite).spriteFrame = SpriteFrame
             SubNode.setAnchorPoint(0.5, 0.5)
+            SubNode.setScale(0.8)
             this.prefab = SubNode
         });
     }

+ 57 - 7
assets/Script/Character/YaoGan.ts

@@ -15,7 +15,8 @@ export default class YaoGan extends cc.Component {
     parent: cc.Node = null;//摇杆和背景的父节点
 
 
-    max_R: number = 70//25;//摇杆移动的最大半径
+
+    max_R: number = 92//25;//摇杆移动的最大半径
 
 
 
@@ -28,19 +29,61 @@ export default class YaoGan extends cc.Component {
 
     CurrentDir: cc.Vec2 = null
     CurrentPower: number = null
+
+
+
     onLoad() {
         //绑定事件
         //因为摇杆很小,如果给摇杆绑定事件玩家将很难控制,摇杆的背景比较大,所以把事件都绑定在背景上是不错的选择
-        this.bg.on(cc.Node.EventType.TOUCH_MOVE, this.move, this);//当手指在背景上移动时触发move事件
-        this.bg.on(cc.Node.EventType.TOUCH_END, this.finish, this);//当手指在目标节点区域内离开屏幕时触发finish事件
-        this.bg.on(cc.Node.EventType.TOUCH_CANCEL, this.finish, this);//当手指在目标节点区域外离开屏幕时触发finish事件
+        this.node.on(cc.Node.EventType.TOUCH_MOVE, this.move, this);//当手指在背景上移动时触发move事件
+        this.node.on(cc.Node.EventType.TOUCH_END, this.finish, this);//当手指在目标节点区域内离开屏幕时触发finish事件
+        this.node.on(cc.Node.EventType.TOUCH_CANCEL, this.finish, this);//当手指在目标节点区域外离开屏幕时触发finish事件
+
+
+
+        // this.scheduleOnce(() => {
+        //     cc.Camera.main.node.on(cc.Node.EventType.TOUCH_START, this.CameraMove, this);//当手指在背景上移动时触发move事件
+        //     cc.Camera.main.node.on(cc.Node.EventType.TOUCH_MOVE, this.CameraMove, this);//当手指在背景上移动时触发move事件
+        //     cc.Camera.main.node.on(cc.Node.EventType.TOUCH_END, this.CameraEnd, this);//当手指在背景上移动时触发move事件
+        //     cc.Camera.main.node.on(cc.Node.EventType.TOUCH_CANCEL, this.CameraEnd, this);//当手指在背景上移动时触发move事件
+        // }, 0.2)
+
+        setTimeout(() => {
+            cc.Camera.main.node.on(cc.Node.EventType.TOUCH_START, this.CameraMove, this);//当手指在背景上移动时触发move事件
+        }, 200);
+    }
+
+    update(dt: number): void {
+        // let pp = cc.Camera.main.getScreenToWorldPoint(this.posss)
+        // let pp1 = this.node.parent.convertToNodeSpaceAR(pp)
+        // this.node.setPosition(pp1)
+    }
+
+    CameraEnd(event: cc.Event.EventTouch) {
+        // this.node.active = false
+    }
+
+
+    posss: cc.Vec2
+
+    CameraMove(event: cc.Event.EventTouch) {
+        const pos = event.getLocation()
+        let pp = cc.Camera.main.getScreenToWorldPoint(pos)
+        let pp1 = this.node.parent.convertToNodeSpaceAR(pp)
+        this.node.setPosition(pp1)
+        this.node.opacity = 255
+
+
     }
 
     move(event: cc.Event.EventTouch) {//负责移动摇杆 手指移动时调用
+        console.log('2');
         if (this.is_forbidden == false) {//如果没有禁用摇杆
+
+            // event.stopPropagation()
             let Camera = cc.Camera.main.node.position
 
-            let pos = cc.v2(event.getLocationX() + Camera.x, event.getLocationY()+ Camera.y);//获取触点的坐标
+            let pos = cc.v2(event.getLocationX() + Camera.x, event.getLocationY() + Camera.y);//获取触点的坐标
             let pos_0 = this.parent.convertToNodeSpaceAR(pos);//将一个点转换到节点 (局部) 空间坐标系,这个坐标系以锚点为原点。
 
             if (pos_0.mag() < this.max_R) {//如果触点长度小于我们规定好的最大半径
@@ -64,10 +107,17 @@ export default class YaoGan extends cc.Component {
     }
 
     finish() {//摇杆弹回原位置
-
         cc.systemEvent.emit(EventName.YaoGanEnd, this.CurrentDir, this.CurrentPower);
         //摇杆坐标和移动向量都为(0,0)
         this.joystick.position = cc.v3(0, 0);
+        this.node.opacity = 0
+        // this.node.setPosition(999, 0)
     }
 
-}
+}
+
+
+//////////////////////////////
+
+
+

+ 20 - 7
assets/Script/Global.ts

@@ -14,24 +14,37 @@ export class Global {
 
 
     //拥有的抛物线皮肤
-    static readonly defaultParabolaSkin: number[] = [1000]
+    static readonly defaultParabolaSkin: number[] = [1002]
     //拥有的人物皮肤
-    static readonly defaultCharacterSkin: number[] = [1,2,3]
+    static readonly defaultCharacterSkin: number[] = [1, 2, 3]
 
 
     //当前使用的抛物线皮肤
-    static readonly useParabolaSkin: number = 1000
+    static readonly useParabolaSkin: number = 1002
     //当前使用的人物皮肤
     static readonly useCharacterSkin: number = 1
 
 
 
+    // //游戏物理层
+    // /**跳跃的XY的力量的缩放 */
+    // static readonly Xscale: number = 5;
+    // static readonly Yscale: number = 5;
+    // /**跳跃的力量值 */
+    // static readonly UpPower: number = 130//130;
+    // /**世界的重力G值 */
+    // static readonly G: number = -320;
+
+
     //游戏物理层
     /**跳跃的XY的力量的缩放 */
-    static readonly Xscale: number = 4;
-    static readonly Yscale: number = 4;
+    static Xscale: number = 5;
+    static Yscale: number = 5;
     /**跳跃的力量值 */
-    static readonly UpPower: number = 330//130;
+    static UpPower: number = 130//130;
     /**世界的重力G值 */
-    static readonly G: number = -320;
+    static G: number = -320;
+
+
+    //障碍物的碰撞盒的摩檫力 基础定为 0.5
 }

+ 2 - 0
assets/Script/LocalData.ts

@@ -35,6 +35,8 @@ export default class LocalData {
         let now = Date.now();
         this.$lastLoginTime = now;
         this.save();
+
+        this.setCurrentParabolaSkin(1001)
     }
 
     public setGold(num: number, Action: string) {

+ 68 - 19
assets/Script/Map/MyMap.ts

@@ -63,14 +63,14 @@ export default class MyMap extends cc.Component {
     }
 
     //更新自己位置数据的间隔s
-    UpMyindexInterval: number = 1
+    UpMyindexInterval: number = 0.1
 
 
     //更新自己位置数据的间隔s
     NeedUpdataIndexData: NeedUpdataIndex[] = []
 
     protected start(): void {
-        this.Load('2')
+        this.Load('3')
     }
 
     public Load(level: string) {
@@ -90,7 +90,13 @@ export default class MyMap extends cc.Component {
             console.log(error.message);
             return;
         }
-        this.MapjsonData = resource.json;
+
+        if (window['map99']) {
+            this.MapjsonData = window['map99']
+
+        } else {
+            this.MapjsonData = resource.json;
+        }
 
 
         if (this.MapjsonData) {
@@ -154,6 +160,16 @@ export default class MyMap extends cc.Component {
         }
 
 
+
+        let wordpos = this.node.getChildByName('bg' + this.MapjsonData['BronID']).convertToWorldSpaceAR(
+            cc.v2(this.MapjsonData['BronX'], this.MapjsonData['BronY']))
+
+        // []}],"mapX":3,"mapY":3,"BronID":0,"BronX":55,"BronY":55}
+
+        this.CharacterNode.setPosition(this.CharacterNode.parent.convertToNodeSpaceAR(wordpos))
+
+
+
         return
 
 
@@ -212,53 +228,90 @@ export default class MyMap extends cc.Component {
 
         let MyIndex = cc.v2(this.CurrentMapPosData.index_x, this.CurrentMapPosData.index_y);
 
-        bronMap.push({ x: MyIndex.x - 1, y: MyIndex.y + 1, Id: this.CurrentMapPosData.Id + this.MapjsonData.mapX - 1 })
-        bronMap.push({ x: MyIndex.x, y: MyIndex.y + 1, Id: this.CurrentMapPosData.Id + this.MapjsonData.mapX })
-        bronMap.push({ x: MyIndex.x + 1, y: MyIndex.y + 1, Id: this.CurrentMapPosData.Id + this.MapjsonData.mapX + 1 })
+        // bronMap.push({ x: MyIndex.x - 1, y: MyIndex.y + 1, Id: this.CurrentMapPosData.Id + this.MapjsonData.mapX - 1 })
+        // bronMap.push({ x: MyIndex.x, y: MyIndex.y + 1, Id: this.CurrentMapPosData.Id + this.MapjsonData.mapX })
+        // bronMap.push({ x: MyIndex.x + 1, y: MyIndex.y + 1, Id: this.CurrentMapPosData.Id + this.MapjsonData.mapX + 1 })
+
+        // bronMap.push({ x: MyIndex.x - 1, y: MyIndex.y, Id: this.CurrentMapPosData.Id - 1 })
+        // bronMap.push({ x: MyIndex.x, y: MyIndex.y, Id: this.CurrentMapPosData.Id })
+        // bronMap.push({ x: MyIndex.x + 1, y: MyIndex.y, Id: this.CurrentMapPosData.Id + 1 })
+
+        // bronMap.push({ x: MyIndex.x - 1, y: MyIndex.y - 1, Id: this.CurrentMapPosData.Id - this.MapjsonData.mapX - 1 })
+        // bronMap.push({ x: MyIndex.x, y: MyIndex.y - 1, Id: this.CurrentMapPosData.Id - this.MapjsonData.mapX })
+        // bronMap.push({ x: MyIndex.x + 1, y: MyIndex.y - 1, Id: this.CurrentMapPosData.Id - this.MapjsonData.mapX + 1 })
 
 
-        bronMap.push({ x: MyIndex.x - 1, y: MyIndex.y, Id: this.CurrentMapPosData.Id - 1 })
         bronMap.push({ x: MyIndex.x, y: MyIndex.y, Id: this.CurrentMapPosData.Id })
+        bronMap.push({ x: MyIndex.x, y: MyIndex.y + 1, Id: this.CurrentMapPosData.Id + this.MapjsonData.mapX })
+        bronMap.push({ x: MyIndex.x, y: MyIndex.y - 1, Id: this.CurrentMapPosData.Id - this.MapjsonData.mapX })
+        bronMap.push({ x: MyIndex.x - 1, y: MyIndex.y, Id: this.CurrentMapPosData.Id - 1 })
         bronMap.push({ x: MyIndex.x + 1, y: MyIndex.y, Id: this.CurrentMapPosData.Id + 1 })
 
+
+        bronMap.push({ x: MyIndex.x - 1, y: MyIndex.y + 1, Id: this.CurrentMapPosData.Id + this.MapjsonData.mapX - 1 })
+        bronMap.push({ x: MyIndex.x + 1, y: MyIndex.y + 1, Id: this.CurrentMapPosData.Id + this.MapjsonData.mapX + 1 })
         bronMap.push({ x: MyIndex.x - 1, y: MyIndex.y - 1, Id: this.CurrentMapPosData.Id - this.MapjsonData.mapX - 1 })
-        bronMap.push({ x: MyIndex.x, y: MyIndex.y - 1, Id: this.CurrentMapPosData.Id - this.MapjsonData.mapX })
         bronMap.push({ x: MyIndex.x + 1, y: MyIndex.y - 1, Id: this.CurrentMapPosData.Id - this.MapjsonData.mapX + 1 })
 
 
+
         for (let index = 0; index < bronMap.length; index++) {
 
+            console.log(bronMap[index].Id);
+
+
+            if (bronMap[index].x < 0 || bronMap[index].x > (this.MapjsonData.mapX - 1)) {
+                continue
+            }
+            if (bronMap[index].y < 0 || bronMap[index].y > (this.MapjsonData.mapY - 1)) {
+                continue
+            }
+
             const SubMap = this.getSubMapDataByID(bronMap[index].Id)
 
             if (SubMap) {
                 if (this.总共生成的地图数组.includes(SubMap.Id)) {
 
                 } else {
-                    console.log('生成一次' + SubMap.Id);
                     this.BronSubMap(SubMap)
                     this.总共生成的地图数组.push(SubMap.Id)
                 }
             }
         }
 
-        console.error('this.总共生成的地图数组');
-        console.error(this.总共生成的地图数组);
+
+
+        // const array1 = [1, 2, 3, 4];
+        // const array2 = [3, 4, 5, 6];
+
+        // const differentElements = array1.filter(item => !array2.includes(item)).concat(
+        //     array2.filter(item => !array1.includes(item))
+        // );
+
+        // console.log(differentElements);
+
 
 
         for (let index = 0; index < this.总共生成的地图数组.length; index++) {
             const MapId = this.总共生成的地图数组[index];
-
             const SubMap = this.getSubMapDataByID(MapId)
-
             if (SubMap) {
                 for (let j = 0; j < bronMap.length; j++) {
                     const element = bronMap[j];
                     if (element.Id == MapId) {
                         break
                     }
-
                     if (j == bronMap.length - 1) {
                         this.DeleteSubMap(SubMap)
+
+
+                        const array = this.总共生成的地图数组
+                        const elementToRemove = MapId; // 要删除的元素
+
+                        this.总共生成的地图数组 = array.filter(item => item !== elementToRemove);
+
+
+
                     }
                 }
             }
@@ -310,11 +363,7 @@ export default class MyMap extends cc.Component {
 
 
     DeleteSubMap(SubMap: MapPosData) {
-       
-  
-        this.总共生成的地图数组 =  this.总共生成的地图数组.filter(item => item !== SubMap.Id);
- 
-
+        this.总共生成的地图数组 = this.总共生成的地图数组.filter(item => item !== SubMap.Id);
 
         this.node.getChildByName('bg' + SubMap.Id).getComponent(cc.Sprite).spriteFrame = null
 

BIN
assets/Texture/UI/bottom.png


+ 38 - 0
assets/Texture/UI/bottom.png.meta

@@ -0,0 +1,38 @@
+{
+  "ver": "2.3.7",
+  "uuid": "cf427801-d55b-485f-9796-dbb2a40d4395",
+  "importer": "texture",
+  "type": "sprite",
+  "wrapMode": "clamp",
+  "filterMode": "bilinear",
+  "premultiplyAlpha": false,
+  "genMipmaps": false,
+  "packable": true,
+  "width": 314,
+  "height": 145,
+  "platformSettings": {},
+  "subMetas": {
+    "bottom": {
+      "ver": "1.0.6",
+      "uuid": "b64a421e-bc13-4f14-bc7e-1cd079b018c4",
+      "importer": "sprite-frame",
+      "rawTextureUuid": "cf427801-d55b-485f-9796-dbb2a40d4395",
+      "trimType": "auto",
+      "trimThreshold": 1,
+      "rotated": false,
+      "offsetX": 0,
+      "offsetY": 0,
+      "trimX": 0,
+      "trimY": 0,
+      "width": 314,
+      "height": 145,
+      "rawWidth": 314,
+      "rawHeight": 145,
+      "borderTop": 0,
+      "borderBottom": 0,
+      "borderLeft": 0,
+      "borderRight": 0,
+      "subMetas": {}
+    }
+  }
+}

+ 13 - 0
assets/Texture/YaoGan.meta

@@ -0,0 +1,13 @@
+{
+  "ver": "1.1.3",
+  "uuid": "b59fc1e8-615b-4858-bb83-e7cbb1650df2",
+  "importer": "folder",
+  "isBundle": false,
+  "bundleName": "",
+  "priority": 1,
+  "compressionType": {},
+  "optimizeHotUpdate": {},
+  "inlineSpriteFrames": {},
+  "isRemoteBundle": {},
+  "subMetas": {}
+}

BIN
assets/Texture/YaoGan/range.png


+ 38 - 0
assets/Texture/YaoGan/range.png.meta

@@ -0,0 +1,38 @@
+{
+  "ver": "2.3.7",
+  "uuid": "8e4ccb54-1ece-4ed7-b1a7-f992b634288a",
+  "importer": "texture",
+  "type": "sprite",
+  "wrapMode": "clamp",
+  "filterMode": "bilinear",
+  "premultiplyAlpha": false,
+  "genMipmaps": false,
+  "packable": true,
+  "width": 150,
+  "height": 150,
+  "platformSettings": {},
+  "subMetas": {
+    "range": {
+      "ver": "1.0.6",
+      "uuid": "9c272a4d-9d0f-4636-bd8a-87cc0b8dd503",
+      "importer": "sprite-frame",
+      "rawTextureUuid": "8e4ccb54-1ece-4ed7-b1a7-f992b634288a",
+      "trimType": "auto",
+      "trimThreshold": 1,
+      "rotated": false,
+      "offsetX": 0,
+      "offsetY": 0,
+      "trimX": 0,
+      "trimY": 0,
+      "width": 150,
+      "height": 150,
+      "rawWidth": 150,
+      "rawHeight": 150,
+      "borderTop": 0,
+      "borderBottom": 0,
+      "borderLeft": 0,
+      "borderRight": 0,
+      "subMetas": {}
+    }
+  }
+}

BIN
assets/Texture/YaoGan/telecontrol.png


+ 38 - 0
assets/Texture/YaoGan/telecontrol.png.meta

@@ -0,0 +1,38 @@
+{
+  "ver": "2.3.7",
+  "uuid": "e318728d-f56a-4152-aca4-268790641a51",
+  "importer": "texture",
+  "type": "sprite",
+  "wrapMode": "clamp",
+  "filterMode": "bilinear",
+  "premultiplyAlpha": false,
+  "genMipmaps": false,
+  "packable": true,
+  "width": 69,
+  "height": 69,
+  "platformSettings": {},
+  "subMetas": {
+    "telecontrol": {
+      "ver": "1.0.6",
+      "uuid": "57c44724-b306-47cc-967a-1a6338b4a5f5",
+      "importer": "sprite-frame",
+      "rawTextureUuid": "e318728d-f56a-4152-aca4-268790641a51",
+      "trimType": "auto",
+      "trimThreshold": 1,
+      "rotated": false,
+      "offsetX": 0,
+      "offsetY": 0,
+      "trimX": 0,
+      "trimY": 0,
+      "width": 69,
+      "height": 69,
+      "rawWidth": 69,
+      "rawHeight": 69,
+      "borderTop": 0,
+      "borderBottom": 0,
+      "borderLeft": 0,
+      "borderRight": 0,
+      "subMetas": {}
+    }
+  }
+}

+ 2 - 2
assets/Texture/footstep/footstep1.png.meta

@@ -30,8 +30,8 @@
       "rawHeight": 173,
       "borderTop": 0,
       "borderBottom": 0,
-      "borderLeft": 0,
-      "borderRight": 0,
+      "borderLeft": 169,
+      "borderRight": 143,
       "subMetas": {}
     }
   }

+ 1 - 1
assets/resources/footstep/footstep10.prefab

@@ -147,7 +147,7 @@
     "tag": 0,
     "_density": 1,
     "_sensor": false,
-    "_friction": 0.2,
+    "_friction": 1,
     "_restitution": 0,
     "body": null,
     "_offset": {

+ 1 - 1
assets/resources/footstep/footstep11.prefab

@@ -147,7 +147,7 @@
     "tag": 0,
     "_density": 1,
     "_sensor": false,
-    "_friction": 0.2,
+    "_friction": 1,
     "_restitution": 0,
     "body": null,
     "_offset": {

+ 1 - 1
assets/resources/footstep/footstep12.prefab

@@ -147,7 +147,7 @@
     "tag": 0,
     "_density": 1,
     "_sensor": false,
-    "_friction": 0.2,
+    "_friction": 1,
     "_restitution": 0,
     "body": null,
     "_offset": {

+ 1 - 1
assets/resources/footstep/footstep13.prefab

@@ -147,7 +147,7 @@
     "tag": 0,
     "_density": 1,
     "_sensor": false,
-    "_friction": 0.2,
+    "_friction": 1,
     "_restitution": 0,
     "body": null,
     "_offset": {

+ 1 - 1
assets/resources/footstep/footstep14.prefab

@@ -147,7 +147,7 @@
     "tag": 0,
     "_density": 1,
     "_sensor": false,
-    "_friction": 0.2,
+    "_friction": 1,
     "_restitution": 0,
     "body": null,
     "_offset": {

+ 1 - 1
assets/resources/footstep/footstep15.prefab

@@ -147,7 +147,7 @@
     "tag": 0,
     "_density": 1,
     "_sensor": false,
-    "_friction": 0.2,
+    "_friction": 1,
     "_restitution": 0,
     "body": null,
     "_offset": {

+ 1 - 1
assets/resources/footstep/footstep16.prefab

@@ -147,7 +147,7 @@
     "tag": 0,
     "_density": 1,
     "_sensor": false,
-    "_friction": 0.2,
+    "_friction": 1,
     "_restitution": 0,
     "body": null,
     "_offset": {

+ 1 - 1
assets/resources/footstep/footstep17.prefab

@@ -147,7 +147,7 @@
     "tag": 0,
     "_density": 1,
     "_sensor": false,
-    "_friction": 0.2,
+    "_friction": 1,
     "_restitution": 0,
     "body": null,
     "_offset": {

+ 1 - 1
assets/resources/footstep/footstep18.prefab

@@ -147,7 +147,7 @@
     "tag": 0,
     "_density": 1,
     "_sensor": false,
-    "_friction": 0.2,
+    "_friction": 1,
     "_restitution": 0,
     "body": null,
     "_offset": {

+ 1 - 1
assets/resources/footstep/footstep19.prefab

@@ -147,7 +147,7 @@
     "tag": 0,
     "_density": 1,
     "_sensor": false,
-    "_friction": 0.2,
+    "_friction": 1,
     "_restitution": 0,
     "body": null,
     "_offset": {

+ 1 - 1
assets/resources/footstep/footstep2.prefab

@@ -147,7 +147,7 @@
     "tag": 0,
     "_density": 1,
     "_sensor": false,
-    "_friction": 0.2,
+    "_friction": 1,
     "_restitution": 0,
     "body": null,
     "_offset": {

+ 1 - 1
assets/resources/footstep/footstep20.prefab

@@ -147,7 +147,7 @@
     "tag": 0,
     "_density": 1,
     "_sensor": false,
-    "_friction": 0.2,
+    "_friction": 1,
     "_restitution": 0,
     "body": null,
     "_offset": {

+ 1 - 1
assets/resources/footstep/footstep21.prefab

@@ -147,7 +147,7 @@
     "tag": 0,
     "_density": 1,
     "_sensor": false,
-    "_friction": 0.2,
+    "_friction": 1,
     "_restitution": 0,
     "body": null,
     "_offset": {

+ 1 - 1
assets/resources/footstep/footstep22.prefab

@@ -147,7 +147,7 @@
     "tag": 0,
     "_density": 1,
     "_sensor": false,
-    "_friction": 0.2,
+    "_friction": 1,
     "_restitution": 0,
     "body": null,
     "_offset": {

+ 1 - 1
assets/resources/footstep/footstep23.prefab

@@ -147,7 +147,7 @@
     "tag": 0,
     "_density": 1,
     "_sensor": false,
-    "_friction": 0.2,
+    "_friction": 1,
     "_restitution": 0,
     "body": null,
     "_offset": {

+ 1 - 1
assets/resources/footstep/footstep24.prefab

@@ -147,7 +147,7 @@
     "tag": 0,
     "_density": 1,
     "_sensor": false,
-    "_friction": 0.2,
+    "_friction": 1,
     "_restitution": 0,
     "body": null,
     "_offset": {

+ 1 - 1
assets/resources/footstep/footstep25.prefab

@@ -147,7 +147,7 @@
     "tag": 0,
     "_density": 1,
     "_sensor": false,
-    "_friction": 0.2,
+    "_friction": 1,
     "_restitution": 0,
     "body": null,
     "_offset": {

+ 1 - 1
assets/resources/footstep/footstep26.prefab

@@ -147,7 +147,7 @@
     "tag": 0,
     "_density": 1,
     "_sensor": false,
-    "_friction": 0.2,
+    "_friction": 1,
     "_restitution": 0,
     "body": null,
     "_offset": {

+ 1 - 1
assets/resources/footstep/footstep27.prefab

@@ -147,7 +147,7 @@
     "tag": 0,
     "_density": 1,
     "_sensor": false,
-    "_friction": 0.2,
+    "_friction": 1,
     "_restitution": 0,
     "body": null,
     "_offset": {

+ 1 - 1
assets/resources/footstep/footstep28.prefab

@@ -147,7 +147,7 @@
     "tag": 0,
     "_density": 1,
     "_sensor": false,
-    "_friction": 0.2,
+    "_friction": 1,
     "_restitution": 0,
     "body": null,
     "_offset": {

+ 1 - 1
assets/resources/footstep/footstep29.prefab

@@ -147,7 +147,7 @@
     "tag": 0,
     "_density": 1,
     "_sensor": false,
-    "_friction": 0.2,
+    "_friction": 1,
     "_restitution": 0,
     "body": null,
     "_offset": {

+ 1 - 1
assets/resources/footstep/footstep3.prefab

@@ -147,7 +147,7 @@
     "tag": 0,
     "_density": 1,
     "_sensor": false,
-    "_friction": 0.2,
+    "_friction": 1,
     "_restitution": 0,
     "body": null,
     "_offset": {

+ 1 - 1
assets/resources/footstep/footstep30.prefab

@@ -147,7 +147,7 @@
     "tag": 0,
     "_density": 1,
     "_sensor": false,
-    "_friction": 0.2,
+    "_friction": 1,
     "_restitution": 0,
     "body": null,
     "_offset": {

+ 2 - 2
assets/resources/footstep/footstep31.prefab

@@ -75,7 +75,7 @@
     "_skewX": 0,
     "_skewY": 0,
     "_is3DNode": false,
-     "_groupIndex": 2,
+    "_groupIndex": 2,
     "groupIndex": 2,
     "_id": ""
   },
@@ -147,7 +147,7 @@
     "tag": 0,
     "_density": 1,
     "_sensor": false,
-    "_friction": 0.2,
+    "_friction": 1,
     "_restitution": 0,
     "body": null,
     "_offset": {

+ 1 - 1
assets/resources/footstep/footstep32.prefab

@@ -147,7 +147,7 @@
     "tag": 0,
     "_density": 1,
     "_sensor": false,
-    "_friction": 0.2,
+    "_friction": 1,
     "_restitution": 0,
     "body": null,
     "_offset": {

+ 1 - 1
assets/resources/footstep/footstep33.prefab

@@ -147,7 +147,7 @@
     "tag": 0,
     "_density": 1,
     "_sensor": false,
-    "_friction": 0.2,
+    "_friction": 1,
     "_restitution": 0,
     "body": null,
     "_offset": {

+ 1 - 1
assets/resources/footstep/footstep34.prefab

@@ -147,7 +147,7 @@
     "tag": 0,
     "_density": 1,
     "_sensor": false,
-    "_friction": 0.2,
+    "_friction": 1,
     "_restitution": 0,
     "body": null,
     "_offset": {

+ 1 - 1
assets/resources/footstep/footstep35.prefab

@@ -147,7 +147,7 @@
     "tag": 0,
     "_density": 1,
     "_sensor": false,
-    "_friction": 0.2,
+    "_friction": 1,
     "_restitution": 0,
     "body": null,
     "_offset": {

+ 1 - 1
assets/resources/footstep/footstep36.prefab

@@ -147,7 +147,7 @@
     "tag": 0,
     "_density": 1,
     "_sensor": false,
-    "_friction": 0.2,
+    "_friction": 1,
     "_restitution": 0,
     "body": null,
     "_offset": {

+ 1 - 1
assets/resources/footstep/footstep37.prefab

@@ -147,7 +147,7 @@
     "tag": 0,
     "_density": 1,
     "_sensor": false,
-    "_friction": 0.2,
+    "_friction": 1,
     "_restitution": 0,
     "body": null,
     "_offset": {

+ 1 - 1
assets/resources/footstep/footstep38.prefab

@@ -147,7 +147,7 @@
     "tag": 0,
     "_density": 1,
     "_sensor": false,
-    "_friction": 0.2,
+    "_friction": 1,
     "_restitution": 0,
     "body": null,
     "_offset": {

+ 1 - 1
assets/resources/footstep/footstep39.prefab

@@ -147,7 +147,7 @@
     "tag": 0,
     "_density": 1,
     "_sensor": false,
-    "_friction": 0.2,
+    "_friction": 1,
     "_restitution": 0,
     "body": null,
     "_offset": {

+ 1 - 1
assets/resources/footstep/footstep4.prefab

@@ -147,7 +147,7 @@
     "tag": 0,
     "_density": 1,
     "_sensor": false,
-    "_friction": 0.2,
+    "_friction": 1,
     "_restitution": 0,
     "body": null,
     "_offset": {

+ 1 - 1
assets/resources/footstep/footstep40.prefab

@@ -147,7 +147,7 @@
     "tag": 0,
     "_density": 1,
     "_sensor": false,
-    "_friction": 0.2,
+    "_friction": 1,
     "_restitution": 0,
     "body": null,
     "_offset": {

+ 1 - 1
assets/resources/footstep/footstep41.prefab

@@ -147,7 +147,7 @@
     "tag": 0,
     "_density": 1,
     "_sensor": false,
-    "_friction": 0.2,
+    "_friction": 1,
     "_restitution": 0,
     "body": null,
     "_offset": {

+ 1 - 1
assets/resources/footstep/footstep42.prefab

@@ -147,7 +147,7 @@
     "tag": 0,
     "_density": 1,
     "_sensor": false,
-    "_friction": 0.2,
+    "_friction": 1,
     "_restitution": 0,
     "body": null,
     "_offset": {

+ 1 - 1
assets/resources/footstep/footstep43.prefab

@@ -147,7 +147,7 @@
     "tag": 0,
     "_density": 1,
     "_sensor": false,
-    "_friction": 0.2,
+    "_friction": 1,
     "_restitution": 0,
     "body": null,
     "_offset": {

+ 1 - 1
assets/resources/footstep/footstep44.prefab

@@ -147,7 +147,7 @@
     "tag": 0,
     "_density": 1,
     "_sensor": false,
-    "_friction": 0.2,
+    "_friction": 1,
     "_restitution": 0,
     "body": null,
     "_offset": {

+ 1 - 1
assets/resources/footstep/footstep45.prefab

@@ -147,7 +147,7 @@
     "tag": 0,
     "_density": 1,
     "_sensor": false,
-    "_friction": 0.2,
+    "_friction": 1,
     "_restitution": 0,
     "body": null,
     "_offset": {

+ 1 - 1
assets/resources/footstep/footstep46.prefab

@@ -147,7 +147,7 @@
     "tag": 0,
     "_density": 1,
     "_sensor": false,
-    "_friction": 0.2,
+    "_friction": 1,
     "_restitution": 0,
     "body": null,
     "_offset": {

+ 1 - 1
assets/resources/footstep/footstep47.prefab

@@ -147,7 +147,7 @@
     "tag": 0,
     "_density": 1,
     "_sensor": false,
-    "_friction": 0.2,
+    "_friction": 1,
     "_restitution": 0,
     "body": null,
     "_offset": {

+ 1 - 1
assets/resources/footstep/footstep48.prefab

@@ -147,7 +147,7 @@
     "tag": 0,
     "_density": 1,
     "_sensor": false,
-    "_friction": 0.2,
+    "_friction": 1,
     "_restitution": 0,
     "body": null,
     "_offset": {

+ 1 - 1
assets/resources/footstep/footstep49.prefab

@@ -147,7 +147,7 @@
     "tag": 0,
     "_density": 1,
     "_sensor": false,
-    "_friction": 0.2,
+    "_friction": 1,
     "_restitution": 0,
     "body": null,
     "_offset": {

+ 1 - 1
assets/resources/footstep/footstep5.prefab

@@ -147,7 +147,7 @@
     "tag": 0,
     "_density": 1,
     "_sensor": false,
-    "_friction": 0.2,
+    "_friction": 1,
     "_restitution": 0,
     "body": null,
     "_offset": {

+ 1 - 1
assets/resources/footstep/footstep50.prefab

@@ -147,7 +147,7 @@
     "tag": 0,
     "_density": 1,
     "_sensor": false,
-    "_friction": 0.2,
+    "_friction": 1,
     "_restitution": 0,
     "body": null,
     "_offset": {

+ 1 - 1
assets/resources/footstep/footstep51.prefab

@@ -147,7 +147,7 @@
     "tag": 0,
     "_density": 1,
     "_sensor": false,
-    "_friction": 0.2,
+    "_friction": 1,
     "_restitution": 0,
     "body": null,
     "_offset": {

+ 1 - 1
assets/resources/footstep/footstep52.prefab

@@ -147,7 +147,7 @@
     "tag": 0,
     "_density": 1,
     "_sensor": false,
-    "_friction": 0.2,
+    "_friction": 1,
     "_restitution": 0,
     "body": null,
     "_offset": {

+ 1 - 1
assets/resources/footstep/footstep53.prefab

@@ -147,7 +147,7 @@
     "tag": 0,
     "_density": 1,
     "_sensor": false,
-    "_friction": 0.2,
+    "_friction": 1,
     "_restitution": 0,
     "body": null,
     "_offset": {

+ 1 - 1
assets/resources/footstep/footstep54.prefab

@@ -147,7 +147,7 @@
     "tag": 0,
     "_density": 1,
     "_sensor": false,
-    "_friction": 0.2,
+    "_friction": 1,
     "_restitution": 0,
     "body": null,
     "_offset": {

+ 1 - 1
assets/resources/footstep/footstep55.prefab

@@ -147,7 +147,7 @@
     "tag": 0,
     "_density": 1,
     "_sensor": false,
-    "_friction": 0.2,
+    "_friction": 1,
     "_restitution": 0,
     "body": null,
     "_offset": {

+ 1 - 1
assets/resources/footstep/footstep56.prefab

@@ -147,7 +147,7 @@
     "tag": 0,
     "_density": 1,
     "_sensor": false,
-    "_friction": 0.2,
+    "_friction": 1,
     "_restitution": 0,
     "body": null,
     "_offset": {

+ 1 - 1
assets/resources/footstep/footstep57.prefab

@@ -147,7 +147,7 @@
     "tag": 0,
     "_density": 1,
     "_sensor": false,
-    "_friction": 0.2,
+    "_friction": 1,
     "_restitution": 0,
     "body": null,
     "_offset": {

+ 1 - 1
assets/resources/footstep/footstep58.prefab

@@ -147,7 +147,7 @@
     "tag": 0,
     "_density": 1,
     "_sensor": false,
-    "_friction": 0.2,
+    "_friction": 1,
     "_restitution": 0,
     "body": null,
     "_offset": {

+ 1 - 1
assets/resources/footstep/footstep59.prefab

@@ -147,7 +147,7 @@
     "tag": 0,
     "_density": 1,
     "_sensor": false,
-    "_friction": 0.2,
+    "_friction": 1,
     "_restitution": 0,
     "body": null,
     "_offset": {

+ 1 - 1
assets/resources/footstep/footstep6.prefab

@@ -147,7 +147,7 @@
     "tag": 0,
     "_density": 1,
     "_sensor": false,
-    "_friction": 0.2,
+    "_friction": 1,
     "_restitution": 0,
     "body": null,
     "_offset": {

+ 1 - 1
assets/resources/footstep/footstep60.prefab

@@ -147,7 +147,7 @@
     "tag": 0,
     "_density": 1,
     "_sensor": false,
-    "_friction": 0.2,
+    "_friction": 1,
     "_restitution": 0,
     "body": null,
     "_offset": {

+ 1 - 1
assets/resources/footstep/footstep7.prefab

@@ -147,7 +147,7 @@
     "tag": 0,
     "_density": 1,
     "_sensor": false,
-    "_friction": 0.2,
+    "_friction": 1,
     "_restitution": 0,
     "body": null,
     "_offset": {

+ 1 - 1
assets/resources/footstep/footstep8.prefab

@@ -147,7 +147,7 @@
     "tag": 0,
     "_density": 1,
     "_sensor": false,
-    "_friction": 0.2,
+    "_friction": 1,
     "_restitution": 0,
     "body": null,
     "_offset": {

+ 1 - 1
assets/resources/footstep/footstep9.prefab

@@ -147,7 +147,7 @@
     "tag": 0,
     "_density": 1,
     "_sensor": false,
-    "_friction": 0.2,
+    "_friction": 1,
     "_restitution": 0,
     "body": null,
     "_offset": {

+ 8 - 8
assets/resources/json/map1.json

@@ -5,56 +5,56 @@
             "fs": [
                 {
                     "sp": "31",
-                    "ro": 0,
+                    "ro": 45,
                     "sc": 1,
                     "x": "-210.00",
                     "y": "522.00"
                 },
                 {
                     "sp": "31",
-                    "ro": 0,
+                    "ro": 45,
                     "sc": 1,
                     "x": "-6.00",
                     "y": "232.00"
                 },
                 {
                     "sp": "31",
-                    "ro": 0,
+                    "ro": 45,
                     "sc": 1,
                     "x": "-214.00",
                     "y": "-56.00"
                 },
                 {
                     "sp": "31",
-                    "ro": 0,
+                    "ro": 45,
                     "sc": 1,
                     "x": "44.00",
                     "y": "-332.00"
                 },
                 {
                     "sp": "31",
-                    "ro": 0,
+                    "ro": -45,
                     "sc": 1,
                     "x": "-220.00",
                     "y": "-598.00"
                 },
                 {
                     "sp": "31",
-                    "ro": 0,
+                    "ro": -45,
                     "sc": 1,
                     "x": "216.00",
                     "y": "-550.00"
                 },
                 {
                     "sp": "31",
-                    "ro": 0,
+                    "ro": -45,
                     "sc": 1,
                     "x": "236.00",
                     "y": "8.00"
                 },
                 {
                     "sp": "31",
-                    "ro": 0,
+                    "ro": -45,
                     "sc": 1,
                     "x": "244.00",
                     "y": "430.00"

Різницю між файлами не показано, бо вона завелика
+ 0 - 0
assets/resources/json/map3.json


+ 6 - 0
assets/resources/json/map3.json.meta

@@ -0,0 +1,6 @@
+{
+  "ver": "1.0.2",
+  "uuid": "b6894b12-ae56-4a06-b6d4-71198eecfe4c",
+  "importer": "json",
+  "subMetas": {}
+}

+ 1 - 1
settings/builder.json

@@ -9,7 +9,7 @@
   "packageName": "org.cocos2d.helloworld",
   "startScene": "2d2f792f-a40c-49bb-a189-ed176a246e49",
   "title": "hello_world",
-  "webOrientation": "auto",
+  "webOrientation": "portrait",
   "inlineSpriteFrames": true,
   "inlineSpriteFrames_native": true,
   "mainCompressionType": "default",

Деякі файли не було показано, через те що забагато файлів було змінено