From d4a98503682a976968a3002ba3f7eaa37a46cbce Mon Sep 17 00:00:00 2001 From: Sam Date: Fri, 5 May 2023 16:28:10 -0700 Subject: [PATCH] add trumpet burst animation still needs work --- Assets/.DS_Store | Bin 10244 -> 8196 bytes Assets/Animations/Trumpet.meta | 8 + Assets/Animations/Trumpet/poof.anim | 96 ++++ Assets/Animations/Trumpet/poof.anim.meta | 8 + .../Trumpet/trumpet_animator.controller | 72 +++ .../Trumpet/trumpet_animator.controller.meta | 8 + Assets/Prefabs/Player.prefab | 109 +++- Assets/Scripts/PlayerController.cs | 7 + Assets/Sprites/Effects/smoke_burst.png | Bin 0 -> 1450 bytes Assets/Sprites/Effects/smoke_burst.png.meta | 476 ++++++++++++++++++ 10 files changed, 783 insertions(+), 1 deletion(-) create mode 100644 Assets/Animations/Trumpet.meta create mode 100644 Assets/Animations/Trumpet/poof.anim create mode 100644 Assets/Animations/Trumpet/poof.anim.meta create mode 100644 Assets/Animations/Trumpet/trumpet_animator.controller create mode 100644 Assets/Animations/Trumpet/trumpet_animator.controller.meta create mode 100644 Assets/Sprites/Effects/smoke_burst.png create mode 100644 Assets/Sprites/Effects/smoke_burst.png.meta diff --git a/Assets/.DS_Store b/Assets/.DS_Store index dde32dc726ed806c6ae0ddb8aeadc581e2efe52f..51ced9105ddc1e6e94b4b061af49532dddf40c0d 100644 GIT binary patch delta 120 zcmZn(XmOBWU|?W$DortDU;r^WfEYvza8E20o2aKK$_A1L@);Nk7)lt5lgf(=l5#c{ zPGg_gz`L29gN1{UZ8NvvZ+1auph6&!;06+|AOkiQerKM{uM)@s)DAM1VRAgr)XjfH G*_i?36c!Z# delta 210 zcmZp1XbF&DU|?W$DortDU{C-uIe-{M3-C-V6q~50C<+o_1o9ae5*dntFqNT%p?G8A zH1>%NyqnoMSU4m>D!3T(8PXV%7<7?UO;#0eU^lhYQ7|?%oV-TdUJ(); gameUI = GameObject.FindGameObjectWithTag("GameUICanvas").GetComponent(); trumpetSprite.enabled = false; + trumpetAnimationObject = trumpetSprite.gameObject.transform.GetChild(0).gameObject; + trumpetAnimationObject.SetActive(false); } private void Start() @@ -581,7 +584,11 @@ public class PlayerMovement : MonoBehaviour { trumpetActive = true; trumpetSprite.enabled = true; + trumpetAnimationObject.SetActive(true); + trumpetAnimationObject.GetComponent().Play("poof"); yield return new WaitForSeconds(.5f); + + trumpetAnimationObject.SetActive(false); trumpetSprite.enabled = false; trumpetActive = false; } diff --git a/Assets/Sprites/Effects/smoke_burst.png b/Assets/Sprites/Effects/smoke_burst.png new file mode 100644 index 0000000000000000000000000000000000000000..c92b637d1a32ab89a8c2c16c0dd1b1757cf29c99 GIT binary patch literal 1450 zcmV;b1y%ZqP)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!vFvd!vV){sAK>D02y>eSaefwW^{L9 za%BK;VQFr3E^cLXAT%y8E-^Ag1Z(U700kOJL_t(|Ugeg{b=yi11s&ZBMFD8#of1$2 z3cxWr96l9win?g@fCGZ^k%LrYs3UNV&3*Fn^0GMul5*~vabb1{XpJ+g z0c%53d#Z8Hf2yN&#nU`=1zBuOialdkU}1gka(X zdmRq@8jQVu)gR0;YQh25eAjf6eN;Fb=@)mdHjqJTQ`m9{SwQ-w&O*9kasZ-sq^S@C zzl?EBw@OUX+=C5>KBEDs(JzOfy(t3~8_Er`8mQe!xj znP%{*x|yabXn=S%@5LdDHc{@g32j{yCNU{~J^{vI&so(b#4um#ujwlI8^>5#_r)=b z)`9CR+9Du>Y=NIK)XwPDkvDaF2hiou+$%xFAylq4AXU$Pwh4>ht4lJ5aq@iOJi_Ej z_1WT99niq+ut%ULcNb@|c|=;{BheZkiPl*09jf+!f!3JNJf9*sGK5?I3CdU9fYz8W z0KTDqM{g+v%@Msde8mu2V`B0CAn86OTcGzFyjPnX(QeTiNk-u|Z}GE5R6paT?N2b1 zb7er}&)&U{t&O6e9aaVXY`!hXPyN^GSZqk_iTSH(9veG zas9h62sXq4O6T)cknh(!gStOATCk}1J;J7_Eh40 zTvSKtil=$#3bNRm6nn<7zz+1#<=)bPI(^xvzPWK9A`a3qK|mpZpDVfubV)qIW||@{ z5L3U2;ulnZ$-GV7p99dbL$Lw6La=e(>BShG-a4v3>uBgn>RD^!(B%CTf{7FCbvW#6 zF!uUYe=x_W3H17;{+dp*j|yi4{qoM$1~N!(3R?~#3rN4zSx8q*4nWk7G!})d$0k~XEXpc`sEO`cZFdC8%Ygxnhy0@-+=W1NaQtVwTL{g1+n)`Y7B=m(+oaU zH__AzG(fzP_v3;ki#Ad2vk7fo6DBb!em()lVSi3tvVA|Qfnf}b(e&gj*VH+AQd8~+hq{>Xj)vx!5fTx&q8p8aeS7Qa`QWDMiP`Q>60 zlPB0`xm5==FgxrK=*iv0S!^DW*7!)Y#z&$xuJ9eI_J4rZxPa#Q6v2@ppgpSZ><4L$ z3m5?3P`{(M6oTf6-WtAO2(58}#ruP#`IKye-f!?;ZE{4rL2EoGA0=CC1&Vm9@&Et;07*qoM6N<$ Eg1jfb>;M1& literal 0 HcmV?d00001 diff --git a/Assets/Sprites/Effects/smoke_burst.png.meta b/Assets/Sprites/Effects/smoke_burst.png.meta new file mode 100644 index 0000000..cfdb242 --- /dev/null +++ b/Assets/Sprites/Effects/smoke_burst.png.meta @@ -0,0 +1,476 @@ +fileFormatVersion: 2 +guid: d8b9cbe288db14073a0a854f6a7fcf77 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + 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: 0 + 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: 32 + 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: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: + - serializedVersion: 2 + name: Smoke & Fire_0 + rect: + serializedVersion: 2 + x: 0 + y: 48 + width: 16 + height: 16 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + bones: [] + spriteID: 7a25c3117f6644619bb6c43fce3f356d + internalID: 206937997 + vertices: [] + indices: + edges: [] + weights: [] + - serializedVersion: 2 + name: Smoke & Fire_1 + rect: + serializedVersion: 2 + x: 16 + y: 48 + width: 16 + height: 16 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + bones: [] + spriteID: ec321cf1d06364e14a006620184d73ec + internalID: 276900702 + vertices: [] + indices: + edges: [] + weights: [] + - serializedVersion: 2 + name: Smoke & Fire_2 + rect: + serializedVersion: 2 + x: 32 + y: 48 + width: 16 + height: 16 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + bones: [] + spriteID: 065c549a3fd3348ee8cd49358157996f + internalID: 757912125 + vertices: [] + indices: + edges: [] + weights: [] + - serializedVersion: 2 + name: Smoke & Fire_3 + rect: + serializedVersion: 2 + x: 48 + y: 48 + width: 16 + height: 16 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + bones: [] + spriteID: 05ce2cfe02ccc40f7b8dbd297eec7d7c + internalID: -1984119684 + vertices: [] + indices: + edges: [] + weights: [] + - serializedVersion: 2 + name: Smoke & Fire_4 + rect: + serializedVersion: 2 + x: 0 + y: 32 + width: 16 + height: 16 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + bones: [] + spriteID: f476d88e1a601482faad600dc6b6a881 + internalID: 2060949245 + vertices: [] + indices: + edges: [] + weights: [] + - serializedVersion: 2 + name: Smoke & Fire_5 + rect: + serializedVersion: 2 + x: 16 + y: 32 + width: 16 + height: 16 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + bones: [] + spriteID: e107455efb3dd47469e6ce1034dbe6d7 + internalID: -935418220 + vertices: [] + indices: + edges: [] + weights: [] + - serializedVersion: 2 + name: Smoke & Fire_6 + rect: + serializedVersion: 2 + x: 32 + y: 32 + width: 16 + height: 16 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + bones: [] + spriteID: 512593a6a169448679aa707fe41a4886 + internalID: -1664640138 + vertices: [] + indices: + edges: [] + weights: [] + - serializedVersion: 2 + name: Smoke & Fire_7 + rect: + serializedVersion: 2 + x: 48 + y: 32 + width: 16 + height: 16 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + bones: [] + spriteID: 2f06537454aed478fb592b3832b345ac + internalID: 273046767 + vertices: [] + indices: + edges: [] + weights: [] + - serializedVersion: 2 + name: Smoke & Fire_8 + rect: + serializedVersion: 2 + x: 0 + y: 16 + width: 16 + height: 16 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + bones: [] + spriteID: ffc8a9f7a0e3442118c444d83ee98d90 + internalID: 18386231 + vertices: [] + indices: + edges: [] + weights: [] + - serializedVersion: 2 + name: Smoke & Fire_9 + rect: + serializedVersion: 2 + x: 16 + y: 16 + width: 16 + height: 16 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + bones: [] + spriteID: 4a69c42f55a3d4644b106f62bffb869f + internalID: 1926582686 + vertices: [] + indices: + edges: [] + weights: [] + - serializedVersion: 2 + name: Smoke & Fire_10 + rect: + serializedVersion: 2 + x: 32 + y: 16 + width: 16 + height: 16 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + bones: [] + spriteID: b16d6b224aa7b489e967568459c0fdd9 + internalID: -1017107272 + vertices: [] + indices: + edges: [] + weights: [] + - serializedVersion: 2 + name: Smoke & Fire_11 + rect: + serializedVersion: 2 + x: 48 + y: 16 + width: 16 + height: 16 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + bones: [] + spriteID: c41fbf0c93eb248f38b9427e76262923 + internalID: 876473693 + vertices: [] + indices: + edges: [] + weights: [] + - serializedVersion: 2 + name: Smoke & Fire_12 + rect: + serializedVersion: 2 + x: 0 + y: 0 + width: 16 + height: 16 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + bones: [] + spriteID: e834c47c7e4fe43b48bb40aa4991746f + internalID: -1439004463 + vertices: [] + indices: + edges: [] + weights: [] + - serializedVersion: 2 + name: Smoke & Fire_13 + rect: + serializedVersion: 2 + x: 16 + y: 0 + width: 16 + height: 16 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + bones: [] + spriteID: 414c1ec2e95ee41c9af828322d3baa84 + internalID: -8292755 + vertices: [] + indices: + edges: [] + weights: [] + - serializedVersion: 2 + name: Smoke & Fire_14 + rect: + serializedVersion: 2 + x: 32 + y: 0 + width: 16 + height: 16 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + bones: [] + spriteID: 2d970f108b8d2415fa34fd779962fac2 + internalID: 1906196376 + vertices: [] + indices: + edges: [] + weights: [] + - serializedVersion: 2 + name: Smoke & Fire_15 + rect: + serializedVersion: 2 + x: 48 + y: 0 + width: 16 + height: 16 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + bones: [] + spriteID: 8f4452365c7ed4d17a6d5e2438577d49 + internalID: -974297211 + vertices: [] + indices: + edges: [] + weights: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: 5e97eb03825dee720800000000000000 + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: + Smoke & Fire_0: 206937997 + Smoke & Fire_1: 276900702 + Smoke & Fire_10: -1017107272 + Smoke & Fire_11: 876473693 + Smoke & Fire_12: -1439004463 + Smoke & Fire_13: -8292755 + Smoke & Fire_14: 1906196376 + Smoke & Fire_15: -974297211 + Smoke & Fire_2: 757912125 + Smoke & Fire_3: -1984119684 + Smoke & Fire_4: 2060949245 + Smoke & Fire_5: -935418220 + Smoke & Fire_6: -1664640138 + Smoke & Fire_7: 273046767 + Smoke & Fire_8: 18386231 + Smoke & Fire_9: 1926582686 + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: