panhui 2 years ago
parent
commit
a4c6834d11
1 changed files with 1 additions and 3 deletions
  1. 1 3
      src/game/scenes/PlayScene.ts

+ 1 - 3
src/game/scenes/PlayScene.ts

@@ -121,7 +121,6 @@ export default class PlayScene extends Scene {
         )
 
         Object.keys(this.personInfo).forEach((key: string, index: number) => {
-            console.log([...this.map.objects][index].objects)
             this.personInfo[key].paths = [...this.map.objects][index].objects.map((obj: any) => {
                 return {
                     postion: {
@@ -132,7 +131,6 @@ export default class PlayScene extends Scene {
                 }
             })
         })
-        console.log(this.personInfo)
         // this.personInfo.Arthur_Burton.paths = crossing.map((obj: any) => {
         //     return {
         //         postion: {
@@ -220,7 +218,7 @@ export default class PlayScene extends Scene {
                 frameRate: 6,
                 repeat: -1
             })
-            info['sprite'] = this.add.sprite(path.postion.x, path.postion.y, key, direction)
+            info['sprite'] = this.add.sprite(path.postion.x, path.postion.y, key)
             // .setScale(0.7)
 
             switch (direction) {