diff --git a/Assets/Prefabs/Bullet.prefab b/Assets/Prefabs/Bullet.prefab index 66fa4b8..b03201b 100644 --- a/Assets/Prefabs/Bullet.prefab +++ b/Assets/Prefabs/Bullet.prefab @@ -11,7 +11,7 @@ GameObject: - component: {fileID: 6732034634797273311} - component: {fileID: 6732034634797273296} - component: {fileID: 6732034634797273309} - - component: {fileID: 354341600462715469} + - component: {fileID: 1694297142030813896} - component: {fileID: 6732034634797273310} m_Layer: 0 m_Name: Bullet @@ -73,7 +73,7 @@ SpriteRenderer: m_SortingLayerID: -886689981 m_SortingLayer: 2 m_SortingOrder: 0 - m_Sprite: {fileID: 21300000, guid: e01bcb0a723af7946bde78f4a1d7ca06, type: 3} + m_Sprite: {fileID: 21300000, guid: 2baaaf5e8b6a1454d8cf4632ac791a22, type: 3} m_Color: {r: 1, g: 1, b: 1, a: 1} m_FlipX: 0 m_FlipY: 0 @@ -105,8 +105,8 @@ Rigidbody2D: m_SleepingMode: 1 m_CollisionDetection: 0 m_Constraints: 0 ---- !u!61 &354341600462715469 -BoxCollider2D: +--- !u!60 &1694297142030813896 +PolygonCollider2D: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} @@ -128,9 +128,13 @@ BoxCollider2D: drawMode: 0 adaptiveTiling: 0 m_AutoTiling: 0 - serializedVersion: 2 - m_Size: {x: 0.32, y: 0.64} - m_EdgeRadius: 0 + m_Points: + m_Paths: + - - {x: -0.099999994, y: 0.32} + - {x: -0.16, y: 0.25} + - {x: -0.16, y: -0.31} + - {x: 0.16, y: -0.31} + - {x: 0.16, y: 0.32} --- !u!114 &6732034634797273310 MonoBehaviour: m_ObjectHideFlags: 0 diff --git a/Assets/Scenes/Game.unity b/Assets/Scenes/Game.unity index 3abc2a1..0f206c9 100644 --- a/Assets/Scenes/Game.unity +++ b/Assets/Scenes/Game.unity @@ -1881,8 +1881,8 @@ Rigidbody2D: m_SleepingMode: 1 m_CollisionDetection: 0 m_Constraints: 4 ---- !u!61 &1990476334 -BoxCollider2D: +--- !u!60 &1990476334 +PolygonCollider2D: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} @@ -1904,9 +1904,34 @@ BoxCollider2D: drawMode: 0 adaptiveTiling: 0 m_AutoTiling: 0 - serializedVersion: 2 - m_Size: {x: 1.28, y: 1.28} - m_EdgeRadius: 0 + m_Points: + m_Paths: + - - {x: 0.51, y: -0.31} + - {x: 0.58, y: -0.26} + - {x: 0.58, y: -0.02} + - {x: 0.57, y: 0.13} + - {x: 0.41, y: 0.25} + - {x: 0.37, y: 0.38} + - {x: 0.38, y: 0.53} + - {x: 0.34, y: 0.61} + - {x: 0.22, y: 0.64} + - {x: -0.21, y: 0.64} + - {x: -0.32999998, y: 0.53} + - {x: -0.37, y: 0.39999998} + - {x: -0.35, y: 0.32} + - {x: -0.41, y: 0.24} + - {x: -0.51, y: 0.19} + - {x: -0.55, y: 0.07} + - {x: -0.55, y: -0.19} + - {x: -0.53, y: -0.32} + - {x: -0.48999998, y: -0.39} + - {x: -0.29, y: -0.38} + - {x: -0.35999998, y: -0.56} + - {x: -0.34, y: -0.64} + - {x: 0.39, y: -0.64} + - {x: 0.44, y: -0.62} + - {x: 0.39999998, y: -0.47} + - {x: 0.35999998, y: -0.31} --- !u!82 &1990476335 AudioSource: m_ObjectHideFlags: 0 diff --git a/Assets/Sprites/Bullet.png b/Assets/Sprites/Bullet.png new file mode 100644 index 0000000..749e5bc Binary files /dev/null and b/Assets/Sprites/Bullet.png differ diff --git a/Assets/Sprites/Bullet.png.meta b/Assets/Sprites/Bullet.png.meta new file mode 100644 index 0000000..9b482bb --- /dev/null +++ b/Assets/Sprites/Bullet.png.meta @@ -0,0 +1,92 @@ +fileFormatVersion: 2 +guid: 2baaaf5e8b6a1454d8cf4632ac791a22 +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 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: -1 + aniso: -1 + mipBias: -100 + 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 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 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/Bullet.xcf b/Assets/Sprites/Bullet.xcf new file mode 100644 index 0000000..9203ae2 Binary files /dev/null and b/Assets/Sprites/Bullet.xcf differ diff --git a/Assets/Sprites/Bullet.xcf.meta b/Assets/Sprites/Bullet.xcf.meta new file mode 100644 index 0000000..24a730c --- /dev/null +++ b/Assets/Sprites/Bullet.xcf.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 336135a4d79295a4985dcf48b0eaa48a +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: