diff --git a/Assets/Pics_Materials/Mape_1test.psd b/Assets/Pics_Materials/Mape_1test.psd new file mode 100644 index 0000000..158325b Binary files /dev/null and b/Assets/Pics_Materials/Mape_1test.psd differ diff --git a/Assets/Pics_Materials/Mape_1test.psd.meta b/Assets/Pics_Materials/Mape_1test.psd.meta new file mode 100644 index 0000000..ca46d11 --- /dev/null +++ b/Assets/Pics_Materials/Mape_1test.psd.meta @@ -0,0 +1,117 @@ +fileFormatVersion: 2 +guid: e80b4a87182284848b2ae78a963dc5fc +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 13 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 0 + 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: 1 + 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: 1 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + 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: 0 + spriteTessellationDetail: -1 + textureType: 0 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 4 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 4 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + customData: + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spriteCustomMetadata: + entries: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scenes/Test_Scene.unity b/Assets/Scenes/Test_Scene.unity index 6bb129a..8a6db9d 100644 --- a/Assets/Scenes/Test_Scene.unity +++ b/Assets/Scenes/Test_Scene.unity @@ -461,7 +461,7 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 079eca2fab980b94ea6d88afb4570141, type: 3} m_Name: m_EditorClassIdentifier: Assembly-CSharp::Map_Generator - tex: {fileID: 0} + tex: {fileID: 2800000, guid: e80b4a87182284848b2ae78a963dc5fc, type: 3} width: 0 heigt: 0 pixelFarbe: [] @@ -475,7 +475,7 @@ Transform: m_GameObject: {fileID: 1741774807} serializedVersion: 2 m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: -135.44905, y: -0, z: -130.99353} + m_LocalPosition: {x: 0, y: -0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] diff --git a/Assets/Scripts/Map_Generator.cs b/Assets/Scripts/Map_Generator.cs index e95747c..1c4b903 100644 --- a/Assets/Scripts/Map_Generator.cs +++ b/Assets/Scripts/Map_Generator.cs @@ -31,13 +31,15 @@ public class Map_Generator : MonoBehaviour { GameObject block = Instantiate(blockPrefab); block.transform.position = new Vector3(k, 0, i); - block.GetComponent().material.color = Random.ColorHSV(); + block.GetComponent().material.color = Color.black; } + } } } void Update() { + } -} \ No newline at end of file +} diff --git a/Assets/Scripts/PlayerController.cs b/Assets/Scripts/PlayerController.cs index 395770b..996afae 100644 --- a/Assets/Scripts/PlayerController.cs +++ b/Assets/Scripts/PlayerController.cs @@ -5,19 +5,23 @@ using UnityEngine.UI; public class PlayerController : MonoBehaviour { private int speed; - Vector3 position = Vector3.zero; + private Vector3 position = Vector3.zero; private Text score; private int points; - Rigidbody rb; + private Rigidbody rb; // Start is called once before the first execution of Update after the MonoBehaviour is created void Start() { - rb = GetComponent; + rb = GetComponent(); } // Update is called once per frame void Update() { + position = Vector3.zero; + if (Input.GetKey(KeyCode.W)) + { + } } }