diff --git a/GGJ17/Assets/Images.meta b/GGJ17/Assets/Images.meta new file mode 100644 index 0000000..9908a50 --- /dev/null +++ b/GGJ17/Assets/Images.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: f0f582d42e5178d4d8853ab6f9986b1c +folderAsset: yes +timeCreated: 1485025538 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/GGJ17/Assets/Images/portrait1.png b/GGJ17/Assets/Images/portrait1.png new file mode 100644 index 0000000..1d2eb07 Binary files /dev/null and b/GGJ17/Assets/Images/portrait1.png differ diff --git a/GGJ17/Assets/Images/portrait1.png.meta b/GGJ17/Assets/Images/portrait1.png.meta new file mode 100644 index 0000000..f8fdccd --- /dev/null +++ b/GGJ17/Assets/Images/portrait1.png.meta @@ -0,0 +1,76 @@ +fileFormatVersion: 2 +guid: 515f7e046307d6c4e9fde398fe637bb4 +timeCreated: 1485025538 +licenseType: Free +TextureImporter: + fileIDToRecycleName: {} + serializedVersion: 4 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + 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: + filterMode: -1 + aniso: -1 + mipBias: -1 + wrapMode: 1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 1 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spritePixelsToUnits: 100 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 8 + textureShape: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + platformSettings: + - buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + - buildTarget: Standalone + maxTextureSize: 2048 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + spritePackingTag: + userData: + assetBundleName: + assetBundleVariant: diff --git a/GGJ17/Assets/Images/portrait2.png b/GGJ17/Assets/Images/portrait2.png new file mode 100644 index 0000000..e67ea02 Binary files /dev/null and b/GGJ17/Assets/Images/portrait2.png differ diff --git a/GGJ17/Assets/Images/portrait2.png.meta b/GGJ17/Assets/Images/portrait2.png.meta new file mode 100644 index 0000000..fd95f12 --- /dev/null +++ b/GGJ17/Assets/Images/portrait2.png.meta @@ -0,0 +1,76 @@ +fileFormatVersion: 2 +guid: 0b139e4c3ad4571458c58c243a6a5ceb +timeCreated: 1485025538 +licenseType: Free +TextureImporter: + fileIDToRecycleName: {} + serializedVersion: 4 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + 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: + filterMode: -1 + aniso: -1 + mipBias: -1 + wrapMode: 1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 1 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spritePixelsToUnits: 100 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 8 + textureShape: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + platformSettings: + - buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + - buildTarget: Standalone + maxTextureSize: 2048 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + spritePackingTag: + userData: + assetBundleName: + assetBundleVariant: diff --git a/GGJ17/Assets/Prefab/Dialog.meta b/GGJ17/Assets/Prefab/Dialog.meta new file mode 100644 index 0000000..87257cb --- /dev/null +++ b/GGJ17/Assets/Prefab/Dialog.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: 13f16f1005a81d54196b6b17cb36f178 +folderAsset: yes +timeCreated: 1485022710 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/GGJ17/Assets/Prefab/Dialog/Dialog Left.prefab b/GGJ17/Assets/Prefab/Dialog/Dialog Left.prefab new file mode 100644 index 0000000..ac1abdb Binary files /dev/null and b/GGJ17/Assets/Prefab/Dialog/Dialog Left.prefab differ diff --git a/GGJ17/Assets/Prefab/Dialog/Dialog Left.prefab.meta b/GGJ17/Assets/Prefab/Dialog/Dialog Left.prefab.meta new file mode 100644 index 0000000..aac4150 --- /dev/null +++ b/GGJ17/Assets/Prefab/Dialog/Dialog Left.prefab.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 07c11a70a8018164ca777bfa04052c4f +timeCreated: 1485023801 +licenseType: Free +NativeFormatImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/GGJ17/Assets/Prefab/Dialog/Dialog Right.prefab b/GGJ17/Assets/Prefab/Dialog/Dialog Right.prefab new file mode 100644 index 0000000..74c2f49 Binary files /dev/null and b/GGJ17/Assets/Prefab/Dialog/Dialog Right.prefab differ diff --git a/GGJ17/Assets/Prefab/Dialog/Dialog Right.prefab.meta b/GGJ17/Assets/Prefab/Dialog/Dialog Right.prefab.meta new file mode 100644 index 0000000..bdd96b0 --- /dev/null +++ b/GGJ17/Assets/Prefab/Dialog/Dialog Right.prefab.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: c43fa688a71d0cd4988e71c9075226a4 +timeCreated: 1485023976 +licenseType: Free +NativeFormatImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/GGJ17/Assets/Prefab/UI.prefab b/GGJ17/Assets/Prefab/UI.prefab new file mode 100644 index 0000000..57813ca Binary files /dev/null and b/GGJ17/Assets/Prefab/UI.prefab differ diff --git a/GGJ17/Assets/Prefab/UI.prefab.meta b/GGJ17/Assets/Prefab/UI.prefab.meta new file mode 100644 index 0000000..c586e74 --- /dev/null +++ b/GGJ17/Assets/Prefab/UI.prefab.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: a4ac1f9a16db72742bed3a2b15afa260 +timeCreated: 1485022527 +licenseType: Free +NativeFormatImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/GGJ17/Assets/Scene/IntroScene.unity b/GGJ17/Assets/Scene/IntroScene.unity new file mode 100644 index 0000000..e4c1e54 Binary files /dev/null and b/GGJ17/Assets/Scene/IntroScene.unity differ diff --git a/GGJ17/Assets/Scene/IntroScene.unity.meta b/GGJ17/Assets/Scene/IntroScene.unity.meta new file mode 100644 index 0000000..35e00b4 --- /dev/null +++ b/GGJ17/Assets/Scene/IntroScene.unity.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 6f01028caab596145829b533c0c56722 +timeCreated: 1485022563 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/GGJ17/Assets/Script/Dialog.meta b/GGJ17/Assets/Script/Dialog.meta new file mode 100644 index 0000000..1481f08 --- /dev/null +++ b/GGJ17/Assets/Script/Dialog.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: b6bef7164b7ccd74ea00f4c7124e3d89 +folderAsset: yes +timeCreated: 1485027381 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/GGJ17/Assets/Script/Dialog/Dialog.cs b/GGJ17/Assets/Script/Dialog/Dialog.cs new file mode 100644 index 0000000..03c33ba --- /dev/null +++ b/GGJ17/Assets/Script/Dialog/Dialog.cs @@ -0,0 +1,30 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class Dialog : MonoBehaviour +{ + public List speeches; + + // Use this for initialization + void Start() + { + } + + // Update is called once per frame + void Update() + { + } + + public IEnumerator talk() + { + foreach(string s in speeches) + { + GameObject g = new GameObject(); + g.transform.parent = this.gameObject.transform; + DialogBox d = new DialogBox(); + + yield return new WaitForSeconds(2.0f); + } + } +} diff --git a/GGJ17/Assets/Script/Dialog/Dialog.cs.meta b/GGJ17/Assets/Script/Dialog/Dialog.cs.meta new file mode 100644 index 0000000..35bf652 --- /dev/null +++ b/GGJ17/Assets/Script/Dialog/Dialog.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0158e7ddc9cb231408d46382b7b1e162 +timeCreated: 1485028843 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/GGJ17/Assets/Script/Dialog/DialogBox.cs b/GGJ17/Assets/Script/Dialog/DialogBox.cs new file mode 100644 index 0000000..167ec9d --- /dev/null +++ b/GGJ17/Assets/Script/Dialog/DialogBox.cs @@ -0,0 +1,34 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; +using UnityEngine.UI; + +public class DialogBox : MonoBehaviour +{ + private Text textbox; + + // Use this for initialization + void Start() + { + textbox = GetComponent(); + } + + // Update is called once per frame + void Update() + { + + } + + public IEnumerator Speak(string text) + { + int i = 0; + textbox.text = ""; + + while(i < text.Length) + { + textbox.text += text[i]; + ++i; + yield return new WaitForSeconds(.5f); + } + } +} diff --git a/GGJ17/Assets/Script/Dialog/DialogBox.cs.meta b/GGJ17/Assets/Script/Dialog/DialogBox.cs.meta new file mode 100644 index 0000000..fbc3d41 --- /dev/null +++ b/GGJ17/Assets/Script/Dialog/DialogBox.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b3d8aa32b6e4ed54f9f813818818b8e7 +timeCreated: 1485026617 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/GGJ17/Assets/Script/GodView.cs b/GGJ17/Assets/Script/GodView.cs index f7de111..79d3a6e 100644 --- a/GGJ17/Assets/Script/GodView.cs +++ b/GGJ17/Assets/Script/GodView.cs @@ -10,7 +10,7 @@ public class GodView : MonoBehaviour { public void enableConstructionMode(GameObject prefab) { - + constructionPrefab = prefab; } // Use this for initialization