diff --git a/Assets/Resources.meta b/Assets/Resources.meta new file mode 100644 index 0000000..71876df --- /dev/null +++ b/Assets/Resources.meta @@ -0,0 +1,10 @@ +fileFormatVersion: 2 +guid: b66ecbf52643f1241a7a5ccf8496b3c1 +folderAsset: yes +timeCreated: 1524350017 +licenseType: Free +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Resources/candy.png b/Assets/Resources/candy.png new file mode 100644 index 0000000..9274906 Binary files /dev/null and b/Assets/Resources/candy.png differ diff --git a/Assets/Resources/candy.png.meta b/Assets/Resources/candy.png.meta new file mode 100644 index 0000000..8a3ce61 --- /dev/null +++ b/Assets/Resources/candy.png.meta @@ -0,0 +1,1198 @@ +fileFormatVersion: 2 +guid: 50ce219ae8c7eb04d9fa5b539144728b +timeCreated: 1524342919 +licenseType: Free +TextureImporter: + fileIDToRecycleName: + 21300000: candy_0 + 21300002: candy_1 + 21300004: candy_2 + 21300006: candy_3 + 21300008: candy_4 + 21300010: candy_5 + 21300012: candy_6 + 21300014: candy_7 + 21300016: candy_8 + 21300018: candy_9 + 21300020: candy_10 + 21300022: candy_11 + 21300024: candy_12 + 21300026: candy_13 + 21300028: candy_14 + 21300030: candy_15 + 21300032: candy_16 + 21300034: candy_17 + 21300036: candy_18 + 21300038: candy_19 + 21300040: candy_20 + 21300042: candy_21 + 21300044: candy_22 + 21300046: candy_23 + 21300048: candy_24 + 21300050: candy_25 + 21300052: candy_26 + 21300054: candy_27 + 21300056: candy_28 + 21300058: candy_29 + 21300060: candy_30 + 21300062: candy_31 + 21300064: candy_32 + 21300066: candy_33 + 21300068: candy_34 + 21300070: candy_35 + 21300072: candy_36 + 21300074: candy_37 + 21300076: candy_38 + 21300078: candy_39 + 21300080: candy_40 + 21300082: candy_41 + 21300084: candy_42 + 21300086: candy_43 + 21300088: candy_44 + 21300090: candy_45 + 21300092: candy_46 + 21300094: candy_47 + 21300096: candy_48 + 21300098: candy_49 + 21300100: candy_50 + 21300102: candy_51 + 21300104: candy_52 + 21300106: candy_53 + 21300108: candy_54 + 21300110: candy_55 + 21300112: candy_56 + 21300114: candy_57 + 21300116: candy_58 + 21300118: candy_59 + 21300120: candy_60 + 21300122: candy_61 + 21300124: candy_62 + 21300126: candy_63 + 21300128: candy_64 + 21300130: candy_65 + 21300132: candy_66 + 21300134: candy_67 + 21300136: candy_68 + 21300138: candy_69 + 21300140: candy_70 + 21300142: candy_71 + externalObjects: {} + serializedVersion: 4 + 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 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 0 + aniso: -1 + mipBias: -1 + wrapU: 1 + wrapV: 1 + wrapW: 1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 2 + spriteExtrude: 1 + spriteMeshType: 0 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 0 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 8 + textureShape: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + platformSettings: + - buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + - buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + - buildTarget: Android + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + - buildTarget: Windows Store Apps + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + - buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + spriteSheet: + serializedVersion: 2 + sprites: + - serializedVersion: 2 + name: candy_0 + rect: + serializedVersion: 2 + x: 0 + y: 256 + width: 32 + height: 32 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + - serializedVersion: 2 + name: candy_1 + rect: + serializedVersion: 2 + x: 32 + y: 256 + width: 32 + height: 32 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + - serializedVersion: 2 + name: candy_2 + rect: + serializedVersion: 2 + x: 64 + y: 256 + width: 32 + height: 32 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + - serializedVersion: 2 + name: candy_3 + rect: + serializedVersion: 2 + x: 96 + y: 256 + width: 32 + height: 32 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + - serializedVersion: 2 + name: candy_4 + rect: + serializedVersion: 2 + x: 128 + y: 256 + width: 32 + height: 32 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + - serializedVersion: 2 + name: candy_5 + rect: + serializedVersion: 2 + x: 160 + y: 256 + width: 32 + height: 32 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + - serializedVersion: 2 + name: candy_6 + rect: + serializedVersion: 2 + x: 192 + y: 256 + width: 32 + height: 32 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + - serializedVersion: 2 + name: candy_7 + rect: + serializedVersion: 2 + x: 224 + y: 256 + width: 32 + height: 32 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + - serializedVersion: 2 + name: candy_8 + rect: + serializedVersion: 2 + x: 0 + y: 224 + width: 32 + height: 32 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + - serializedVersion: 2 + name: candy_9 + rect: + serializedVersion: 2 + x: 32 + y: 224 + width: 32 + height: 32 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + - serializedVersion: 2 + name: candy_10 + rect: + serializedVersion: 2 + x: 64 + y: 224 + width: 32 + height: 32 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + - serializedVersion: 2 + name: candy_11 + rect: + serializedVersion: 2 + x: 96 + y: 224 + width: 32 + height: 32 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + - serializedVersion: 2 + name: candy_12 + rect: + serializedVersion: 2 + x: 128 + y: 224 + width: 32 + height: 32 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + - serializedVersion: 2 + name: candy_13 + rect: + serializedVersion: 2 + x: 160 + y: 224 + width: 32 + height: 32 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + - serializedVersion: 2 + name: candy_14 + rect: + serializedVersion: 2 + x: 192 + y: 224 + width: 32 + height: 32 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + - serializedVersion: 2 + name: candy_15 + rect: + serializedVersion: 2 + x: 224 + y: 224 + width: 32 + height: 32 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + - serializedVersion: 2 + name: candy_16 + rect: + serializedVersion: 2 + x: 0 + y: 192 + width: 32 + height: 32 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + - serializedVersion: 2 + name: candy_17 + rect: + serializedVersion: 2 + x: 32 + y: 192 + width: 32 + height: 32 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + - serializedVersion: 2 + name: candy_18 + rect: + serializedVersion: 2 + x: 64 + y: 192 + width: 32 + height: 32 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + - serializedVersion: 2 + name: candy_19 + rect: + serializedVersion: 2 + x: 96 + y: 192 + width: 32 + height: 32 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + - serializedVersion: 2 + name: candy_20 + rect: + serializedVersion: 2 + x: 128 + y: 192 + width: 32 + height: 32 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + - serializedVersion: 2 + name: candy_21 + rect: + serializedVersion: 2 + x: 160 + y: 192 + width: 32 + height: 32 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + - serializedVersion: 2 + name: candy_22 + rect: + serializedVersion: 2 + x: 192 + y: 192 + width: 32 + height: 32 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + - serializedVersion: 2 + name: candy_23 + rect: + serializedVersion: 2 + x: 224 + y: 192 + width: 32 + height: 32 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + - serializedVersion: 2 + name: candy_24 + rect: + serializedVersion: 2 + x: 0 + y: 160 + width: 32 + height: 32 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + - serializedVersion: 2 + name: candy_25 + rect: + serializedVersion: 2 + x: 32 + y: 160 + width: 32 + height: 32 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + - serializedVersion: 2 + name: candy_26 + rect: + serializedVersion: 2 + x: 64 + y: 160 + width: 32 + height: 32 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + - serializedVersion: 2 + name: candy_27 + rect: + serializedVersion: 2 + x: 96 + y: 160 + width: 32 + height: 32 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + - serializedVersion: 2 + name: candy_28 + rect: + serializedVersion: 2 + x: 128 + y: 160 + width: 32 + height: 32 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + - serializedVersion: 2 + name: candy_29 + rect: + serializedVersion: 2 + x: 160 + y: 160 + width: 32 + height: 32 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + - serializedVersion: 2 + name: candy_30 + rect: + serializedVersion: 2 + x: 192 + y: 160 + width: 32 + height: 32 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + - serializedVersion: 2 + name: candy_31 + rect: + serializedVersion: 2 + x: 224 + y: 160 + width: 32 + height: 32 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + - serializedVersion: 2 + name: candy_32 + rect: + serializedVersion: 2 + x: 0 + y: 128 + width: 32 + height: 32 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + - serializedVersion: 2 + name: candy_33 + rect: + serializedVersion: 2 + x: 32 + y: 128 + width: 32 + height: 32 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + - serializedVersion: 2 + name: candy_34 + rect: + serializedVersion: 2 + x: 64 + y: 128 + width: 32 + height: 32 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + - serializedVersion: 2 + name: candy_35 + rect: + serializedVersion: 2 + x: 96 + y: 128 + width: 32 + height: 32 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + - serializedVersion: 2 + name: candy_36 + rect: + serializedVersion: 2 + x: 128 + y: 128 + width: 32 + height: 32 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + - serializedVersion: 2 + name: candy_37 + rect: + serializedVersion: 2 + x: 160 + y: 128 + width: 32 + height: 32 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + - serializedVersion: 2 + name: candy_38 + rect: + serializedVersion: 2 + x: 192 + y: 128 + width: 32 + height: 32 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + - serializedVersion: 2 + name: candy_39 + rect: + serializedVersion: 2 + x: 224 + y: 128 + width: 32 + height: 32 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + - serializedVersion: 2 + name: candy_40 + rect: + serializedVersion: 2 + x: 0 + y: 96 + width: 32 + height: 32 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + - serializedVersion: 2 + name: candy_41 + rect: + serializedVersion: 2 + x: 32 + y: 96 + width: 32 + height: 32 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + - serializedVersion: 2 + name: candy_42 + rect: + serializedVersion: 2 + x: 64 + y: 96 + width: 32 + height: 32 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + - serializedVersion: 2 + name: candy_43 + rect: + serializedVersion: 2 + x: 96 + y: 96 + width: 32 + height: 32 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + - serializedVersion: 2 + name: candy_44 + rect: + serializedVersion: 2 + x: 128 + y: 96 + width: 32 + height: 32 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + - serializedVersion: 2 + name: candy_45 + rect: + serializedVersion: 2 + x: 160 + y: 96 + width: 32 + height: 32 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + - serializedVersion: 2 + name: candy_46 + rect: + serializedVersion: 2 + x: 192 + y: 96 + width: 32 + height: 32 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + - serializedVersion: 2 + name: candy_47 + rect: + serializedVersion: 2 + x: 224 + y: 96 + width: 32 + height: 32 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + - serializedVersion: 2 + name: candy_48 + rect: + serializedVersion: 2 + x: 0 + y: 64 + width: 32 + height: 32 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + - serializedVersion: 2 + name: candy_49 + rect: + serializedVersion: 2 + x: 32 + y: 64 + width: 32 + height: 32 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + - serializedVersion: 2 + name: candy_50 + rect: + serializedVersion: 2 + x: 64 + y: 64 + width: 32 + height: 32 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + - serializedVersion: 2 + name: candy_51 + rect: + serializedVersion: 2 + x: 96 + y: 64 + width: 32 + height: 32 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + - serializedVersion: 2 + name: candy_52 + rect: + serializedVersion: 2 + x: 128 + y: 64 + width: 32 + height: 32 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + - serializedVersion: 2 + name: candy_53 + rect: + serializedVersion: 2 + x: 160 + y: 64 + width: 32 + height: 32 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + - serializedVersion: 2 + name: candy_54 + rect: + serializedVersion: 2 + x: 192 + y: 64 + width: 32 + height: 32 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + - serializedVersion: 2 + name: candy_55 + rect: + serializedVersion: 2 + x: 224 + y: 64 + width: 32 + height: 32 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + - serializedVersion: 2 + name: candy_56 + rect: + serializedVersion: 2 + x: 0 + y: 32 + width: 32 + height: 32 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + - serializedVersion: 2 + name: candy_57 + rect: + serializedVersion: 2 + x: 32 + y: 32 + width: 32 + height: 32 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + - serializedVersion: 2 + name: candy_58 + rect: + serializedVersion: 2 + x: 64 + y: 32 + width: 32 + height: 32 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + - serializedVersion: 2 + name: candy_59 + rect: + serializedVersion: 2 + x: 96 + y: 32 + width: 32 + height: 32 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + - serializedVersion: 2 + name: candy_60 + rect: + serializedVersion: 2 + x: 128 + y: 32 + width: 32 + height: 32 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + - serializedVersion: 2 + name: candy_61 + rect: + serializedVersion: 2 + x: 160 + y: 32 + width: 32 + height: 32 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + - serializedVersion: 2 + name: candy_62 + rect: + serializedVersion: 2 + x: 192 + y: 32 + width: 32 + height: 32 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + - serializedVersion: 2 + name: candy_63 + rect: + serializedVersion: 2 + x: 224 + y: 32 + width: 32 + height: 32 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + - serializedVersion: 2 + name: candy_64 + rect: + serializedVersion: 2 + x: 0 + y: 0 + width: 32 + height: 32 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + - serializedVersion: 2 + name: candy_65 + rect: + serializedVersion: 2 + x: 32 + y: 0 + width: 32 + height: 32 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + - serializedVersion: 2 + name: candy_66 + rect: + serializedVersion: 2 + x: 64 + y: 0 + width: 32 + height: 32 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + - serializedVersion: 2 + name: candy_67 + rect: + serializedVersion: 2 + x: 96 + y: 0 + width: 32 + height: 32 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + - serializedVersion: 2 + name: candy_68 + rect: + serializedVersion: 2 + x: 128 + y: 0 + width: 32 + height: 32 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + - serializedVersion: 2 + name: candy_69 + rect: + serializedVersion: 2 + x: 160 + y: 0 + width: 32 + height: 32 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + - serializedVersion: 2 + name: candy_70 + rect: + serializedVersion: 2 + x: 192 + y: 0 + width: 32 + height: 32 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + - serializedVersion: 2 + name: candy_71 + rect: + serializedVersion: 2 + x: 224 + y: 0 + width: 32 + height: 32 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + outline: [] + physicsShape: [] + spritePackingTag: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scenes/gameplay.unity b/Assets/Scenes/gameplay.unity index 52541d1..e421efd 100644 --- a/Assets/Scenes/gameplay.unity +++ b/Assets/Scenes/gameplay.unity @@ -5105,13 +5105,6 @@ Tilemap: e31: 0 e32: 0 e33: 1 - m_TileRefreshArray: - - serializedVersion: 1 - m_DirtyIndex: 0 - - serializedVersion: 1 - m_DirtyIndex: 0 - - serializedVersion: 1 - m_DirtyIndex: 0 --- !u!4 &160874133 stripped Transform: m_PrefabParentObject: {fileID: 4564474961553612, guid: c4d410a301c013a468dc133a094e5478, @@ -8769,11 +8762,6 @@ Tilemap: e31: 0 e32: 0 e33: 1 - m_TileRefreshArray: - - serializedVersion: 1 - m_DirtyIndex: 0 - - serializedVersion: 1 - m_DirtyIndex: 0 --- !u!1 &1018239510 GameObject: m_ObjectHideFlags: 0 @@ -10333,10 +10321,11 @@ GameObject: m_Component: - component: {fileID: 1602044334} - component: {fileID: 1602044333} - - component: {fileID: 1602044332} - component: {fileID: 1602044331} - component: {fileID: 1602044330} - component: {fileID: 1602044329} + - component: {fileID: 1602044335} + - component: {fileID: 1602044332} m_Layer: 0 m_Name: Player m_TagString: Untagged @@ -10367,7 +10356,7 @@ BoxCollider2D: m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 0} m_GameObject: {fileID: 1602044328} - m_Enabled: 1 + m_Enabled: 0 m_Density: 1 m_Material: {fileID: 0} m_IsTrigger: 0 @@ -10406,23 +10395,23 @@ Rigidbody2D: m_SleepingMode: 1 m_CollisionDetection: 0 m_Constraints: 4 ---- !u!95 &1602044332 -Animator: - serializedVersion: 3 +--- !u!114 &1602044332 +MonoBehaviour: m_ObjectHideFlags: 0 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 0} m_GameObject: {fileID: 1602044328} m_Enabled: 1 - m_Avatar: {fileID: 0} - m_Controller: {fileID: 9100000, guid: cbc7ce4eb98401f49a1122a3c03e5c92, type: 2} - m_CullingMode: 0 - m_UpdateMode: 0 - m_ApplyRootMotion: 0 - m_LinearVelocityBlending: 0 - m_WarningMessage: - m_HasTransformHierarchy: 1 - m_AllowConstantClipSamplingOptimization: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: a0385578d8e685e40973de0f0d406694, type: 3} + m_Name: + m_EditorClassIdentifier: + dir: 0 + el: 0 + current: 1 + frame: 0 + walkingFrameRate: 0.1 + shootingFrameRate: 0.05 --- !u!212 &1602044333 SpriteRenderer: m_ObjectHideFlags: 0 @@ -10480,6 +10469,21 @@ Transform: m_Father: {fileID: 0} m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!58 &1602044335 +CircleCollider2D: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1602044328} + 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.04} + serializedVersion: 2 + m_Radius: 0.05 --- !u!4 &1607488907 stripped Transform: m_PrefabParentObject: {fileID: 4727204445767746, guid: 05968d49eff9aa04b9087b76d2a70f50, diff --git a/Assets/Scripts/Player.cs b/Assets/Scripts/Player.cs index d8c70eb..66d5c40 100644 --- a/Assets/Scripts/Player.cs +++ b/Assets/Scripts/Player.cs @@ -39,7 +39,7 @@ public class Player : MonoBehaviour { void FixedUpdate() { Move (); Attack (); - SendAnimationInfo (); + //SendAnimationInfo (); } void HandleInput() { @@ -101,11 +101,13 @@ public class Player : MonoBehaviour { } } + /* void SendAnimationInfo() { animator.SetFloat ("xSpeed", lastDirection.x); animator.SetFloat ("ySpeed", lastDirection.y); animator.SetBool ("isShooting", isShooting); } + */ //utilities Vector2 GetShootingPoint() { diff --git a/Assets/Scripts/witchAnimate.cs b/Assets/Scripts/witchAnimate.cs new file mode 100644 index 0000000..c511045 --- /dev/null +++ b/Assets/Scripts/witchAnimate.cs @@ -0,0 +1,105 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class witchAnimate : MonoBehaviour { + + public enum Direction { down = 0, up = 8, side = 16 } + public Direction dir = Direction.down; + public enum Element { fire = 0, ice = 24, wind = 48 } + public Element el = Element.fire; + public enum Deed { idle = 0, walk = 1, shoot = 5 } + public Deed current = Deed.walk; + + Sprite[] animationSet; + SpriteRenderer spr; + + public int frame = 0; + + // Use this for initialization + void Start () { + spr = GetComponent(); + animationSet = Resources.LoadAll("Candy"); + } + + float frAccum = 0; + public float walkingFrameRate = 0.02f; + public float shootingFrameRate = 0.01f; + + bool justSwitched = false; + + // Update is called once per frame + void Update () { + + var h = Input.GetAxis("Horizontal"); + var v = Input.GetAxis("Vertical"); + + var wasShooting = current == Deed.shoot; + + if (v < 0) + { + dir = Direction.down; + spr.flipX = false; + current = Deed.walk; + } + else if (v > 0) + { + dir = Direction.up; + spr.flipX = false; + current = Deed.walk; + } + else if (h > 0) + { + dir = Direction.side; + spr.flipX = false; + current = Deed.walk; + } + else if (h < 0) + { + dir = Direction.side; + spr.flipX = true; + current = Deed.walk; + } + else current = Deed.idle; + if (wasShooting) current = Deed.shoot; + + if (Input.GetButtonDown("Switch")) + el = (el == Element.fire) ? Element.ice : ((el == Element.ice) ? Element.wind : Element.fire); + if (Input.GetButtonDown("Attack")) + { + frame = 0; + frAccum = 0; + current = Deed.shoot; + } + + frAccum += Time.deltaTime; + switch(current) + { + case Deed.idle: + frAccum = 0; + frame = 0; + break; + case Deed.walk: + if (frAccum >= walkingFrameRate) + { + frame++; + frAccum = 0; + } + frame %= 4; + break; + case Deed.shoot: + if (frAccum >= shootingFrameRate) + { + frame++; + frAccum = 0; + } + if (frame >= 3) + { + frame = 0; + current = Deed.idle; + } + break; + } + spr.sprite = animationSet[(int)dir + (int)el + (int)current + frame]; + } +} diff --git a/Assets/Scripts/witchAnimate.cs.meta b/Assets/Scripts/witchAnimate.cs.meta new file mode 100644 index 0000000..9b5db74 --- /dev/null +++ b/Assets/Scripts/witchAnimate.cs.meta @@ -0,0 +1,13 @@ +fileFormatVersion: 2 +guid: a0385578d8e685e40973de0f0d406694 +timeCreated: 1524349452 +licenseType: Free +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Sprites/projectiles.png b/Assets/Sprites/projectiles.png index 406d92a..8e1f567 100644 Binary files a/Assets/Sprites/projectiles.png and b/Assets/Sprites/projectiles.png differ diff --git a/Assets/Sprites/temp_guy_shoot.png b/Assets/Sprites/temp_guy_shoot.png index b58c20c..493b5dc 100644 Binary files a/Assets/Sprites/temp_guy_shoot.png and b/Assets/Sprites/temp_guy_shoot.png differ diff --git a/Assets/Sprites/tiles_ip.png b/Assets/Sprites/tiles_ip.png index 0579c17..ffbb1b1 100644 Binary files a/Assets/Sprites/tiles_ip.png and b/Assets/Sprites/tiles_ip.png differ diff --git a/ProjectSettings/ProjectVersion.txt b/ProjectSettings/ProjectVersion.txt index 27997c5..e3618f1 100644 --- a/ProjectSettings/ProjectVersion.txt +++ b/ProjectSettings/ProjectVersion.txt @@ -1 +1 @@ -m_EditorVersion: 2017.3.1f1 +m_EditorVersion: 2017.4.1f1