File tree Expand file tree Collapse file tree 1 file changed +0
-27
lines changed Expand file tree Collapse file tree 1 file changed +0
-27
lines changed Original file line number Diff line number Diff line change @@ -8,19 +8,6 @@ import { useToast, POSITION } from 'vue-toastification'
88
99const 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-
2411export 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 ) {
You can’t perform that action at this time.
0 commit comments