mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-04 07:24:13 +00:00 
			
		
		
		
	enhance(drop-and-fusion): some tweaks
This commit is contained in:
		
							parent
							
								
									5c786cace8
								
							
						
					
					
						commit
						36fd7d17cf
					
				
					 3 changed files with 1088 additions and 948 deletions
				
			
		
							
								
								
									
										1052
									
								
								packages/frontend/src/pages/drop-and-fusion.game.vue
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										1052
									
								
								packages/frontend/src/pages/drop-and-fusion.game.vue
									
										
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because it is too large
												Load diff
											
										
									
								
							
										
											
												File diff suppressed because it is too large
												Load diff
											
										
									
								
							| 
						 | 
					@ -33,6 +33,7 @@ type Log = {
 | 
				
			||||||
	operation: 'surrender';
 | 
						operation: 'surrender';
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// TODO: インスタンスを作り直さなくてもゲームをリスタートできるようにする
 | 
				
			||||||
export class DropAndFusionGame extends EventEmitter<{
 | 
					export class DropAndFusionGame extends EventEmitter<{
 | 
				
			||||||
	changeScore: (newScore: number) => void;
 | 
						changeScore: (newScore: number) => void;
 | 
				
			||||||
	changeCombo: (newCombo: number) => void;
 | 
						changeCombo: (newCombo: number) => void;
 | 
				
			||||||
| 
						 | 
					@ -307,7 +308,6 @@ export class DropAndFusionGame extends EventEmitter<{
 | 
				
			||||||
		async function loadSingleMonoTexture(mono: Mono, game: DropAndFusionGame) {
 | 
							async function loadSingleMonoTexture(mono: Mono, game: DropAndFusionGame) {
 | 
				
			||||||
			// Matter-js内にキャッシュがある場合はスキップ
 | 
								// Matter-js内にキャッシュがある場合はスキップ
 | 
				
			||||||
			if (game.render.textures[mono.img]) return;
 | 
								if (game.render.textures[mono.img]) return;
 | 
				
			||||||
			console.log('loading', mono.img);
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
			let src = mono.img;
 | 
								let src = mono.img;
 | 
				
			||||||
			// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
 | 
								// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue