From dee5da5c5bab5d8ef8b5b153e93e5c0dbdb331b7 Mon Sep 17 00:00:00 2001 From: j95alvarez Date: Thu, 7 Apr 2016 22:55:06 -0700 Subject: [PATCH 1/5] Moving Note Puzzle There are five notes that the player needs to hit in the order specified. The speed and the distance of each note can be adjusted so that each note can have a unique speed and distance while moving in different directions. --- Assets/Bounce.cs | 49 +++++++ Assets/Bounce.cs.meta | 12 ++ Assets/BowlsButton.cs | 60 ++++----- Assets/Moving Note.unity | Bin 0 -> 33380 bytes Assets/Moving Note.unity.meta | 8 ++ Assets/MovingNote.cs | 123 ++++++++++++++++++ Assets/MovingNote.cs.meta | 12 ++ Assets/NoteBlue.cs | 53 ++++++++ Assets/NoteBlue.cs.meta | 12 ++ Assets/NoteGreen.cs | 53 ++++++++ Assets/NoteGreen.cs.meta | 12 ++ Assets/NoteOrange.cs | 53 ++++++++ Assets/NoteOrange.cs.meta | 12 ++ Assets/NotePink.cs | 53 ++++++++ Assets/NotePink.cs.meta | 12 ++ Assets/NoteSwitch.cs | 43 ++++++ Assets/NoteSwitch.cs.meta | 12 ++ Assets/NoteYellow.cs | 53 ++++++++ Assets/NoteYellow.cs.meta | 12 ++ Assets/NotesButton.cs | 47 +++++++ Assets/NotesButton.cs.meta | 12 ++ Assets/OrangeNote.cs | 90 +++++++++++++ Assets/OrangeNote.cs.meta | 12 ++ .../HorizontalCorridorPuzzle.prefab.meta | 2 +- 24 files changed, 776 insertions(+), 31 deletions(-) create mode 100644 Assets/Bounce.cs create mode 100644 Assets/Bounce.cs.meta create mode 100644 Assets/Moving Note.unity create mode 100644 Assets/Moving Note.unity.meta create mode 100644 Assets/MovingNote.cs create mode 100644 Assets/MovingNote.cs.meta create mode 100644 Assets/NoteBlue.cs create mode 100644 Assets/NoteBlue.cs.meta create mode 100644 Assets/NoteGreen.cs create mode 100644 Assets/NoteGreen.cs.meta create mode 100644 Assets/NoteOrange.cs create mode 100644 Assets/NoteOrange.cs.meta create mode 100644 Assets/NotePink.cs create mode 100644 Assets/NotePink.cs.meta create mode 100644 Assets/NoteSwitch.cs create mode 100644 Assets/NoteSwitch.cs.meta create mode 100644 Assets/NoteYellow.cs create mode 100644 Assets/NoteYellow.cs.meta create mode 100644 Assets/NotesButton.cs create mode 100644 Assets/NotesButton.cs.meta create mode 100644 Assets/OrangeNote.cs create mode 100644 Assets/OrangeNote.cs.meta diff --git a/Assets/Bounce.cs b/Assets/Bounce.cs new file mode 100644 index 0000000..0de4379 --- /dev/null +++ b/Assets/Bounce.cs @@ -0,0 +1,49 @@ +using UnityEngine; +using System.Collections; + +public class Bounce : MonoBehaviour { + + public GameObject button; + + public bool pressed = false; + public bool collide = false; + int count = 0; + + + void Start() + { + + + } + void Update() + { + if (collide) + { + if (count == 0) + { + pressed = true; + Debug.Log("ON"); + count++; + } + + } + } + + void OnTriggerEnter2D(Collider2D col) + { + + Debug.Log("Enter"); + + collide = true; + Debug.Log(collide); + + + } + void OnTriggerExit2D(Collider2D col) + { + collide = false; + pressed = false; + Debug.Log("Exit"); + count = 0; + } +} diff --git a/Assets/Bounce.cs.meta b/Assets/Bounce.cs.meta new file mode 100644 index 0000000..e4fbac3 --- /dev/null +++ b/Assets/Bounce.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ef0e79fb86b774046ba26f23dac0383f +timeCreated: 1460091985 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/BowlsButton.cs b/Assets/BowlsButton.cs index 2c07b75..ca0ae65 100644 --- a/Assets/BowlsButton.cs +++ b/Assets/BowlsButton.cs @@ -3,46 +3,46 @@ public class BowlsButton : MonoBehaviour { - public GameObject button; + public GameObject button; - public bool pressed = false; - public bool collide = false; - int count = 0; - //GameObject pressureplate1 = GameObject.FindGameObjectWithTag("pressureplate1"); - void Start() - { + public bool pressed = false; + public bool collide = false; + int count = 0; + //GameObject pressureplate1 = GameObject.FindGameObjectWithTag("pressureplate1"); + void Start() + { - } - void Update() - { - if (collide) + } + void Update() { - if (count == 0) + if (collide) { - pressed = true; - Debug.Log("ON"); - count++; - } + if (count == 0) + { + pressed = true; + Debug.Log("ON"); + count++; + } + } } - } - void OnTriggerEnter2D(Collider2D col) - { + void OnTriggerEnter2D(Collider2D col) + { - Debug.Log("Enter"); + Debug.Log("Enter"); - collide = true; - Debug.Log(collide); + collide = true; + Debug.Log(collide); - } - void OnTriggerExit2D(Collider2D col) - { - collide = false; - pressed = false; - Debug.Log("Exit"); - count = 0; - } + } + void OnTriggerExit2D(Collider2D col) + { + collide = false; + pressed = false; + Debug.Log("Exit"); + count = 0; + } } diff --git a/Assets/Moving Note.unity b/Assets/Moving Note.unity new file mode 100644 index 0000000000000000000000000000000000000000..a796e57c45cf0a9852696d198a92747ab0d377f7 GIT binary patch literal 33380 zcmeHQ36xw#xxSr+Bp_e_0T-Zy0TM!*UZyvJWR@gkAR)s{K$c+a>A9I{($hV5_avDJ z$5xc(phu#@6HrLh!y;&SEJxf}1O$0O7Ujvoqo@y1M7Hn{1U2vbYU!?f``+o9G3On? z6x{AxU)BFt-Ku}9y44fQI`(GE`b?i?S$kX7v5(-}iicvMmNgOUpF4K!2)q}-Te!Js zQDOe$lO9bycE`=L{`vYVcP@NtYxnk9FTPw@IH~iP@~fR6K)n>M0Iq2PtD3Z|D#&&q zi#y^0>zc_{^=6b!0mORp;-_Uj4*Wg%o`j2a1GxJwDECL6^(Py62z(Afe!41?^#j)V zldS5!iqBM|zR71d12_3htKk8w1$@>iK5V1SqdzkY+~l)+4G&nG(a*EMhflZ%u0Wf7 zHjcxI!1-K!W<3rAX!p;m-93RbxyNBIfl1tK7qeI6vlRSq03VJ&=Pytd^#c)%CokeN ziMJA;EXMhRpkaUZAug`T*2$=QHZJD(t>FQS{9}s$e#EP!ndIRAKH{y!o%}hUUi=TJ z;d0#OsQiKWwmL~8@vy?*ukfy}O6l0eeYr}pw0J|sE|hb{!UAh>^^#oP?p%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+++ b/Assets/Moving Note.unity.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 82e484c9f1644fe4c90520a3df8cb75b +timeCreated: 1460086088 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/MovingNote.cs b/Assets/MovingNote.cs new file mode 100644 index 0000000..f6d4804 --- /dev/null +++ b/Assets/MovingNote.cs @@ -0,0 +1,123 @@ +using UnityEngine; +using System.Collections; +using System.Collections.Generic; +using System; + +public class MovingNote : MonoBehaviour { + + SpriteRenderer sr, ss; + public GameObject SimonSaysSwitch; + public GameObject sb1, sb2, sb3, sb4, sb5; + List sequence = new List(); + List bpressed = new List(); + public GameObject door; + bool b1 = false, b2 = false, b3 = false, b4 = false, b5 = false; + + int state = 0; + int rnd = 0; + + + void Start() + { + // Get a reference to the SpriteRenderer so that we can change the button's color. + gameObject.SetActive(true); + sequence.Add(4); + sequence.Add(3); + sequence.Add(2); + sequence.Add(1); + sequence.Add(0); + + } + + // Update is called once per frame + void Update() + { + if (SimonSaysSwitch.GetComponent().pressed == true) + { + bpressed.Clear(); + //sequence.Clear(); + SimonSaysSwitch.GetComponent().pressed = false; + + } + + if (sb1.GetComponent().pressed == true && sb2.GetComponent().pressed == false && + sb3.GetComponent().pressed == false && sb4.GetComponent().pressed == false && + sb5.GetComponent().pressed == false) + { + Debug.Log("ORANGE"); + sb1.GetComponent().pressed = false; + bpressed.Add(4); + } + + if (sb1.GetComponent().pressed == false && sb2.GetComponent().pressed == true && + sb3.GetComponent().pressed == false && sb4.GetComponent().pressed == false && + sb5.GetComponent().pressed == false) + { + Debug.Log("PINK"); + bpressed.Add(3); + sb2.GetComponent().pressed = false; + } + + if (sb1.GetComponent().pressed == false && sb2.GetComponent().pressed == false && + sb3.GetComponent().pressed == true && sb4.GetComponent().pressed == false && + sb5.GetComponent().pressed == false) + { + Debug.Log("YELLOW"); + bpressed.Add(2); + sb3.GetComponent().pressed = false; + } + + if (sb1.GetComponent().pressed == false && sb2.GetComponent().pressed == false && + sb3.GetComponent().pressed == false && sb4.GetComponent().pressed == true && + sb5.GetComponent().pressed == false) + { + Debug.Log("GREEN"); + bpressed.Add(1); + sb4.GetComponent().pressed = false; + } + + if (sb1.GetComponent().pressed == false && sb2.GetComponent().pressed == false && + sb3.GetComponent().pressed == false && sb4.GetComponent().pressed == false && + sb5.GetComponent().pressed == true) + { + Debug.Log("BLUE"); + bpressed.Add(0); + sb5.GetComponent().pressed = false; + } + + + if (bpressed.Count > 4) + { + if (sequence[0] == bpressed[0]) + { + Debug.Log("b1 = true"); + b1 = true; + } + if (sequence[1] == bpressed[1]) + { + Debug.Log("b2 = true"); + b2 = true; + } + if (sequence[2] == bpressed[2]) + { + Debug.Log("b3 = true"); + b3 = true; + } + if (sequence[3] == bpressed[3]) + { + Debug.Log("b4 = true"); + b4 = true; + } + if (sequence[4] == bpressed[4]) + { + Debug.Log("b5 = true"); + b5 = true; + } + if (b1 == true && b2 == true && b3 == true && b4 == true && b5 == true) + { + GameObject.Destroy(door); + } + } + // Debug.Log(bpressed[0] + bpressed[1] + bpressed[2] + bpressed[3]); + } +} diff --git a/Assets/MovingNote.cs.meta b/Assets/MovingNote.cs.meta new file mode 100644 index 0000000..88f1264 --- /dev/null +++ b/Assets/MovingNote.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4d6aa3181e543964da66a46ebfdbf136 +timeCreated: 1460087032 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/NoteBlue.cs b/Assets/NoteBlue.cs new file mode 100644 index 0000000..f1d99ba --- /dev/null +++ b/Assets/NoteBlue.cs @@ -0,0 +1,53 @@ +using UnityEngine; +using System.Collections; + +public class NoteBlue : MonoBehaviour { + + private bool goingUp = true; + + public float speed = 1; + float accumulatedDistance = 0; + public float travelDistance = 1; + + int count = 0; + + void Start() + { + + + } + + + + void Update() + { + Vector2 currentPos = gameObject.transform.position; + + + float movement = speed * Time.deltaTime; + + if (!goingUp) + transform.Translate(0, -movement, 0); + else + //Enemy facing and movement to the right + transform.Translate(0, movement, 0); + + + + accumulatedDistance += movement; + + if (accumulatedDistance >= travelDistance) + { + if (goingUp) + { + goingUp = false; + } + else + { + goingUp = true; + } + + accumulatedDistance = 0; + } + } +} diff --git a/Assets/NoteBlue.cs.meta b/Assets/NoteBlue.cs.meta new file mode 100644 index 0000000..cbcc9ae --- /dev/null +++ b/Assets/NoteBlue.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bb3184f66eabf3848879b37641eb5b88 +timeCreated: 1460093006 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/NoteGreen.cs b/Assets/NoteGreen.cs new file mode 100644 index 0000000..44624c2 --- /dev/null +++ b/Assets/NoteGreen.cs @@ -0,0 +1,53 @@ +using UnityEngine; +using System.Collections; + +public class NoteGreen : MonoBehaviour { + + private bool goingUp = true; + + public float speed = 1; + float accumulatedDistance = 0; + public float travelDistance = 1; + + int count = 0; + + void Start() + { + + + } + + + + void Update() + { + Vector2 currentPos = gameObject.transform.position; + + + float movement = speed * Time.deltaTime; + + if (!goingUp) + transform.Translate(0, -movement, 0); + else + //Enemy facing and movement to the right + transform.Translate(0, movement, 0); + + + + accumulatedDistance += movement; + + if (accumulatedDistance >= travelDistance) + { + if (goingUp) + { + goingUp = false; + } + else + { + goingUp = true; + } + + accumulatedDistance = 0; + } + } +} diff --git a/Assets/NoteGreen.cs.meta b/Assets/NoteGreen.cs.meta new file mode 100644 index 0000000..04a444d --- /dev/null +++ b/Assets/NoteGreen.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cf212c48768b37845b11fe908bea662a +timeCreated: 1460093549 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/NoteOrange.cs b/Assets/NoteOrange.cs new file mode 100644 index 0000000..eed1b46 --- /dev/null +++ b/Assets/NoteOrange.cs @@ -0,0 +1,53 @@ +using UnityEngine; +using System.Collections; + +public class NoteOrange : MonoBehaviour { + + private bool goingUp = true; + + public float speed = 1; + float accumulatedDistance = 0; + public float travelDistance = 1; + + int count = 0; + + void Start() + { + + + } + + + + void Update() + { + Vector2 currentPos = gameObject.transform.position; + + + float movement = speed * Time.deltaTime; + + if (!goingUp) + transform.Translate(0, -movement, 0); + else + //Enemy facing and movement to the right + transform.Translate(0, movement, 0); + + + + accumulatedDistance += movement; + + if (accumulatedDistance >= travelDistance) + { + if (goingUp) + { + goingUp = false; + } + else + { + goingUp = true; + } + + accumulatedDistance = 0; + } + } +} diff --git a/Assets/NoteOrange.cs.meta b/Assets/NoteOrange.cs.meta new file mode 100644 index 0000000..e879472 --- /dev/null +++ b/Assets/NoteOrange.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2fae0831b24e1494f95524c17c931905 +timeCreated: 1460092930 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/NotePink.cs b/Assets/NotePink.cs new file mode 100644 index 0000000..3277110 --- /dev/null +++ b/Assets/NotePink.cs @@ -0,0 +1,53 @@ +using UnityEngine; +using System.Collections; + +public class NotePink : MonoBehaviour { + + private bool goingUp = true; + + public float speed = 1; + float accumulatedDistance = 0; + public float travelDistance = 1; + + int count = 0; + + void Start() + { + + + } + + + + void Update() + { + Vector2 currentPos = gameObject.transform.position; + + + float movement = speed * Time.deltaTime; + + if (!goingUp) + transform.Translate(0, -movement, 0); + else + //Enemy facing and movement to the right + transform.Translate(0, movement, 0); + + + + accumulatedDistance += movement; + + if (accumulatedDistance >= travelDistance) + { + if (goingUp) + { + goingUp = false; + } + else + { + goingUp = true; + } + + accumulatedDistance = 0; + } + } +} diff --git a/Assets/NotePink.cs.meta b/Assets/NotePink.cs.meta new file mode 100644 index 0000000..f29d980 --- /dev/null +++ b/Assets/NotePink.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d6979a6cfc926af40a6c9482707c6fd4 +timeCreated: 1460093475 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/NoteSwitch.cs b/Assets/NoteSwitch.cs new file mode 100644 index 0000000..55ac090 --- /dev/null +++ b/Assets/NoteSwitch.cs @@ -0,0 +1,43 @@ +using UnityEngine; +using System.Collections; + +public class NoteSwitch : MonoBehaviour { + + public bool stepped; + int state = 0; + public bool pressed; + + void Start() + { + + stepped = false; + pressed = false; + + } + + void Update() + { + // If the player is colliding with the button and E is pressed, advance the state. + // This check should be placed in Update() instead of one of the below functions + // since Update() executes more frequently and is less likely to cause missed checks. + if (stepped && Input.GetKeyDown(KeyCode.E)) + { + Debug.Log("ON"); + pressed = true; + } + } + + // NOTE: Set the Player object's RigidBody2D -> Sleeping Mode to Never Sleep, otherwise + // the collision check will eventually stop due to the player object going to sleep. + void OnTriggerStay2D(Collider2D other) + { + if (other.gameObject.tag == "Player") + stepped = true; + } + + void OnTriggerExit2D(Collider2D other) + { + if (other.gameObject.tag == "Player") + stepped = false; + } +} diff --git a/Assets/NoteSwitch.cs.meta b/Assets/NoteSwitch.cs.meta new file mode 100644 index 0000000..3951e08 --- /dev/null +++ b/Assets/NoteSwitch.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8bcbb6245683035429fbd3e2346df5b5 +timeCreated: 1460086893 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/NoteYellow.cs b/Assets/NoteYellow.cs new file mode 100644 index 0000000..f68f1b7 --- /dev/null +++ b/Assets/NoteYellow.cs @@ -0,0 +1,53 @@ +using UnityEngine; +using System.Collections; + +public class NoteYellow : MonoBehaviour { + + private bool goingUp = true; + + public float speed = 1; + float accumulatedDistance = 0; + public float travelDistance = 1; + + int count = 0; + + void Start() + { + + + } + + + + void Update() + { + Vector2 currentPos = gameObject.transform.position; + + + float movement = speed * Time.deltaTime; + + if (!goingUp) + transform.Translate(0, -movement, 0); + else + //Enemy facing and movement to the right + transform.Translate(0, movement, 0); + + + + accumulatedDistance += movement; + + if (accumulatedDistance >= travelDistance) + { + if (goingUp) + { + goingUp = false; + } + else + { + goingUp = true; + } + + accumulatedDistance = 0; + } + } +} diff --git a/Assets/NoteYellow.cs.meta b/Assets/NoteYellow.cs.meta new file mode 100644 index 0000000..0560b78 --- /dev/null +++ b/Assets/NoteYellow.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 84ac75a92ea78ff44a7c4852646030f5 +timeCreated: 1460093525 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/NotesButton.cs b/Assets/NotesButton.cs new file mode 100644 index 0000000..a6d4f61 --- /dev/null +++ b/Assets/NotesButton.cs @@ -0,0 +1,47 @@ +using UnityEngine; +using System.Collections; + +public class NotesButton : MonoBehaviour { + public GameObject button; + + public bool pressed = false; + public bool collide = false; + int count = 0; + //GameObject pressureplate1 = GameObject.FindGameObjectWithTag("pressureplate1"); + void Start() + { + + + } + void Update() + { + if (collide) + { + if (count == 0) + { + pressed = true; + Debug.Log("ON"); + count++; + } + + } + } + + void OnTriggerEnter2D(Collider2D col) + { + + Debug.Log("Enter"); + + collide = true; + Debug.Log(collide); + + + } + void OnTriggerExit2D(Collider2D col) + { + collide = false; + pressed = false; + Debug.Log("Exit"); + count = 0; + } +} diff --git a/Assets/NotesButton.cs.meta b/Assets/NotesButton.cs.meta new file mode 100644 index 0000000..e2dbf09 --- /dev/null +++ b/Assets/NotesButton.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 82a79b195e274c847a3147e07296885e +timeCreated: 1460086369 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/OrangeNote.cs b/Assets/OrangeNote.cs new file mode 100644 index 0000000..e461377 --- /dev/null +++ b/Assets/OrangeNote.cs @@ -0,0 +1,90 @@ +using UnityEngine; +using System.Collections; + +public class OrangeNote : MonoBehaviour { + + public GameObject button; + + private bool goingUp = true; + public bool pressed = false; + public bool collide = false; + + public float speed = 1; + float accumulatedDistance = 0; + public float travelDistance = 1; + + int count = 0; + + void Start() + { + + + } + + + + void Update() + { + Vector2 currentPos = gameObject.transform.position; + + + float movement = speed * Time.deltaTime; + + if (!goingUp) + transform.Translate(0, -movement, 0); + else + //Enemy facing and movement to the right + transform.Translate(0, movement, 0); + + + + accumulatedDistance += movement; + + if (accumulatedDistance >= travelDistance) + { + if (goingUp) + { + goingUp = false; + } + else + { + goingUp = true; + } + + accumulatedDistance = 0; + } + + + + + + if (collide) + { + if (count == 0) + { + pressed = true; + Debug.Log("ON"); + count++; + } + + } + } + + void OnTriggerEnter2D(Collider2D col) + { + + Debug.Log("Enter"); + + collide = true; + Debug.Log(collide); + + + } + void OnTriggerExit2D(Collider2D col) + { + collide = false; + pressed = false; + Debug.Log("Exit"); + count = 0; + } +} diff --git a/Assets/OrangeNote.cs.meta b/Assets/OrangeNote.cs.meta new file mode 100644 index 0000000..d3a0769 --- /dev/null +++ b/Assets/OrangeNote.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4e7613bf3e6c4b44088aecf2288ceb3c +timeCreated: 1460092668 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Prefabs/PlaceholderObj/HorizontalCorridorPuzzle.prefab.meta b/Assets/Prefabs/PlaceholderObj/HorizontalCorridorPuzzle.prefab.meta index 892aec2..49ebd24 100644 --- a/Assets/Prefabs/PlaceholderObj/HorizontalCorridorPuzzle.prefab.meta +++ b/Assets/Prefabs/PlaceholderObj/HorizontalCorridorPuzzle.prefab.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 8226cc434bbc0c34495c88b56205f186 +guid: 089582538120f2d4cb41b6f18cc668ce timeCreated: 1457603059 licenseType: Free NativeFormatImporter: From 86fbdc436632db12e3abb1a5e1f67f48b4fcbe8d Mon Sep 17 00:00:00 2001 From: j95alvarez Date: Fri, 8 Apr 2016 23:34:52 -0700 Subject: [PATCH 2/5] Moving Note There are 5 moving notes that the player will need to hit in the right order to open the door --- Assets/Moving Note.unity | Bin 33380 -> 33380 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/Assets/Moving Note.unity b/Assets/Moving Note.unity index a796e57c45cf0a9852696d198a92747ab0d377f7..1d7c4ee4ceafe1b3e64dd43c4d01b8d4982d8cda 100644 GIT binary patch delta 62 zcmaFT!t|ttX~QHprUMR>588-KE{N9MeAVr)IFp0JWJfoZ%{St>1VC~iHb;Juz~nSr PzR728I5tnHzrq9nA$Ayl delta 56 zcmaFT!t|ttX~QJ9$yrWflMAACH(zzTE6&tlKiSbuW%G?VE&;H_1sj3Q9Qj3H&gKdA GSC{~v3KpIK From d9d71cca7477279f0398e5ebb2a3502d2a9c3c9f Mon Sep 17 00:00:00 2001 From: j95alvarez Date: Tue, 12 Apr 2016 10:47:08 -0700 Subject: [PATCH 3/5] Moving Note The player needs to match the colors that are on top of the white platform (from left to right). Each note moves a certain distance (distance can be modified) and also a certain speed (can also be modified). --- Assets/Moving Note.unity | Bin 33380 -> 33380 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/Assets/Moving Note.unity b/Assets/Moving Note.unity index 1d7c4ee4ceafe1b3e64dd43c4d01b8d4982d8cda..885a7be0f7a6afe692cc07b8a5a0f3de3806c851 100644 GIT binary patch delta 17 ZcmaFT!t|ttX~ViWrUee0H^gmG1^`P{2nzrJ delta 17 ZcmaFT!t|ttX~ViWCI!dM8{)Po0{} Date: Wed, 13 Apr 2016 17:36:37 -0700 Subject: [PATCH 4/5] Revert "Moving Note" This reverts commit d9d71cca7477279f0398e5ebb2a3502d2a9c3c9f. --- Assets/Moving Note.unity | Bin 33380 -> 33380 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/Assets/Moving Note.unity b/Assets/Moving Note.unity index 885a7be0f7a6afe692cc07b8a5a0f3de3806c851..1d7c4ee4ceafe1b3e64dd43c4d01b8d4982d8cda 100644 GIT binary patch delta 17 ZcmaFT!t|ttX~ViWCI!dM8{)Po0{} Date: Tue, 19 Apr 2016 15:34:47 -0700 Subject: [PATCH 5/5] Moving Note (Fixed) Player needs to match the notes displayed on the top right (from left to right). Each moves at different speeds that can be changed, if needed (USING FLOAT). --- Assets/Moving Note.unity | Bin 33380 -> 34204 bytes Assets/MovingStringNotes.cs | 43 +++++++++ ...ange.cs.meta => MovingStringNotes.cs.meta} | 4 +- Assets/NoteBlue.cs | 53 ----------- Assets/NoteBlue.cs.meta | 12 --- Assets/NoteGreen.cs | 53 ----------- Assets/NoteGreen.cs.meta | 12 --- Assets/NoteOrange.cs | 53 ----------- Assets/NotePink.cs | 53 ----------- Assets/NotePink.cs.meta | 12 --- Assets/NoteYellow.cs | 53 ----------- Assets/NoteYellow.cs.meta | 12 --- Assets/OrangeNote.cs | 90 ------------------ Assets/OrangeNote.cs.meta | 12 --- 14 files changed, 45 insertions(+), 417 deletions(-) create mode 100644 Assets/MovingStringNotes.cs rename Assets/{NoteOrange.cs.meta => MovingStringNotes.cs.meta} (76%) delete mode 100644 Assets/NoteBlue.cs delete mode 100644 Assets/NoteBlue.cs.meta delete mode 100644 Assets/NoteGreen.cs delete mode 100644 Assets/NoteGreen.cs.meta delete mode 100644 Assets/NoteOrange.cs delete mode 100644 Assets/NotePink.cs delete mode 100644 Assets/NotePink.cs.meta delete mode 100644 Assets/NoteYellow.cs delete mode 100644 Assets/NoteYellow.cs.meta delete mode 100644 Assets/OrangeNote.cs delete mode 100644 Assets/OrangeNote.cs.meta diff --git a/Assets/Moving Note.unity b/Assets/Moving Note.unity index 1d7c4ee4ceafe1b3e64dd43c4d01b8d4982d8cda..6ada44e40fb22e52cde7da0ac596b574f188d45e 100644 GIT binary patch delta 5064 zcmbtX4^)%a6@On05>O!#B$%K{1S@LG9{~fAKM5ufEb?apQYv5yK|ly3!3rosdhBMm zY72Kgb3N5+yRKc&R5*G%?OD6g%`@llRJ#6g-Og5ewCgs{j%~MNPo=VZ-}ePDPNDY8 z`QE$l-uvBm-+RAz@6F}CvgdvvTgI6AS;iiJjxiRF^dR;uEg>Z#wIP|^oS2vpR71;N z2wuM9JGN76qEEeFz0P_wyJ+y$*S@H0^mUIHop|heSYq3_HwHh;8!F0|1;rzk0j{9+ z3y(6^XU35nUoE~&0sV_sEh#DK@MOl7c^ocpLz|~Ho3*z!xjK@Wx83QiKY1{8LF8g9 zD(@eBspQmKZ|<%-os}Ga_Uv)8@FN)38ijB$D73v3qB%>jEi62FL@Wn*bs3$e%Fmj<8HOPf%&Lc*{IZ+qOA9 zNSAw^^|@WPh6ZO{M;kGU8ydXM4%W%Ka8N=A?>+gGrI(|GOn4&gkF8tK3oCyoCa_~~ zJBDcA*kBN2W!Qg>Yxm%q=oyt{in-!yX zjFhZABWX6SL;xY5P)Ojyj>&H(JxKklLJ| zM_C|(&r7mSlm#MeM3P;aX48-E3zF;_%BCFv{2^n3%$^J%W@t?5sW@c-@Sl3YP)Dv* z;^7Bgify@RT=r`dB$za^zAV^aLhzVxU(mqy-)tuIcnm z7_FQ$!|Nu^#*fUmxJe2uME&1(>eDT^FFjO}9Yk5+md%GDQ^Yd=MwtG5vWu)Jav8fk zg_;Q_ho$S*ZpKT^SbX=H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;y9W^PwK;LV30 zbKN|?RSF5s3fw={9S)yArscP&DwC08wHaVnrN()$7V|*rhO1ZB`l*tPDOfURJp{Vg zpj6(R+ywW-ow-J*oE2x>%Q2`-#vbAR5FTSxsp&~`)#rn!PVR@h6O1WIiHS)m$uPAu zc+r5>(NE^+6al|dDO?@{@~U9&mMCX&$4}do%n@H@l8$}6PIkZWIx#{Rx30a(4D7VcuRBt-@I8qZIwqV|3 zuIk*9a$l35BH1`A&>}~Nt$wNmSx+c~-(-rKs&U{tQ z$yX1nS8rLS^hDw8(voUSN^-w^v3CEETX<<}9F-7WR;Xx=mK&g=P81g`D@)-izQEEl zuc=fFr|Jr^?RfKYsK>5sGQr52C>XC-z>UImFj=L}T*q94HmiW#fHnPpfS!u)IX|F< zs0LRh!HlkyN#xMhkc;E1eEeHO8q!-DMR6s{wWi`KhpUZgK2)x6AAyK+4OUncGCko! zRhVix;Um$Qn(Xdmq!;C9AF981&5%F=M8qUjAFu*7D!`HvYHJ>gtGxT17{UhF`UY;Qo0_4m{hYUv!aK z;dGXE_w3f^8!*dni*gzs73S=A2Kca@z&O?J@|UTD;!@KQf8SQ;4`(`xB|h$Lns9lp zv&@Od)m<~a#~0eW&5ckA#kGPIJk+kS&>fAbH zR?m!eQn2^XU5*|?-9i=mX1*SN*XzQXcCWBb2W5Ndr1`M608Uvx{$+aQtSH!4= travelDistance) - { - if (goingUp) - { - goingUp = false; - } - else - { - goingUp = true; - } - - accumulatedDistance = 0; - } - } -} diff --git a/Assets/NoteBlue.cs.meta b/Assets/NoteBlue.cs.meta deleted file mode 100644 index cbcc9ae..0000000 --- a/Assets/NoteBlue.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: bb3184f66eabf3848879b37641eb5b88 -timeCreated: 1460093006 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/NoteGreen.cs b/Assets/NoteGreen.cs deleted file mode 100644 index 44624c2..0000000 --- a/Assets/NoteGreen.cs +++ /dev/null @@ -1,53 +0,0 @@ -using UnityEngine; -using System.Collections; - -public class NoteGreen : MonoBehaviour { - - private bool goingUp = true; - - public float speed = 1; - float accumulatedDistance = 0; - public float travelDistance = 1; - - int count = 0; - - void Start() - { - - - } - - - - void Update() - { - Vector2 currentPos = gameObject.transform.position; - - - float movement = speed * Time.deltaTime; - - if (!goingUp) - transform.Translate(0, -movement, 0); - else - //Enemy facing and movement to the right - transform.Translate(0, movement, 0); - - - - accumulatedDistance += movement; - - if (accumulatedDistance >= travelDistance) - { - if (goingUp) - { - goingUp = false; - } - else - { - goingUp = true; - } - - accumulatedDistance = 0; - } - } -} diff --git a/Assets/NoteGreen.cs.meta b/Assets/NoteGreen.cs.meta deleted file mode 100644 index 04a444d..0000000 --- a/Assets/NoteGreen.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: cf212c48768b37845b11fe908bea662a -timeCreated: 1460093549 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/NoteOrange.cs b/Assets/NoteOrange.cs deleted file mode 100644 index eed1b46..0000000 --- a/Assets/NoteOrange.cs +++ /dev/null @@ -1,53 +0,0 @@ -using UnityEngine; -using System.Collections; - -public class NoteOrange : MonoBehaviour { - - private bool goingUp = true; - - public float speed = 1; - float accumulatedDistance = 0; - public float travelDistance = 1; - - int count = 0; - - void Start() - { - - - } - - - - void Update() - { - Vector2 currentPos = gameObject.transform.position; - - - float movement = speed * Time.deltaTime; - - if (!goingUp) - transform.Translate(0, -movement, 0); - else - //Enemy facing and movement to the right - transform.Translate(0, movement, 0); - - - - accumulatedDistance += movement; - - if (accumulatedDistance >= travelDistance) - { - if (goingUp) - { - goingUp = false; - } - else - { - goingUp = true; - } - - accumulatedDistance = 0; - } - } -} diff --git a/Assets/NotePink.cs b/Assets/NotePink.cs deleted file mode 100644 index 3277110..0000000 --- a/Assets/NotePink.cs +++ /dev/null @@ -1,53 +0,0 @@ -using UnityEngine; -using System.Collections; - -public class NotePink : MonoBehaviour { - - private bool goingUp = true; - - public float speed = 1; - float accumulatedDistance = 0; - public float travelDistance = 1; - - int count = 0; - - void Start() - { - - - } - - - - void Update() - { - Vector2 currentPos = gameObject.transform.position; - - - float movement = speed * Time.deltaTime; - - if (!goingUp) - transform.Translate(0, -movement, 0); - else - //Enemy facing and movement to the right - transform.Translate(0, movement, 0); - - - - accumulatedDistance += movement; - - if (accumulatedDistance >= travelDistance) - { - if (goingUp) - { - goingUp = false; - } - else - { - goingUp = true; - } - - accumulatedDistance = 0; - } - } -} diff --git a/Assets/NotePink.cs.meta b/Assets/NotePink.cs.meta deleted file mode 100644 index f29d980..0000000 --- a/Assets/NotePink.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: d6979a6cfc926af40a6c9482707c6fd4 -timeCreated: 1460093475 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/NoteYellow.cs b/Assets/NoteYellow.cs deleted file mode 100644 index f68f1b7..0000000 --- a/Assets/NoteYellow.cs +++ /dev/null @@ -1,53 +0,0 @@ -using UnityEngine; -using System.Collections; - -public class NoteYellow : MonoBehaviour { - - private bool goingUp = true; - - public float speed = 1; - float accumulatedDistance = 0; - public float travelDistance = 1; - - int count = 0; - - void Start() - { - - - } - - - - void Update() - { - Vector2 currentPos = gameObject.transform.position; - - - float movement = speed * Time.deltaTime; - - if (!goingUp) - transform.Translate(0, -movement, 0); - else - //Enemy facing and movement to the right - transform.Translate(0, movement, 0); - - - - accumulatedDistance += movement; - - if (accumulatedDistance >= travelDistance) - { - if (goingUp) - { - goingUp = false; - } - else - { - goingUp = true; - } - - accumulatedDistance = 0; - } - } -} diff --git a/Assets/NoteYellow.cs.meta b/Assets/NoteYellow.cs.meta deleted file mode 100644 index 0560b78..0000000 --- a/Assets/NoteYellow.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 84ac75a92ea78ff44a7c4852646030f5 -timeCreated: 1460093525 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/OrangeNote.cs b/Assets/OrangeNote.cs deleted file mode 100644 index e461377..0000000 --- a/Assets/OrangeNote.cs +++ /dev/null @@ -1,90 +0,0 @@ -using UnityEngine; -using System.Collections; - -public class OrangeNote : MonoBehaviour { - - public GameObject button; - - private bool goingUp = true; - public bool pressed = false; - public bool collide = false; - - public float speed = 1; - float accumulatedDistance = 0; - public float travelDistance = 1; - - int count = 0; - - void Start() - { - - - } - - - - void Update() - { - Vector2 currentPos = gameObject.transform.position; - - - float movement = speed * Time.deltaTime; - - if (!goingUp) - transform.Translate(0, -movement, 0); - else - //Enemy facing and movement to the right - transform.Translate(0, movement, 0); - - - - accumulatedDistance += movement; - - if (accumulatedDistance >= travelDistance) - { - if (goingUp) - { - goingUp = false; - } - else - { - goingUp = true; - } - - accumulatedDistance = 0; - } - - - - - - if (collide) - { - if (count == 0) - { - pressed = true; - Debug.Log("ON"); - count++; - } - - } - } - - void OnTriggerEnter2D(Collider2D col) - { - - Debug.Log("Enter"); - - collide = true; - Debug.Log(collide); - - - } - void OnTriggerExit2D(Collider2D col) - { - collide = false; - pressed = false; - Debug.Log("Exit"); - count = 0; - } -} diff --git a/Assets/OrangeNote.cs.meta b/Assets/OrangeNote.cs.meta deleted file mode 100644 index d3a0769..0000000 --- a/Assets/OrangeNote.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 4e7613bf3e6c4b44088aecf2288ceb3c -timeCreated: 1460092668 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: