From 7dfc3b5cea2470a0487b64d9c5653c293691c2e8 Mon Sep 17 00:00:00 2001 From: jreason Date: Sun, 30 Jan 2022 17:37:03 +1100 Subject: [PATCH] Working on Monster --- .../Textures/Chars/Monster Remake.meta | 8 + .../Chars/Monster Remake/Monster_Remake 0.png | 3 + .../Monster Remake/Monster_Remake 0.png.meta | 156 ++++++++++++++++++ .../Chars/Monster Remake/Monster_Remake 1.png | 3 + .../Monster Remake/Monster_Remake 1.png.meta | 156 ++++++++++++++++++ .../Chars/Monster Remake/Monster_Remake 2.png | 3 + .../Monster Remake/Monster_Remake 2.png.meta | 156 ++++++++++++++++++ .../Chars/Monster Remake/Monster_Remake 3.png | 3 + .../Monster Remake/Monster_Remake 3.png.meta | 156 ++++++++++++++++++ Assets/Scenes/Official Levels/Level 4.unity | 3 + .../Scenes/Official Levels/Level 4.unity.meta | 7 + Assets/Scripts/MonsterController.cs | 83 ++++++++++ Assets/Scripts/MonsterController.cs.meta | 11 ++ 13 files changed, 748 insertions(+) create mode 100644 Assets/Art Assets/Textures/Chars/Monster Remake.meta create mode 100644 Assets/Art Assets/Textures/Chars/Monster Remake/Monster_Remake 0.png create mode 100644 Assets/Art Assets/Textures/Chars/Monster Remake/Monster_Remake 0.png.meta create mode 100644 Assets/Art Assets/Textures/Chars/Monster Remake/Monster_Remake 1.png create mode 100644 Assets/Art Assets/Textures/Chars/Monster Remake/Monster_Remake 1.png.meta create mode 100644 Assets/Art Assets/Textures/Chars/Monster Remake/Monster_Remake 2.png create mode 100644 Assets/Art Assets/Textures/Chars/Monster Remake/Monster_Remake 2.png.meta create mode 100644 Assets/Art Assets/Textures/Chars/Monster Remake/Monster_Remake 3.png create mode 100644 Assets/Art Assets/Textures/Chars/Monster Remake/Monster_Remake 3.png.meta create mode 100644 Assets/Scenes/Official Levels/Level 4.unity create mode 100644 Assets/Scenes/Official Levels/Level 4.unity.meta create mode 100644 Assets/Scripts/MonsterController.cs create mode 100644 Assets/Scripts/MonsterController.cs.meta diff --git a/Assets/Art Assets/Textures/Chars/Monster Remake.meta b/Assets/Art Assets/Textures/Chars/Monster Remake.meta new file mode 100644 index 0000000..866e1e3 --- /dev/null +++ b/Assets/Art Assets/Textures/Chars/Monster Remake.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 010ded6895c289944a73e95fde0c545b +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Art Assets/Textures/Chars/Monster Remake/Monster_Remake 0.png b/Assets/Art Assets/Textures/Chars/Monster Remake/Monster_Remake 0.png new file mode 100644 index 0000000..250290b --- /dev/null +++ b/Assets/Art Assets/Textures/Chars/Monster Remake/Monster_Remake 0.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7c60374ad027b377054455d24e1679e073abb20d4dfa574d023da5bdfabb76d2 +size 2557 diff --git a/Assets/Art Assets/Textures/Chars/Monster Remake/Monster_Remake 0.png.meta b/Assets/Art Assets/Textures/Chars/Monster Remake/Monster_Remake 0.png.meta new file mode 100644 index 0000000..7873bc5 --- /dev/null +++ b/Assets/Art Assets/Textures/Chars/Monster Remake/Monster_Remake 0.png.meta @@ -0,0 +1,156 @@ +fileFormatVersion: 2 +guid: 130f12623017bbf4fb1671a98ef0a6fd +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: 0 + aniso: 2 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 1 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 16 + 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: 8192 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 8192 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: iPhone + maxTextureSize: 8192 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Android + maxTextureSize: 8192 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Windows Store Apps + maxTextureSize: 8192 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 8192 + 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/Art Assets/Textures/Chars/Monster Remake/Monster_Remake 1.png b/Assets/Art Assets/Textures/Chars/Monster Remake/Monster_Remake 1.png new file mode 100644 index 0000000..6ae6679 --- /dev/null +++ b/Assets/Art Assets/Textures/Chars/Monster Remake/Monster_Remake 1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cc2ba59bc37d543026384a29894dc2c1a333a41ffcff519f6c9e25d4bb400cec +size 2683 diff --git a/Assets/Art Assets/Textures/Chars/Monster Remake/Monster_Remake 1.png.meta b/Assets/Art Assets/Textures/Chars/Monster Remake/Monster_Remake 1.png.meta new file mode 100644 index 0000000..dc6e1b0 --- /dev/null +++ b/Assets/Art Assets/Textures/Chars/Monster Remake/Monster_Remake 1.png.meta @@ -0,0 +1,156 @@ +fileFormatVersion: 2 +guid: 2bc2f8ee841e5de4da71e60120431b9a +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: 0 + aniso: 2 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 1 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 16 + 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: 8192 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 8192 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: iPhone + maxTextureSize: 8192 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Android + maxTextureSize: 8192 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Windows Store Apps + maxTextureSize: 8192 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 8192 + 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/Art Assets/Textures/Chars/Monster Remake/Monster_Remake 2.png b/Assets/Art Assets/Textures/Chars/Monster Remake/Monster_Remake 2.png new file mode 100644 index 0000000..07d0f45 --- /dev/null +++ b/Assets/Art Assets/Textures/Chars/Monster Remake/Monster_Remake 2.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:13df1a08889861cc429eb395ef67000248dfd4e6384b19b488a3139f8cc92fe4 +size 2654 diff --git a/Assets/Art Assets/Textures/Chars/Monster Remake/Monster_Remake 2.png.meta b/Assets/Art Assets/Textures/Chars/Monster Remake/Monster_Remake 2.png.meta new file mode 100644 index 0000000..5e56dd4 --- /dev/null +++ b/Assets/Art Assets/Textures/Chars/Monster Remake/Monster_Remake 2.png.meta @@ -0,0 +1,156 @@ +fileFormatVersion: 2 +guid: a538dfd0f5b55c9449be0623784c16b0 +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: 0 + aniso: 2 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 1 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 16 + 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: 8192 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 8192 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: iPhone + maxTextureSize: 8192 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Android + maxTextureSize: 8192 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Windows Store Apps + maxTextureSize: 8192 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 8192 + 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/Art Assets/Textures/Chars/Monster Remake/Monster_Remake 3.png b/Assets/Art Assets/Textures/Chars/Monster Remake/Monster_Remake 3.png new file mode 100644 index 0000000..13628a0 --- /dev/null +++ b/Assets/Art Assets/Textures/Chars/Monster Remake/Monster_Remake 3.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7ca20e1aedf7b435216c8e37e54aecf6c615faa10b103663e8a8759735540dc4 +size 2642 diff --git a/Assets/Art Assets/Textures/Chars/Monster Remake/Monster_Remake 3.png.meta b/Assets/Art Assets/Textures/Chars/Monster Remake/Monster_Remake 3.png.meta new file mode 100644 index 0000000..6f71d86 --- /dev/null +++ b/Assets/Art Assets/Textures/Chars/Monster Remake/Monster_Remake 3.png.meta @@ -0,0 +1,156 @@ +fileFormatVersion: 2 +guid: 6d5d89360c13cea4d9fc20087ad6125c +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: 0 + aniso: 2 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 0 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 1 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 16 + 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: 8192 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 8192 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: iPhone + maxTextureSize: 8192 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Android + maxTextureSize: 8192 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Windows Store Apps + maxTextureSize: 8192 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 8192 + 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/Scenes/Official Levels/Level 4.unity b/Assets/Scenes/Official Levels/Level 4.unity new file mode 100644 index 0000000..41f089c --- /dev/null +++ b/Assets/Scenes/Official Levels/Level 4.unity @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:837e565ff815c564412634b95f7fdf51450bcfbfdbacd0e561e091b2093c72ad +size 62885 diff --git a/Assets/Scenes/Official Levels/Level 4.unity.meta b/Assets/Scenes/Official Levels/Level 4.unity.meta new file mode 100644 index 0000000..84f27a1 --- /dev/null +++ b/Assets/Scenes/Official Levels/Level 4.unity.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 3d23f763dd82096498d6ed83a3795bc9 +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/MonsterController.cs b/Assets/Scripts/MonsterController.cs new file mode 100644 index 0000000..3afb748 --- /dev/null +++ b/Assets/Scripts/MonsterController.cs @@ -0,0 +1,83 @@ +using System.Collections; +using System.Collections.Generic; +using System.Linq; +using UnityEngine; +using Variables; + +public class MonsterController : MonoBehaviour, IResettable +{ + + [SerializeField, Header("References")] + Reference m_light; + + [SerializeField] + private GameObject[] m_possibleFrames; + + + [SerializeField] + private Transform m_player; + + + [SerializeField] + public GameObject m_defaultObject; + + private void OnEnable() + { + m_light.OnValueChanged += OnLightChange; + } + + private void OnDisable() + { + m_light.OnValueChanged -= OnLightChange; + } + + private void Start() + { + foreach (Transform child in transform) + { + if (child.gameObject.activeInHierarchy) + m_defaultObject = child.gameObject; + } + } + + + + private void ChangeRandomMonster() + { + GameObject[] inactiveFrames = m_possibleFrames.Where(p => !p.activeInHierarchy).ToArray(); + GameObject nextFrame = inactiveFrames[Random.Range(0, inactiveFrames.Length)]; + + foreach(Transform child in transform) + { + child.gameObject.SetActive(child.gameObject == nextFrame); + } + } + + + private void OnLightChange(float value) + { + if (value <= 0) + { + ChangeRandomMonster(); + } + + } + + public void OnLevelLoad() + { + + } + + public IEnumerator OnResetStart(float time) + { + yield break; + } + + public void OnResetEnd() + { + foreach (Transform child in transform) + { + child.gameObject.SetActive(child.gameObject == m_defaultObject); + } + } +} diff --git a/Assets/Scripts/MonsterController.cs.meta b/Assets/Scripts/MonsterController.cs.meta new file mode 100644 index 0000000..9e6ed33 --- /dev/null +++ b/Assets/Scripts/MonsterController.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 9afc5ecba9d138349baa937b1623eee3 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: