From 1ff4b9cd0554bd612b4ad63b6399d372199c8df5 Mon Sep 17 00:00:00 2001 From: Kaj Forney Date: Thu, 14 Oct 2021 13:35:35 -0600 Subject: [PATCH] Add proper side-facing sprite. --- Assets/Scripts/Movement2D.cs | 4 +- Assets/Sprites/robotReference.png | Bin 0 -> 747 bytes Assets/Sprites/robotReference.png.meta | 96 ++++++++++++++++++ Assets/Sprites/robotSide.png | Bin 0 -> 482 bytes Assets/Sprites/robotSide.png.meta | 132 +++++++++++++++++++++++++ 5 files changed, 230 insertions(+), 2 deletions(-) create mode 100644 Assets/Sprites/robotReference.png create mode 100644 Assets/Sprites/robotReference.png.meta create mode 100644 Assets/Sprites/robotSide.png create mode 100644 Assets/Sprites/robotSide.png.meta diff --git a/Assets/Scripts/Movement2D.cs b/Assets/Scripts/Movement2D.cs index f34b2ba..0d32c7f 100644 --- a/Assets/Scripts/Movement2D.cs +++ b/Assets/Scripts/Movement2D.cs @@ -21,11 +21,11 @@ public class Movement2D : MonoBehaviour if (Input.GetAxis("platformerHorizontal") > 0) { - sprite.flipX = true; + sprite.flipX = false; } else if (Input.GetAxis("platformerHorizontal") < 0) { - sprite.flipX = false; + sprite.flipX = true; } } diff --git a/Assets/Sprites/robotReference.png b/Assets/Sprites/robotReference.png new file mode 100644 index 0000000000000000000000000000000000000000..07d3f739f34b2669eb526c0d6e9c5a49987c2411 GIT binary patch literal 747 zcmeAS@N?(olHy`uVBq!ia0vp^Gk`dNgBeI(TJCcSNHG=%xjQkeJ16rJ$gv6V32_C| zaNrjhHmRrc%(MRo^^NMJ<^Hw%mS_mh@AXIw)8Sd<&EzFj{{O$@qGw9B9+FCC3`~k= zUH;z$Y8EL8@(X78j|p}?OkT;rz+~&`;uw&ZrWnmH)YTLwtw@<|MHWh z8nZ*rh9R>Ytmo7fHoq)>%-=;wQCuN5|(yp@#STDwbvH+8D&;=Pkxx6hvN zb*gvPwc0)TN#$4Gyiqls{mHAdapv5;?}9c5C+KdHmbxi$Bi8dw_48FTy^Jjy>lPjs{%IYJ(!i8)$*jv24;LG!` z^YXvHg&arbESeGBX(?hh`=EDZ#N!~Vkeo!e#bG)!W*66N5X#ljUZZ`MPdn^|s@uv< zZ@MhA_@mb>-uxtX;Yp?E*%N=*JpM6dTW5{O`$?%R$4^ynJ)<)>#{9Fh$z-M47UwH?Ao0Vgw4bRy zJ+Gp^O+6yCc+28z*Ye{ZzTDNL-|QXW@zQ-##+!vEtNG$?uGz;Z7&|w>idTH`>l@BY zhT&$i;b$+%ou2=GU8iMXQtX+aq{TCIHhR})B<(&vZ}r{e^IX@48TbLUf&esYGqqEBWK* z!@G_%X@x~B>}>3870&iqv;Sv~ZG_{6YTy zPEOR4)>)lo%ym3-Q{Vd3z4JxuZ?2bnpDybyCb3^l``Y;s1Fxy3m)C44dwXl^Yxyhs XQ-3)0y^6124@#w;u6{1-oD!M<%_vz$ literal 0 HcmV?d00001 diff --git a/Assets/Sprites/robotReference.png.meta b/Assets/Sprites/robotReference.png.meta new file mode 100644 index 0000000..5fef0b4 --- /dev/null +++ b/Assets/Sprites/robotReference.png.meta @@ -0,0 +1,96 @@ +fileFormatVersion: 2 +guid: 1751a2074168bc77daa8e1eceb1ae138 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 11 + 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 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 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: 1 + 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 + 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 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: 5e97eb03825dee720800000000000000 + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Sprites/robotSide.png b/Assets/Sprites/robotSide.png new file mode 100644 index 0000000000000000000000000000000000000000..67d328d74697adb7fbbb50cad0e43887e0206281 GIT binary patch literal 482 zcmeAS@N?(olHy`uVBq!ia0vp^K0qA6!3-o@Vv~OYDaPU;cPEB*=VV?2IW_@4A+A6g z4*UYcCiQfldG`OHzEPdD+`o3;5)Hxmy&j2SIy{TKnY^UR|NnPf^i0XtLsH3%fl2YK z%m14|%_1d1e!&d?F~P2f$t!_&ns~Z6hD5Z!y>_s#*?@;7z$N!;b@b=|^0!%3CrpZY zCAo5Ci>Aj%X-}6w|2aq0SUG8x`8QRc`)!$tx2|3)J*vC8>#zG(y>LIVv)5Qw zU%XbZ<+6~b)Eu4YP-er+cfF#l=5W3CGfwN(ceo&RS1K^8;_@-m+(okNM^ZjspAxV! zj`?2YUbV#4*I5pV?c_;{H9h0CS(Z6C#b-+%%bN`!j)ko0IdoGf;aTQ4ciGFA?q9W; z{{Hta#>}6L9y6*BF1UB%db;DyfG9>3Q*>$hwJXIb$|1+ zzjn8G&18P9*-*`+KI@Eow19Nf$7}y~aRxK