mirror of
				https://github.com/boudji-ludwig-pett/cnam-geometry-dash.git
				synced 2025-06-27 11:58:51 +02:00 
			
		
		
		
	feat: explosion effect on win and death
This commit is contained in:
		
							
								
								
									
										
											BIN
										
									
								
								Assets/Resources/Shapes/Explosion.gif
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								Assets/Resources/Shapes/Explosion.gif
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 716 KiB | 
							
								
								
									
										156
									
								
								Assets/Resources/Shapes/Explosion.gif.meta
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										156
									
								
								Assets/Resources/Shapes/Explosion.gif.meta
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,156 @@ | ||||
| fileFormatVersion: 2 | ||||
| guid: bb33a1422640593caba3c9cfc277eed1 | ||||
| TextureImporter: | ||||
|   internalIDToNameTable: | ||||
|   - first: | ||||
|       213: -9192638271177797499 | ||||
|     second: death_0 | ||||
|   externalObjects: {} | ||||
|   serializedVersion: 13 | ||||
|   mipmaps: | ||||
|     mipMapMode: 0 | ||||
|     enableMipMap: 0 | ||||
|     sRGBTexture: 1 | ||||
|     linearTexture: 0 | ||||
|     fadeOut: 0 | ||||
|     borderMipMap: 0 | ||||
|     mipMapsPreserveCoverage: 0 | ||||
|     alphaTestReferenceValue: 0.5 | ||||
|     mipMapFadeDistanceStart: 1 | ||||
|     mipMapFadeDistanceEnd: 3 | ||||
|   bumpmap: | ||||
|     convertToNormalMap: 0 | ||||
|     externalNormalMap: 0 | ||||
|     heightScale: 0.25 | ||||
|     normalMapFilter: 0 | ||||
|     flipGreenChannel: 0 | ||||
|   isReadable: 0 | ||||
|   streamingMipmaps: 0 | ||||
|   streamingMipmapsPriority: 0 | ||||
|   vTOnly: 0 | ||||
|   ignoreMipmapLimit: 0 | ||||
|   grayScaleToAlpha: 0 | ||||
|   generateCubemap: 6 | ||||
|   cubemapConvolution: 0 | ||||
|   seamlessCubemap: 0 | ||||
|   textureFormat: 1 | ||||
|   maxTextureSize: 2048 | ||||
|   textureSettings: | ||||
|     serializedVersion: 2 | ||||
|     filterMode: 1 | ||||
|     aniso: 1 | ||||
|     mipBias: 0 | ||||
|     wrapU: 1 | ||||
|     wrapV: 1 | ||||
|     wrapW: 1 | ||||
|   nPOTScale: 0 | ||||
|   lightmap: 0 | ||||
|   compressionQuality: 50 | ||||
|   spriteMode: 2 | ||||
|   spriteExtrude: 1 | ||||
|   spriteMeshType: 1 | ||||
|   alignment: 0 | ||||
|   spritePivot: {x: 0.5, y: 0.5} | ||||
|   spritePixelsToUnits: 100 | ||||
|   spriteBorder: {x: 0, y: 0, z: 0, w: 0} | ||||
|   spriteGenerateFallbackPhysicsShape: 1 | ||||
|   alphaUsage: 1 | ||||
|   alphaIsTransparency: 1 | ||||
|   spriteTessellationDetail: -1 | ||||
|   textureType: 8 | ||||
|   textureShape: 1 | ||||
|   singleChannelComponent: 0 | ||||
|   flipbookRows: 1 | ||||
|   flipbookColumns: 1 | ||||
|   maxTextureSizeSet: 0 | ||||
|   compressionQualitySet: 0 | ||||
|   textureFormatSet: 0 | ||||
|   ignorePngGamma: 0 | ||||
|   applyGammaDecoding: 0 | ||||
|   swizzle: 50462976 | ||||
|   cookieLightType: 0 | ||||
|   platformSettings: | ||||
|   - serializedVersion: 4 | ||||
|     buildTarget: DefaultTexturePlatform | ||||
|     maxTextureSize: 2048 | ||||
|     resizeAlgorithm: 0 | ||||
|     textureFormat: -1 | ||||
|     textureCompression: 1 | ||||
|     compressionQuality: 50 | ||||
|     crunchedCompression: 0 | ||||
|     allowsAlphaSplitting: 0 | ||||
|     overridden: 0 | ||||
|     ignorePlatformSupport: 0 | ||||
|     androidETC2FallbackOverride: 0 | ||||
|     forceMaximumCompressionQuality_BC6H_BC7: 0 | ||||
|   - serializedVersion: 4 | ||||
|     buildTarget: Standalone | ||||
|     maxTextureSize: 2048 | ||||
|     resizeAlgorithm: 0 | ||||
|     textureFormat: -1 | ||||
|     textureCompression: 1 | ||||
|     compressionQuality: 50 | ||||
|     crunchedCompression: 0 | ||||
|     allowsAlphaSplitting: 0 | ||||
|     overridden: 0 | ||||
|     ignorePlatformSupport: 0 | ||||
|     androidETC2FallbackOverride: 0 | ||||
|     forceMaximumCompressionQuality_BC6H_BC7: 0 | ||||
|   - serializedVersion: 4 | ||||
|     buildTarget: Android | ||||
|     maxTextureSize: 2048 | ||||
|     resizeAlgorithm: 0 | ||||
|     textureFormat: -1 | ||||
|     textureCompression: 1 | ||||
|     compressionQuality: 50 | ||||
|     crunchedCompression: 0 | ||||
|     allowsAlphaSplitting: 0 | ||||
|     overridden: 0 | ||||
|     ignorePlatformSupport: 0 | ||||
|     androidETC2FallbackOverride: 0 | ||||
|     forceMaximumCompressionQuality_BC6H_BC7: 0 | ||||
|   spriteSheet: | ||||
|     serializedVersion: 2 | ||||
|     sprites: | ||||
|     - serializedVersion: 2 | ||||
|       name: death_0 | ||||
|       rect: | ||||
|         serializedVersion: 2 | ||||
|         x: 50 | ||||
|         y: 42 | ||||
|         width: 118 | ||||
|         height: 118 | ||||
|       alignment: 0 | ||||
|       pivot: {x: 0, y: 0} | ||||
|       border: {x: 0, y: 0, z: 0, w: 0} | ||||
|       customData:  | ||||
|       outline: [] | ||||
|       physicsShape: [] | ||||
|       tessellationDetail: -1 | ||||
|       bones: [] | ||||
|       spriteID: 58059c172303d6080800000000000000 | ||||
|       internalID: -9192638271177797499 | ||||
|       vertices: [] | ||||
|       indices:  | ||||
|       edges: [] | ||||
|       weights: [] | ||||
|     outline: [] | ||||
|     customData:  | ||||
|     physicsShape: [] | ||||
|     bones: [] | ||||
|     spriteID:  | ||||
|     internalID: 0 | ||||
|     vertices: [] | ||||
|     indices:  | ||||
|     edges: [] | ||||
|     weights: [] | ||||
|     secondaryTextures: [] | ||||
|     spriteCustomMetadata: | ||||
|       entries: [] | ||||
|     nameFileIdTable: | ||||
|       death_0: -9192638271177797499 | ||||
|   mipmapLimitGroupName:  | ||||
|   pSDRemoveMatte: 0 | ||||
|   userData:  | ||||
|   assetBundleName:  | ||||
|   assetBundleVariant:  | ||||
| @@ -105,6 +105,7 @@ public class Player : MonoBehaviour | ||||
|  | ||||
|         if (collision.gameObject.CompareTag("Kill")) | ||||
|         { | ||||
|             SpriteRenderer.sprite = Resources.Load<Sprite>("Shapes/Explosion"); | ||||
|             Time.timeScale = 0; | ||||
|             sfxSource.clip = Resources.Load<AudioClip>(Path.Combine("Sounds", "death")); | ||||
|             sfxSource.Play(); | ||||
| @@ -113,6 +114,8 @@ public class Player : MonoBehaviour | ||||
|  | ||||
|         if (collision.gameObject.CompareTag("Win")) | ||||
|         { | ||||
|             SpriteRenderer.sprite = Resources.Load<Sprite>("Shapes/Explosion"); | ||||
|             Time.timeScale = 0; | ||||
|             sfxSource.clip = Resources.Load<AudioClip>(Path.Combine("Sounds", "win")); | ||||
|             sfxSource.Play(); | ||||
|             StartCoroutine(LevelHomeButton.PlaySoundAndLoadScene(sfxSource, "SelectLevelScene")); | ||||
|   | ||||
| @@ -6,9 +6,9 @@ Développement d'une reproduction du jeu [Geometry Dash](https://fr.wikipedia.or | ||||
|  | ||||
| Afin de tester le jeu, plusieurs `.zip` avec l'exécutable sont disponibles, généré automatiquement grâce au déploiement continu de [GameCI](https://game.ci/), en fonction du système d'exploitation: | ||||
|  | ||||
| - [Windows](https://github.com/boudji-ludwig-pett/cnam-geometry-dash/releases/download/v1.0.0-staging.4/windows.zip) | ||||
| - [GNU/Linux](https://github.com/boudji-ludwig-pett/cnam-geometry-dash/releases/download/v1.0.0-staging.4/linux.zip) | ||||
| - [macOS](https://github.com/boudji-ludwig-pett/cnam-geometry-dash/releases/download/v1.0.0-staging.4/macOS.zip) | ||||
| - [Windows (x64)](https://github.com/boudji-ludwig-pett/cnam-geometry-dash/releases/download/v1.0.0-staging.4/windows.zip) | ||||
| - [GNU/Linux (x64)](https://github.com/boudji-ludwig-pett/cnam-geometry-dash/releases/download/v1.0.0-staging.4/linux.zip) | ||||
| - [macOS (x64)](https://github.com/boudji-ludwig-pett/cnam-geometry-dash/releases/download/v1.0.0-staging.4/macOS.zip) | ||||
|  | ||||
| ### Membres du groupe | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user