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