Skip to content

Commit 6e46c62

Browse files
committed
fix: remove not use code
1 parent 5e529bf commit 6e46c62

File tree

1 file changed

+0
-27
lines changed

1 file changed

+0
-27
lines changed

src/game/scenes/Game.ts

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,6 @@ import { useToast, POSITION } from 'vue-toastification'
88

99
const toast = useToast()
1010

11-
function randomData(scene: Phaser.Scene, x: number, y: number) {
12-
const ret = {
13-
scene: scene,
14-
x: x,
15-
y: y,
16-
size: GameData.hexSize,
17-
skew: GameData.skew,
18-
type: '',
19-
ID: ''
20-
}
21-
return ret
22-
}
23-
2411
export class Game extends Scene {
2512
private contentContainer!: Phaser.GameObjects.Container
2613
private dragStartY = 0
@@ -280,20 +267,6 @@ export class Game extends Scene {
280267
position: POSITION.BOTTOM_CENTER,
281268
timeout: 3000,
282269
})
283-
284-
const tile = new HexTile(randomData(this, pos.x, pos.y))
285-
this.contentContainer.addAt(tile, 0)
286-
GameData.path.push(tile)
287-
288-
this.tweens.add({
289-
targets: this.contentContainer,
290-
y: Math.max(GameData.screenHeight * 0.5 - pos.y, 0),
291-
duration: 600,
292-
ease: 'Sine.easeInOut',
293-
onComplete: () => {
294-
this.addCharacterImage(tile)
295-
}
296-
})
297270
}
298271

299272
showAllTileInfo(show: boolean) {

0 commit comments

Comments
 (0)