diff --git a/Assets/Scenes/Main Menu.unity b/Assets/Scenes/Main Menu.unity index 4745bc2..25ff9f7 100644 --- a/Assets/Scenes/Main Menu.unity +++ b/Assets/Scenes/Main Menu.unity @@ -121,6 +121,512 @@ NavMeshSettings: debug: m_Flags: 0 m_NavMeshData: {fileID: 0} +--- !u!1 &766953237 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 766953239} + - component: {fileID: 766953238} + - component: {fileID: 766953240} + m_Layer: 0 + m_Name: Play + m_TagString: Play + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!212 &766953238 +SpriteRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 766953237} + m_Enabled: 1 + m_CastShadows: 0 + m_ReceiveShadows: 0 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 0 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 0 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: -1476903531 + m_SortingLayer: 3 + m_SortingOrder: 0 + m_Sprite: {fileID: 21300000, guid: 895e667ac74cd2746b3c463cf55ee3e7, type: 3} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_FlipX: 0 + m_FlipY: 0 + m_DrawMode: 0 + m_Size: {x: 7, y: 5} + m_AdaptiveModeThreshold: 0.5 + m_SpriteTileMode: 0 + m_WasSpriteAssigned: 1 + m_MaskInteraction: 0 + m_SpriteSortPoint: 0 +--- !u!4 &766953239 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 766953237} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: -0.5, z: 0} + m_LocalScale: {x: 0.5, y: 0.5, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 4 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!60 &766953240 +PolygonCollider2D: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 766953237} + m_Enabled: 1 + m_Density: 1 + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_UsedByEffector: 0 + m_UsedByComposite: 0 + m_Offset: {x: 0, y: 0} + m_SpriteTilingProperty: + border: {x: 0, y: 0, z: 0, w: 0} + pivot: {x: 0.5, y: 0.5} + oldSize: {x: 7, y: 5} + newSize: {x: 7, y: 5} + adaptiveTilingThreshold: 0.5 + drawMode: 0 + adaptiveTiling: 0 + m_AutoTiling: 0 + m_Points: + m_Paths: + - - {x: 0.83, y: -2.1499999} + - {x: 0.89, y: -2.1299999} + - {x: 1.25, y: -2.03} + - {x: 1.52, y: -1.92} + - {x: 1.5999999, y: -1.89} + - {x: 1.6899999, y: -1.8399999} + - {x: 1.8199999, y: -1.77} + - {x: 1.9599999, y: -1.67} + - {x: 2.26, y: -1.4699999} + - {x: 2.3899999, y: -1.38} + - {x: 2.58, y: -1.15} + - {x: 2.59, y: -1.12} + - {x: 2.9299998, y: -0.77} + - {x: 3.09, y: -0.58} + - {x: 3.1899998, y: -0.45} + - {x: 3.24, y: -0.35999998} + - {x: 3.33, y: -0.13} + - {x: 3.3799999, y: 0.06} + - {x: 3.3799999, y: 0.29} + - {x: 3.37, y: 0.37} + - {x: 3.32, y: 0.53999996} + - {x: 3.27, y: 0.66999996} + - {x: 3.12, y: 0.93} + - {x: 2.97, y: 1.15} + - {x: 2.76, y: 1.36} + - {x: 2.6399999, y: 1.4399999} + - {x: 2.4199998, y: 1.54} + - {x: 2.24, y: 1.62} + - {x: 1.9699999, y: 1.7199999} + - {x: 1.87, y: 1.75} + - {x: 1.74, y: 1.81} + - {x: 1.65, y: 1.8399999} + - {x: 1.49, y: 1.9} + - {x: 1.36, y: 1.9699999} + - {x: 1.23, y: 1.9799999} + - {x: 1.05, y: 2.05} + - {x: 0.90999997, y: 2.1} + - {x: 0.53999996, y: 2.22} + - {x: 0.37, y: 2.26} + - {x: 0.089999996, y: 2.27} + - {x: -0.099999994, y: 2.28} + - {x: -0.35999998, y: 2.28} + - {x: -0.47, y: 2.26} + - {x: -0.78, y: 2.24} + - {x: -0.96, y: 2.2} + - {x: -1.14, y: 2.1299999} + - {x: -1.4399999, y: 2.01} + - {x: -1.56, y: 1.9599999} + - {x: -1.86, y: 1.8} + - {x: -1.92, y: 1.79} + - {x: -2.21, y: 1.62} + - {x: -2.28, y: 1.5699999} + - {x: -2.45, y: 1.42} + - {x: -2.61, y: 1.27} + - {x: -2.78, y: 1.03} + - {x: -2.87, y: 0.91999996} + - {x: -3.07, y: 0.63} + - {x: -3.1899998, y: 0.42999998} + - {x: -3.24, y: 0.25} + - {x: -3.24, y: -0.31} + - {x: -3.22, y: -0.38} + - {x: -3.12, y: -0.62} + - {x: -3.04, y: -0.71999997} + - {x: -2.9099998, y: -0.83} + - {x: -2.6599998, y: -1.0799999} + - {x: -2.6499999, y: -1.11} + - {x: -2.55, y: -1.1999999} + - {x: -2.2, y: -1.55} + - {x: -2.01, y: -1.6999999} + - {x: -1.93, y: -1.74} + - {x: -1.75, y: -1.8499999} + - {x: -1.54, y: -1.9399999} + - {x: -1.36, y: -2.01} + - {x: -1.18, y: -2.09} + - {x: -0.89, y: -2.2} + - {x: -0.77, y: -2.22} + - {x: -0.64, y: -2.26} + - {x: -0.51, y: -2.31} + - {x: -0.42999998, y: -2.33} + - {x: -0.04, y: -2.33} + - {x: -0.04, y: -2.34} + - {x: 0.14999999, y: -2.34} + - {x: 0.29, y: -2.3} + - {x: 0.39, y: -2.27} +--- !u!1 &1099144212 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1099144213} + - component: {fileID: 1099144214} + m_Layer: 0 + m_Name: GM + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &1099144213 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1099144212} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!114 &1099144214 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1099144212} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 78647751f60f07d4390eae758b1fe05f, type: 3} + m_Name: + m_EditorClassIdentifier: +--- !u!1 &1209427871 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1209427873} + - component: {fileID: 1209427872} + - component: {fileID: 1209427874} + m_Layer: 0 + m_Name: Quit + m_TagString: Quit + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!212 &1209427872 +SpriteRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1209427871} + m_Enabled: 1 + m_CastShadows: 0 + m_ReceiveShadows: 0 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 0 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 0 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: -1476903531 + m_SortingLayer: 3 + m_SortingOrder: 0 + m_Sprite: {fileID: 21300000, guid: 7c2b87d93de2cc447bcdc1b0f557fb6d, type: 3} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_FlipX: 0 + m_FlipY: 0 + m_DrawMode: 0 + m_Size: {x: 7, y: 5} + m_AdaptiveModeThreshold: 0.5 + m_SpriteTileMode: 0 + m_WasSpriteAssigned: 1 + m_MaskInteraction: 0 + m_SpriteSortPoint: 0 +--- !u!4 &1209427873 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1209427871} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: -3.5, z: 0} + m_LocalScale: {x: 0.5, y: 0.5, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 5 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!60 &1209427874 +PolygonCollider2D: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1209427871} + m_Enabled: 1 + m_Density: 1 + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_UsedByEffector: 0 + m_UsedByComposite: 0 + m_Offset: {x: 0, y: 0} + m_SpriteTilingProperty: + border: {x: 0, y: 0, z: 0, w: 0} + pivot: {x: 0.5, y: 0.5} + oldSize: {x: 7, y: 5} + newSize: {x: 7, y: 5} + adaptiveTilingThreshold: 0.5 + drawMode: 0 + adaptiveTiling: 0 + m_AutoTiling: 0 + m_Points: + m_Paths: + - - {x: 0.83, y: -2.1499999} + - {x: 0.89, y: -2.1299999} + - {x: 1.25, y: -2.03} + - {x: 1.52, y: -1.92} + - {x: 1.5999999, y: -1.89} + - {x: 1.6899999, y: -1.8399999} + - {x: 1.8199999, y: -1.77} + - {x: 1.9599999, y: -1.67} + - {x: 2.26, y: -1.4699999} + - {x: 2.3899999, y: -1.38} + - {x: 2.58, y: -1.15} + - {x: 2.59, y: -1.12} + - {x: 2.9299998, y: -0.77} + - {x: 3.09, y: -0.58} + - {x: 3.1899998, y: -0.45} + - {x: 3.24, y: -0.35999998} + - {x: 3.33, y: -0.13} + - {x: 3.3799999, y: 0.06} + - {x: 3.3799999, y: 0.29} + - {x: 3.37, y: 0.37} + - {x: 3.32, y: 0.53999996} + - {x: 3.27, y: 0.66999996} + - {x: 3.12, y: 0.93} + - {x: 2.97, y: 1.15} + - {x: 2.76, y: 1.36} + - {x: 2.6399999, y: 1.4399999} + - {x: 2.4199998, y: 1.54} + - {x: 2.24, y: 1.62} + - {x: 1.9699999, y: 1.7199999} + - {x: 1.87, y: 1.75} + - {x: 1.74, y: 1.81} + - {x: 1.65, y: 1.8399999} + - {x: 1.49, y: 1.9} + - {x: 1.36, y: 1.9699999} + - {x: 1.23, y: 1.9799999} + - {x: 1.05, y: 2.05} + - {x: 0.90999997, y: 2.1} + - {x: 0.53999996, y: 2.22} + - {x: 0.37, y: 2.26} + - {x: 0.089999996, y: 2.27} + - {x: -0.099999994, y: 2.28} + - {x: -0.35999998, y: 2.28} + - {x: -0.47, y: 2.26} + - {x: -0.78, y: 2.24} + - {x: -0.96, y: 2.2} + - {x: -1.14, y: 2.1299999} + - {x: -1.4399999, y: 2.01} + - {x: -1.56, y: 1.9599999} + - {x: -1.86, y: 1.8} + - {x: -1.92, y: 1.79} + - {x: -2.21, y: 1.62} + - {x: -2.28, y: 1.5699999} + - {x: -2.45, y: 1.42} + - {x: -2.61, y: 1.27} + - {x: -2.78, y: 1.03} + - {x: -2.87, y: 0.91999996} + - {x: -3.07, y: 0.63} + - {x: -3.1899998, y: 0.42999998} + - {x: -3.24, y: 0.25} + - {x: -3.24, y: -0.31} + - {x: -3.22, y: -0.38} + - {x: -3.12, y: -0.62} + - {x: -3.04, y: -0.71999997} + - {x: -2.9099998, y: -0.83} + - {x: -2.6599998, y: -1.0799999} + - {x: -2.6499999, y: -1.11} + - {x: -2.55, y: -1.1999999} + - {x: -2.2, y: -1.55} + - {x: -2.01, y: -1.6999999} + - {x: -1.93, y: -1.74} + - {x: -1.75, y: -1.8499999} + - {x: -1.54, y: -1.9399999} + - {x: -1.36, y: -2.01} + - {x: -1.18, y: -2.09} + - {x: -0.89, y: -2.2} + - {x: -0.77, y: -2.22} + - {x: -0.64, y: -2.26} + - {x: -0.51, y: -2.31} + - {x: -0.42999998, y: -2.33} + - {x: -0.04, y: -2.33} + - {x: -0.04, y: -2.34} + - {x: 0.14999999, y: -2.34} + - {x: 0.29, y: -2.3} + - {x: 0.39, y: -2.27} +--- !u!1 &1577586508 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1577586510} + - component: {fileID: 1577586509} + m_Layer: 0 + m_Name: Title + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!212 &1577586509 +SpriteRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1577586508} + m_Enabled: 1 + m_CastShadows: 0 + m_ReceiveShadows: 0 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 0 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 0 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: -1476903531 + m_SortingLayer: 3 + m_SortingOrder: 0 + m_Sprite: {fileID: 21300000, guid: 7f803e7f5f4e998449d3aaeffde94c46, type: 3} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_FlipX: 0 + m_FlipY: 0 + m_DrawMode: 0 + m_Size: {x: 10, y: 5} + m_AdaptiveModeThreshold: 0.5 + m_SpriteTileMode: 0 + m_WasSpriteAssigned: 1 + m_MaskInteraction: 0 + m_SpriteSortPoint: 0 +--- !u!4 &1577586510 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1577586508} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 3, z: 0} + m_LocalScale: {x: 0.75, y: 0.75, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 3 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &1586993311 GameObject: m_ObjectHideFlags: 0 @@ -202,5 +708,86 @@ Transform: m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 0} - m_RootOrder: 0 + m_RootOrder: 1 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &2075906768 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 2075906770} + - component: {fileID: 2075906769} + m_Layer: 0 + m_Name: Background + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!212 &2075906769 +SpriteRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2075906768} + m_Enabled: 1 + m_CastShadows: 0 + m_ReceiveShadows: 0 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 0 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 0 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 415482139 + m_SortingLayer: 1 + m_SortingOrder: 0 + m_Sprite: {fileID: 21300000, guid: bfc9f4b1e0c202248ba0581c605d4b87, type: 3} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_FlipX: 0 + m_FlipY: 0 + m_DrawMode: 0 + m_Size: {x: 1.28, y: 1.28} + m_AdaptiveModeThreshold: 0.5 + m_SpriteTileMode: 0 + m_WasSpriteAssigned: 1 + m_MaskInteraction: 0 + m_SpriteSortPoint: 0 +--- !u!4 &2075906770 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2075906768} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 14, y: 8, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 2 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} diff --git a/Assets/Scripts/MenuScript.cs b/Assets/Scripts/MenuScript.cs new file mode 100644 index 0000000..1e7392a --- /dev/null +++ b/Assets/Scripts/MenuScript.cs @@ -0,0 +1,33 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; +using UnityEngine.SceneManagement; + +public class MenuScript : MonoBehaviour +{ + + void Update(){ + + Vector3 mousePos = Camera.main.ScreenToWorldPoint(Input.mousePosition); + Vector2 mousePos2D = new Vector2(mousePos.x, mousePos.y); + + RaycastHit2D hit = Physics2D.Raycast(mousePos2D, Vector2.zero); + + if(Input.GetMouseButtonDown(0)){ + + + if(hit.collider.gameObject.tag == "Play") + { + + SceneManager.LoadScene("Game"); + + } else if(hit.collider.gameObject.tag == "Quit") + { + + Application.Quit(); + } + + } + + } +} diff --git a/Assets/Scripts/MenuScript.cs.meta b/Assets/Scripts/MenuScript.cs.meta new file mode 100644 index 0000000..bbfd9c2 --- /dev/null +++ b/Assets/Scripts/MenuScript.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 78647751f60f07d4390eae758b1fe05f +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Sprites/DraftButtonTemplate.xcf b/Assets/Sprites/DraftButtonTemplate.xcf new file mode 100644 index 0000000..e7bb0ce Binary files /dev/null and b/Assets/Sprites/DraftButtonTemplate.xcf differ diff --git a/Assets/Sprites/DraftButtonTemplate.xcf.meta b/Assets/Sprites/DraftButtonTemplate.xcf.meta new file mode 100644 index 0000000..0151a4f --- /dev/null +++ b/Assets/Sprites/DraftButtonTemplate.xcf.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 868eb5286b954dd44ab31efb60be13eb +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Sprites/DraftPlayButton.png b/Assets/Sprites/DraftPlayButton.png new file mode 100644 index 0000000..11b7c4a Binary files /dev/null and b/Assets/Sprites/DraftPlayButton.png differ diff --git a/Assets/Sprites/DraftPlayButton.png.meta b/Assets/Sprites/DraftPlayButton.png.meta new file mode 100644 index 0000000..9717e38 --- /dev/null +++ b/Assets/Sprites/DraftPlayButton.png.meta @@ -0,0 +1,92 @@ +fileFormatVersion: 2 +guid: 895e667ac74cd2746b3c463cf55ee3e7 +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/DraftPlayButton.xcf b/Assets/Sprites/DraftPlayButton.xcf new file mode 100644 index 0000000..53ecac2 Binary files /dev/null and b/Assets/Sprites/DraftPlayButton.xcf differ diff --git a/Assets/Sprites/DraftPlayButton.xcf.meta b/Assets/Sprites/DraftPlayButton.xcf.meta new file mode 100644 index 0000000..0e287f9 --- /dev/null +++ b/Assets/Sprites/DraftPlayButton.xcf.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 0ff7ed024eb34ec4d9d4d420187ba716 +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Sprites/DraftQuitButton.png b/Assets/Sprites/DraftQuitButton.png new file mode 100644 index 0000000..ae752e8 Binary files /dev/null and b/Assets/Sprites/DraftQuitButton.png differ diff --git a/Assets/Sprites/DraftQuitButton.png.meta b/Assets/Sprites/DraftQuitButton.png.meta new file mode 100644 index 0000000..7f50397 --- /dev/null +++ b/Assets/Sprites/DraftQuitButton.png.meta @@ -0,0 +1,92 @@ +fileFormatVersion: 2 +guid: 7c2b87d93de2cc447bcdc1b0f557fb6d +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/DraftQuitButton.xcf b/Assets/Sprites/DraftQuitButton.xcf new file mode 100644 index 0000000..d36cb57 Binary files /dev/null and b/Assets/Sprites/DraftQuitButton.xcf differ diff --git a/Assets/Sprites/DraftQuitButton.xcf.meta b/Assets/Sprites/DraftQuitButton.xcf.meta new file mode 100644 index 0000000..c28d978 --- /dev/null +++ b/Assets/Sprites/DraftQuitButton.xcf.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 83153362d08f5da479b4b31b0731ece7 +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Sprites/DraftTitle.png b/Assets/Sprites/DraftTitle.png new file mode 100644 index 0000000..2a6dc30 Binary files /dev/null and b/Assets/Sprites/DraftTitle.png differ diff --git a/Assets/Sprites/DraftTitle.png.meta b/Assets/Sprites/DraftTitle.png.meta new file mode 100644 index 0000000..112c6c7 --- /dev/null +++ b/Assets/Sprites/DraftTitle.png.meta @@ -0,0 +1,92 @@ +fileFormatVersion: 2 +guid: 7f803e7f5f4e998449d3aaeffde94c46 +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/DraftTitle.xcf b/Assets/Sprites/DraftTitle.xcf new file mode 100644 index 0000000..e4c1eb5 Binary files /dev/null and b/Assets/Sprites/DraftTitle.xcf differ diff --git a/Assets/Sprites/DraftTitle.xcf.meta b/Assets/Sprites/DraftTitle.xcf.meta new file mode 100644 index 0000000..0079b7a --- /dev/null +++ b/Assets/Sprites/DraftTitle.xcf.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 68a33090ea4cbce47812f0193d06783b +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/ProjectSettings/EditorBuildSettings.asset b/ProjectSettings/EditorBuildSettings.asset index e1255ac..16d2f79 100644 --- a/ProjectSettings/EditorBuildSettings.asset +++ b/ProjectSettings/EditorBuildSettings.asset @@ -6,6 +6,9 @@ EditorBuildSettings: serializedVersion: 2 m_Scenes: - enabled: 1 - path: Assets/Scenes/Scene.unity + path: Assets/Scenes/Main Menu.unity + guid: 38cf4406c892aa14081a6e10f16a0bd0 + - enabled: 1 + path: Assets/Scenes/Game.unity guid: 2cda990e2423bbf4892e6590ba056729 m_configObjects: {} diff --git a/ProjectSettings/TagManager.asset b/ProjectSettings/TagManager.asset index 5aae24a..a989cb3 100644 --- a/ProjectSettings/TagManager.asset +++ b/ProjectSettings/TagManager.asset @@ -8,6 +8,8 @@ TagManager: - Enemy - Obstacle - Life + - Play + - Quit layers: - Default - TransparentFX