diff options
Diffstat (limited to 'nGJ2019')
-rw-r--r-- | nGJ2019/Assets/Objects/obstacle_rock_bottom.FBX | bin | 93392 -> 0 bytes | |||
-rw-r--r-- | nGJ2019/Assets/Objects/obstacle_rock_bottom.FBX.meta | 94 | ||||
-rw-r--r-- | nGJ2019/Assets/Objects/obstacle_rock_bottom_1.FBX | bin | 331840 -> 0 bytes | |||
-rw-r--r-- | nGJ2019/Assets/Objects/obstacle_rock_bottom_1.FBX.meta | 94 | ||||
-rw-r--r-- | nGJ2019/Assets/Objects/obstacle_rock_top.FBX | bin | 138640 -> 0 bytes | |||
-rw-r--r-- | nGJ2019/Assets/Objects/obstacle_rock_top.FBX.meta | 94 | ||||
-rw-r--r-- | nGJ2019/Assets/Scenes/Mian_sandbox.unity | 355 | ||||
-rw-r--r-- | nGJ2019/Assets/Scripts.meta | 2 | ||||
-rw-r--r-- | nGJ2019/Assets/Scripts/LevelScrolling.cs | 66 | ||||
-rw-r--r-- | nGJ2019/Assets/Sprites.meta (renamed from nGJ2019/Assets/Objects.meta) | 2 | ||||
-rw-r--r-- | nGJ2019/Assets/Sprites/bg.png | bin | 0 -> 529233 bytes | |||
-rw-r--r-- | nGJ2019/Assets/Sprites/bg.png.meta (renamed from nGJ2019/Assets/bg.png.meta) | 4 | ||||
-rw-r--r-- | nGJ2019/Assets/Sprites/longcat.png | bin | 0 -> 202556 bytes | |||
-rw-r--r-- | nGJ2019/Assets/Sprites/longcat.png.meta | 90 | ||||
-rw-r--r-- | nGJ2019/Assets/bg.png | bin | 481897 -> 0 bytes |
15 files changed, 160 insertions, 641 deletions
diff --git a/nGJ2019/Assets/Objects/obstacle_rock_bottom.FBX b/nGJ2019/Assets/Objects/obstacle_rock_bottom.FBX Binary files differdeleted file mode 100644 index 7b49e0d..0000000 --- a/nGJ2019/Assets/Objects/obstacle_rock_bottom.FBX +++ /dev/null diff --git a/nGJ2019/Assets/Objects/obstacle_rock_bottom.FBX.meta b/nGJ2019/Assets/Objects/obstacle_rock_bottom.FBX.meta deleted file mode 100644 index 3b277da..0000000 --- a/nGJ2019/Assets/Objects/obstacle_rock_bottom.FBX.meta +++ /dev/null @@ -1,94 +0,0 @@ -fileFormatVersion: 2 -guid: 699efb5396883984c9644ac6abf6fcb1 -ModelImporter: - serializedVersion: 25 - internalIDToNameTable: [] - externalObjects: {} - materials: - importMaterials: 1 - materialName: 0 - materialSearch: 1 - materialLocation: 1 - animations: - legacyGenerateAnimations: 4 - bakeSimulation: 0 - resampleCurves: 1 - optimizeGameObjects: 0 - motionNodeName: - rigImportErrors: - rigImportWarnings: - animationImportErrors: - animationImportWarnings: - animationRetargetingWarnings: - animationDoRetargetingWarnings: 0 - importAnimatedCustomProperties: 0 - importConstraints: 0 - animationCompression: 1 - animationRotationError: 0.5 - animationPositionError: 0.5 - animationScaleError: 0.5 - animationWrapMode: 0 - extraExposedTransformPaths: [] - extraUserProperties: [] - clipAnimations: [] - isReadable: 0 - meshes: - lODScreenPercentages: [] - globalScale: 1 - meshCompression: 0 - addColliders: 0 - useSRGBMaterialColor: 1 - importVisibility: 1 - importBlendShapes: 1 - importCameras: 1 - importLights: 1 - swapUVChannels: 0 - generateSecondaryUV: 0 - useFileUnits: 1 - keepQuads: 0 - weldVertices: 1 - preserveHierarchy: 0 - skinWeightsMode: 0 - maxBonesPerVertex: 4 - minBoneWeight: 0.001 - meshOptimizationFlags: -1 - indexFormat: 0 - secondaryUVAngleDistortion: 8 - secondaryUVAreaDistortion: 15.000001 - secondaryUVHardAngle: 88 - secondaryUVPackMargin: 4 - useFileScale: 1 - tangentSpace: - normalSmoothAngle: 60 - normalImportMode: 0 - tangentImportMode: 3 - normalCalculationMode: 4 - legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0 - blendShapeNormalImportMode: 1 - normalSmoothingSource: 0 - referencedClips: [] - importAnimation: 1 - copyAvatar: 0 - humanDescription: - serializedVersion: 3 - human: [] - skeleton: [] - armTwist: 0.5 - foreArmTwist: 0.5 - upperLegTwist: 0.5 - legTwist: 0.5 - armStretch: 0.05 - legStretch: 0.05 - feetSpacing: 0 - globalScale: 1 - rootMotionBoneName: - hasTranslationDoF: 0 - hasExtraRoot: 0 - skeletonHasParents: 1 - lastHumanDescriptionAvatarSource: {instanceID: 0} - animationType: 0 - humanoidOversampling: 1 - additionalBone: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/nGJ2019/Assets/Objects/obstacle_rock_bottom_1.FBX b/nGJ2019/Assets/Objects/obstacle_rock_bottom_1.FBX Binary files differdeleted file mode 100644 index ffdfd34..0000000 --- a/nGJ2019/Assets/Objects/obstacle_rock_bottom_1.FBX +++ /dev/null diff --git a/nGJ2019/Assets/Objects/obstacle_rock_bottom_1.FBX.meta b/nGJ2019/Assets/Objects/obstacle_rock_bottom_1.FBX.meta deleted file mode 100644 index a430457..0000000 --- a/nGJ2019/Assets/Objects/obstacle_rock_bottom_1.FBX.meta +++ /dev/null @@ -1,94 +0,0 @@ -fileFormatVersion: 2 -guid: fbb1d264bae087340a30a49b9b9e0148 -ModelImporter: - serializedVersion: 25 - internalIDToNameTable: [] - externalObjects: {} - materials: - importMaterials: 1 - materialName: 0 - materialSearch: 1 - materialLocation: 1 - animations: - legacyGenerateAnimations: 4 - bakeSimulation: 0 - resampleCurves: 1 - optimizeGameObjects: 0 - motionNodeName: - rigImportErrors: - rigImportWarnings: - animationImportErrors: - animationImportWarnings: - animationRetargetingWarnings: - animationDoRetargetingWarnings: 0 - importAnimatedCustomProperties: 0 - importConstraints: 0 - animationCompression: 1 - animationRotationError: 0.5 - animationPositionError: 0.5 - animationScaleError: 0.5 - animationWrapMode: 0 - extraExposedTransformPaths: [] - extraUserProperties: [] - clipAnimations: [] - isReadable: 0 - meshes: - lODScreenPercentages: [] - globalScale: 1 - meshCompression: 0 - addColliders: 0 - useSRGBMaterialColor: 1 - importVisibility: 1 - importBlendShapes: 1 - importCameras: 1 - importLights: 1 - swapUVChannels: 0 - generateSecondaryUV: 0 - useFileUnits: 1 - keepQuads: 0 - weldVertices: 1 - preserveHierarchy: 0 - skinWeightsMode: 0 - maxBonesPerVertex: 4 - minBoneWeight: 0.001 - meshOptimizationFlags: -1 - indexFormat: 0 - secondaryUVAngleDistortion: 8 - secondaryUVAreaDistortion: 15.000001 - secondaryUVHardAngle: 88 - secondaryUVPackMargin: 4 - useFileScale: 1 - tangentSpace: - normalSmoothAngle: 60 - normalImportMode: 0 - tangentImportMode: 3 - normalCalculationMode: 4 - legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0 - blendShapeNormalImportMode: 1 - normalSmoothingSource: 0 - referencedClips: [] - importAnimation: 1 - copyAvatar: 0 - humanDescription: - serializedVersion: 3 - human: [] - skeleton: [] - armTwist: 0.5 - foreArmTwist: 0.5 - upperLegTwist: 0.5 - legTwist: 0.5 - armStretch: 0.05 - legStretch: 0.05 - feetSpacing: 0 - globalScale: 1 - rootMotionBoneName: - hasTranslationDoF: 0 - hasExtraRoot: 0 - skeletonHasParents: 1 - lastHumanDescriptionAvatarSource: {instanceID: 0} - animationType: 0 - humanoidOversampling: 1 - additionalBone: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/nGJ2019/Assets/Objects/obstacle_rock_top.FBX b/nGJ2019/Assets/Objects/obstacle_rock_top.FBX Binary files differdeleted file mode 100644 index 2d5b650..0000000 --- a/nGJ2019/Assets/Objects/obstacle_rock_top.FBX +++ /dev/null diff --git a/nGJ2019/Assets/Objects/obstacle_rock_top.FBX.meta b/nGJ2019/Assets/Objects/obstacle_rock_top.FBX.meta deleted file mode 100644 index b525b43..0000000 --- a/nGJ2019/Assets/Objects/obstacle_rock_top.FBX.meta +++ /dev/null @@ -1,94 +0,0 @@ -fileFormatVersion: 2 -guid: 416fae093739c55499f7dcb7d4f7f2c9 -ModelImporter: - serializedVersion: 25 - internalIDToNameTable: [] - externalObjects: {} - materials: - importMaterials: 1 - materialName: 0 - materialSearch: 1 - materialLocation: 1 - animations: - legacyGenerateAnimations: 4 - bakeSimulation: 0 - resampleCurves: 1 - optimizeGameObjects: 0 - motionNodeName: - rigImportErrors: - rigImportWarnings: - animationImportErrors: - animationImportWarnings: - animationRetargetingWarnings: - animationDoRetargetingWarnings: 0 - importAnimatedCustomProperties: 0 - importConstraints: 0 - animationCompression: 1 - animationRotationError: 0.5 - animationPositionError: 0.5 - animationScaleError: 0.5 - animationWrapMode: 0 - extraExposedTransformPaths: [] - extraUserProperties: [] - clipAnimations: [] - isReadable: 0 - meshes: - lODScreenPercentages: [] - globalScale: 1 - meshCompression: 0 - addColliders: 0 - useSRGBMaterialColor: 1 - importVisibility: 1 - importBlendShapes: 1 - importCameras: 1 - importLights: 1 - swapUVChannels: 0 - generateSecondaryUV: 0 - useFileUnits: 1 - keepQuads: 0 - weldVertices: 1 - preserveHierarchy: 0 - skinWeightsMode: 0 - maxBonesPerVertex: 4 - minBoneWeight: 0.001 - meshOptimizationFlags: -1 - indexFormat: 0 - secondaryUVAngleDistortion: 8 - secondaryUVAreaDistortion: 15.000001 - secondaryUVHardAngle: 88 - secondaryUVPackMargin: 4 - useFileScale: 1 - tangentSpace: - normalSmoothAngle: 60 - normalImportMode: 0 - tangentImportMode: 3 - normalCalculationMode: 4 - legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0 - blendShapeNormalImportMode: 1 - normalSmoothingSource: 0 - referencedClips: [] - importAnimation: 1 - copyAvatar: 0 - humanDescription: - serializedVersion: 3 - human: [] - skeleton: [] - armTwist: 0.5 - foreArmTwist: 0.5 - upperLegTwist: 0.5 - legTwist: 0.5 - armStretch: 0.05 - legStretch: 0.05 - feetSpacing: 0 - globalScale: 1 - rootMotionBoneName: - hasTranslationDoF: 0 - hasExtraRoot: 0 - skeletonHasParents: 1 - lastHumanDescriptionAvatarSource: {instanceID: 0} - animationType: 0 - humanoidOversampling: 1 - additionalBone: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/nGJ2019/Assets/Scenes/Mian_sandbox.unity b/nGJ2019/Assets/Scenes/Mian_sandbox.unity index b63a25d..6bfd3e3 100644 --- a/nGJ2019/Assets/Scenes/Mian_sandbox.unity +++ b/nGJ2019/Assets/Scenes/Mian_sandbox.unity @@ -120,213 +120,6 @@ NavMeshSettings: debug: m_Flags: 0 m_NavMeshData: {fileID: 0} ---- !u!1001 &24479753 -PrefabInstance: - m_ObjectHideFlags: 0 - serializedVersion: 2 - m_Modification: - m_TransformParent: {fileID: 0} - m_Modifications: - - target: {fileID: -927199367670048503, guid: fbb1d264bae087340a30a49b9b9e0148, - type: 3} - propertyPath: m_Name - value: obstacle_rock_bottom_1 - objectReference: {fileID: 0} - - target: {fileID: -4216859302048453862, guid: fbb1d264bae087340a30a49b9b9e0148, - type: 3} - propertyPath: m_LocalPosition.x - value: 1.1761003 - objectReference: {fileID: 0} - - target: {fileID: -4216859302048453862, guid: fbb1d264bae087340a30a49b9b9e0148, - type: 3} - propertyPath: m_LocalPosition.y - value: -0.5994234 - objectReference: {fileID: 0} - - target: {fileID: -4216859302048453862, guid: fbb1d264bae087340a30a49b9b9e0148, - type: 3} - propertyPath: m_LocalPosition.z - value: 0 - objectReference: {fileID: 0} - - target: {fileID: -4216859302048453862, guid: fbb1d264bae087340a30a49b9b9e0148, - type: 3} - propertyPath: m_LocalRotation.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: -4216859302048453862, guid: fbb1d264bae087340a30a49b9b9e0148, - type: 3} - propertyPath: m_LocalRotation.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: -4216859302048453862, guid: fbb1d264bae087340a30a49b9b9e0148, - type: 3} - propertyPath: m_LocalRotation.z - value: 0 - objectReference: {fileID: 0} - - target: {fileID: -4216859302048453862, guid: fbb1d264bae087340a30a49b9b9e0148, - type: 3} - propertyPath: m_LocalRotation.w - value: 1 - objectReference: {fileID: 0} - - target: {fileID: -4216859302048453862, guid: fbb1d264bae087340a30a49b9b9e0148, - type: 3} - propertyPath: m_RootOrder - value: 1 - objectReference: {fileID: 0} - - target: {fileID: -4216859302048453862, guid: fbb1d264bae087340a30a49b9b9e0148, - type: 3} - propertyPath: m_LocalEulerAnglesHint.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: -4216859302048453862, guid: fbb1d264bae087340a30a49b9b9e0148, - type: 3} - propertyPath: m_LocalEulerAnglesHint.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: -4216859302048453862, guid: fbb1d264bae087340a30a49b9b9e0148, - type: 3} - propertyPath: m_LocalEulerAnglesHint.z - value: 0 - objectReference: {fileID: 0} - m_RemovedComponents: [] - m_SourcePrefab: {fileID: 100100000, guid: fbb1d264bae087340a30a49b9b9e0148, type: 3} ---- !u!1001 &248066052 -PrefabInstance: - m_ObjectHideFlags: 0 - serializedVersion: 2 - m_Modification: - m_TransformParent: {fileID: 0} - m_Modifications: - - target: {fileID: -927199367670048503, guid: 416fae093739c55499f7dcb7d4f7f2c9, - type: 3} - propertyPath: m_Name - value: obstacle_rock_top (1) - objectReference: {fileID: 0} - - target: {fileID: -4216859302048453862, guid: 416fae093739c55499f7dcb7d4f7f2c9, - type: 3} - propertyPath: m_LocalPosition.x - value: 8.09 - objectReference: {fileID: 0} - - target: {fileID: -4216859302048453862, guid: 416fae093739c55499f7dcb7d4f7f2c9, - type: 3} - propertyPath: m_LocalPosition.y - value: 2.63 - objectReference: {fileID: 0} - - target: {fileID: -4216859302048453862, guid: 416fae093739c55499f7dcb7d4f7f2c9, - type: 3} - propertyPath: m_LocalPosition.z - value: 0 - objectReference: {fileID: 0} - - target: {fileID: -4216859302048453862, guid: 416fae093739c55499f7dcb7d4f7f2c9, - type: 3} - propertyPath: m_LocalRotation.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: -4216859302048453862, guid: 416fae093739c55499f7dcb7d4f7f2c9, - type: 3} - propertyPath: m_LocalRotation.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: -4216859302048453862, guid: 416fae093739c55499f7dcb7d4f7f2c9, - type: 3} - propertyPath: m_LocalRotation.z - value: 0 - objectReference: {fileID: 0} - - target: {fileID: -4216859302048453862, guid: 416fae093739c55499f7dcb7d4f7f2c9, - type: 3} - propertyPath: m_LocalRotation.w - value: 1 - objectReference: {fileID: 0} - - target: {fileID: -4216859302048453862, guid: 416fae093739c55499f7dcb7d4f7f2c9, - type: 3} - propertyPath: m_RootOrder - value: 3 - objectReference: {fileID: 0} - - target: {fileID: -4216859302048453862, guid: 416fae093739c55499f7dcb7d4f7f2c9, - type: 3} - propertyPath: m_LocalEulerAnglesHint.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: -4216859302048453862, guid: 416fae093739c55499f7dcb7d4f7f2c9, - type: 3} - propertyPath: m_LocalEulerAnglesHint.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: -4216859302048453862, guid: 416fae093739c55499f7dcb7d4f7f2c9, - type: 3} - propertyPath: m_LocalEulerAnglesHint.z - value: 0 - objectReference: {fileID: 0} - m_RemovedComponents: [] - m_SourcePrefab: {fileID: 100100000, guid: 416fae093739c55499f7dcb7d4f7f2c9, type: 3} ---- !u!1001 &694316132 -PrefabInstance: - m_ObjectHideFlags: 0 - serializedVersion: 2 - m_Modification: - m_TransformParent: {fileID: 0} - m_Modifications: - - target: {fileID: -927199367670048503, guid: fbb1d264bae087340a30a49b9b9e0148, - type: 3} - propertyPath: m_Name - value: obstacle_rock_bottom_1 (1) - objectReference: {fileID: 0} - - target: {fileID: -4216859302048453862, guid: fbb1d264bae087340a30a49b9b9e0148, - type: 3} - propertyPath: m_LocalPosition.x - value: 7.44 - objectReference: {fileID: 0} - - target: {fileID: -4216859302048453862, guid: fbb1d264bae087340a30a49b9b9e0148, - type: 3} - propertyPath: m_LocalPosition.y - value: -0.5994234 - objectReference: {fileID: 0} - - target: {fileID: -4216859302048453862, guid: fbb1d264bae087340a30a49b9b9e0148, - type: 3} - propertyPath: m_LocalPosition.z - value: 0 - objectReference: {fileID: 0} - - target: {fileID: -4216859302048453862, guid: fbb1d264bae087340a30a49b9b9e0148, - type: 3} - propertyPath: m_LocalRotation.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: -4216859302048453862, guid: fbb1d264bae087340a30a49b9b9e0148, - type: 3} - propertyPath: m_LocalRotation.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: -4216859302048453862, guid: fbb1d264bae087340a30a49b9b9e0148, - type: 3} - propertyPath: m_LocalRotation.z - value: 0 - objectReference: {fileID: 0} - - target: {fileID: -4216859302048453862, guid: fbb1d264bae087340a30a49b9b9e0148, - type: 3} - propertyPath: m_LocalRotation.w - value: 1 - objectReference: {fileID: 0} - - target: {fileID: -4216859302048453862, guid: fbb1d264bae087340a30a49b9b9e0148, - type: 3} - propertyPath: m_RootOrder - value: 4 - objectReference: {fileID: 0} - - target: {fileID: -4216859302048453862, guid: fbb1d264bae087340a30a49b9b9e0148, - type: 3} - propertyPath: m_LocalEulerAnglesHint.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: -4216859302048453862, guid: fbb1d264bae087340a30a49b9b9e0148, - type: 3} - propertyPath: m_LocalEulerAnglesHint.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: -4216859302048453862, guid: fbb1d264bae087340a30a49b9b9e0148, - type: 3} - propertyPath: m_LocalEulerAnglesHint.z - value: 0 - objectReference: {fileID: 0} - m_RemovedComponents: [] - m_SourcePrefab: {fileID: 100100000, guid: fbb1d264bae087340a30a49b9b9e0148, type: 3} --- !u!1 &1126295692 GameObject: m_ObjectHideFlags: 0 @@ -410,151 +203,3 @@ Transform: m_Father: {fileID: 0} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &1636020288 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1636020290} - - component: {fileID: 1636020289} - m_Layer: 0 - m_Name: bg - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!212 &1636020289 -SpriteRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1636020288} - m_Enabled: 1 - m_CastShadows: 0 - m_ReceiveShadows: 0 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - 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_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: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 - m_Sprite: {fileID: 21300000, guid: 8fc39e202cac76141b2f4a287299720b, 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.24, y: 5.76} - m_AdaptiveModeThreshold: 0.5 - m_SpriteTileMode: 0 - m_WasSpriteAssigned: 1 - m_MaskInteraction: 0 - m_SpriteSortPoint: 0 ---- !u!4 &1636020290 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1636020288} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: -0, y: 0, z: 0} - m_LocalScale: {x: 2.19, y: 1.73, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 5 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1001 &2114980576 -PrefabInstance: - m_ObjectHideFlags: 0 - serializedVersion: 2 - m_Modification: - m_TransformParent: {fileID: 0} - m_Modifications: - - target: {fileID: -927199367670048503, guid: 416fae093739c55499f7dcb7d4f7f2c9, - type: 3} - propertyPath: m_Name - value: obstacle_rock_top - objectReference: {fileID: 0} - - target: {fileID: -4216859302048453862, guid: 416fae093739c55499f7dcb7d4f7f2c9, - type: 3} - propertyPath: m_LocalPosition.x - value: 1.8305432 - objectReference: {fileID: 0} - - target: {fileID: -4216859302048453862, guid: 416fae093739c55499f7dcb7d4f7f2c9, - type: 3} - propertyPath: m_LocalPosition.y - value: 2.63 - objectReference: {fileID: 0} - - target: {fileID: -4216859302048453862, guid: 416fae093739c55499f7dcb7d4f7f2c9, - type: 3} - propertyPath: m_LocalPosition.z - value: 0 - objectReference: {fileID: 0} - - target: {fileID: -4216859302048453862, guid: 416fae093739c55499f7dcb7d4f7f2c9, - type: 3} - propertyPath: m_LocalRotation.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: -4216859302048453862, guid: 416fae093739c55499f7dcb7d4f7f2c9, - type: 3} - propertyPath: m_LocalRotation.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: -4216859302048453862, guid: 416fae093739c55499f7dcb7d4f7f2c9, - type: 3} - propertyPath: m_LocalRotation.z - value: 0 - objectReference: {fileID: 0} - - target: {fileID: -4216859302048453862, guid: 416fae093739c55499f7dcb7d4f7f2c9, - type: 3} - propertyPath: m_LocalRotation.w - value: 1 - objectReference: {fileID: 0} - - target: {fileID: -4216859302048453862, guid: 416fae093739c55499f7dcb7d4f7f2c9, - type: 3} - propertyPath: m_RootOrder - value: 2 - objectReference: {fileID: 0} - - target: {fileID: -4216859302048453862, guid: 416fae093739c55499f7dcb7d4f7f2c9, - type: 3} - propertyPath: m_LocalEulerAnglesHint.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: -4216859302048453862, guid: 416fae093739c55499f7dcb7d4f7f2c9, - type: 3} - propertyPath: m_LocalEulerAnglesHint.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: -4216859302048453862, guid: 416fae093739c55499f7dcb7d4f7f2c9, - type: 3} - propertyPath: m_LocalEulerAnglesHint.z - value: 0 - objectReference: {fileID: 0} - m_RemovedComponents: [] - m_SourcePrefab: {fileID: 100100000, guid: 416fae093739c55499f7dcb7d4f7f2c9, type: 3} diff --git a/nGJ2019/Assets/Scripts.meta b/nGJ2019/Assets/Scripts.meta index 5ac3458..8ce1629 100644 --- a/nGJ2019/Assets/Scripts.meta +++ b/nGJ2019/Assets/Scripts.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: baf343a080adc974cbb42bcb419256cc +guid: d40e59778bbb441d29ef2b013583c511 folderAsset: yes DefaultImporter: externalObjects: {} diff --git a/nGJ2019/Assets/Scripts/LevelScrolling.cs b/nGJ2019/Assets/Scripts/LevelScrolling.cs new file mode 100644 index 0000000..dd413f8 --- /dev/null +++ b/nGJ2019/Assets/Scripts/LevelScrolling.cs @@ -0,0 +1,66 @@ +using System.Collections;
+using System.Collections.Generic;
+using UnityEngine;
+
+public class LevelScrolling : MonoBehaviour
+{
+ public int updateRate = 1;
+ public Transform longcat;
+ public Transform background;
+
+ private Vector3 initialBgPos;
+ private float[] backgroundSize;
+
+ // Start is called before the first frame update
+ void Start()
+ {
+ ResizeBackground();
+ }
+
+ // Update is called once per frame
+ void Update()
+ {
+
+ }
+
+ void FixedUpdate()
+ {
+ MoveBackground();
+ MoveLongcat();
+ }
+
+ private void ResizeBackground()
+ {
+ var sr = background.GetComponent<SpriteRenderer>();
+ if (sr == null) return;
+
+ background.localScale = new Vector3(1, 1, 1);
+
+ var width = sr.sprite.bounds.size.x;
+ var height = sr.sprite.bounds.size.y;
+
+ var worldScreenHeight = Camera.main.orthographicSize * 2.0;
+ var worldScreenWidth = worldScreenHeight / Screen.height * Screen.width;
+
+ var finalHeight = (float)(worldScreenHeight / height);
+ var finalWidth = (float)(worldScreenWidth / width);
+
+ background.localScale = new Vector3(finalHeight, finalHeight, 1);
+
+ var viewportX = Camera.main.ViewportToWorldPoint(new Vector3(0, 1, 0)).x;
+ background.position = new Vector3(viewportX * -1, 0, 0);
+ initialBgPos = background.position;
+ }
+
+ private void MoveLongcat()
+ {
+ longcat.Translate(new Vector2(0.1f * updateRate, 0));
+ }
+
+ private void MoveBackground()
+ {
+ if (background.position.x > -initialBgPos.x)
+ background.Translate(new Vector2(0.1f * updateRate, 0));
+ else background.position = initialBgPos;
+ }
+}
diff --git a/nGJ2019/Assets/Objects.meta b/nGJ2019/Assets/Sprites.meta index e104d55..49c60d8 100644 --- a/nGJ2019/Assets/Objects.meta +++ b/nGJ2019/Assets/Sprites.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 3280d2f64fd176a43a3eb5e7fd796a99 +guid: c601bba674d654ddbb9a933a31821269 folderAsset: yes DefaultImporter: externalObjects: {} diff --git a/nGJ2019/Assets/Sprites/bg.png b/nGJ2019/Assets/Sprites/bg.png Binary files differnew file mode 100644 index 0000000..2205025 --- /dev/null +++ b/nGJ2019/Assets/Sprites/bg.png diff --git a/nGJ2019/Assets/bg.png.meta b/nGJ2019/Assets/Sprites/bg.png.meta index c2ce719..9263b00 100644 --- a/nGJ2019/Assets/bg.png.meta +++ b/nGJ2019/Assets/Sprites/bg.png.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 8fc39e202cac76141b2f4a287299720b +guid: f961209db19f64f58a67ad7f0554c561 TextureImporter: internalIDToNameTable: [] externalObjects: {} @@ -75,7 +75,7 @@ TextureImporter: outline: [] physicsShape: [] bones: [] - spriteID: d340f75181ef1f546861d654640a230d + spriteID: b7532254506b94714a087a332a95f2b3 internalID: 0 vertices: [] indices: diff --git a/nGJ2019/Assets/Sprites/longcat.png b/nGJ2019/Assets/Sprites/longcat.png Binary files differnew file mode 100644 index 0000000..e688f50 --- /dev/null +++ b/nGJ2019/Assets/Sprites/longcat.png diff --git a/nGJ2019/Assets/Sprites/longcat.png.meta b/nGJ2019/Assets/Sprites/longcat.png.meta new file mode 100644 index 0000000..9beb047 --- /dev/null +++ b/nGJ2019/Assets/Sprites/longcat.png.meta @@ -0,0 +1,90 @@ +fileFormatVersion: 2 +guid: f0c6b650c6eb34367a41045093051665 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 10 + 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 + platformSettings: + - serializedVersion: 2 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: b040b8360c8964439871fd5251c4bd74 + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/nGJ2019/Assets/bg.png b/nGJ2019/Assets/bg.png Binary files differdeleted file mode 100644 index 6493e7b..0000000 --- a/nGJ2019/Assets/bg.png +++ /dev/null |