Skip to content
Permalink
Browse files

THE SUBMISSION

  • Loading branch information
smz11006 committed Nov 10, 2015
1 parent b350d64 commit ee3ac1d8d3dc6c85fae8dfa2d0970ddb82298c57
Showing 1,249 changed files with 317 additions and 157 deletions.
@@ -0,0 +1,131 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Unity Web Player | 19-Bricktey-2</title>
<script type='text/javascript' src='https://ssl-webplayer.unity3d.com/download_webplayer-3.x/3.0/uo/jquery.min.js'></script>
<script type="text/javascript">
<!--
var unityObjectUrl = "http://webplayer.unity3d.com/download_webplayer-3.x/3.0/uo/UnityObject2.js";
if (document.location.protocol == 'https:')
unityObjectUrl = unityObjectUrl.replace("http://", "https://ssl-");
document.write('<script type="text\/javascript" src="' + unityObjectUrl + '"><\/script>');
-->
</script>
<script type="text/javascript">
<!--
var config = {
width: 1280,
height: 720,
params: { enableDebugging:"0" }

};
var u = new UnityObject2(config);

jQuery(function() {

var $missingScreen = jQuery("#unityPlayer").find(".missing");
var $brokenScreen = jQuery("#unityPlayer").find(".broken");
$missingScreen.hide();
$brokenScreen.hide();

u.observeProgress(function (progress) {
switch(progress.pluginStatus) {
case "broken":
$brokenScreen.find("a").click(function (e) {
e.stopPropagation();
e.preventDefault();
u.installPlugin();
return false;
});
$brokenScreen.show();
break;
case "missing":
$missingScreen.find("a").click(function (e) {
e.stopPropagation();
e.preventDefault();
u.installPlugin();
return false;
});
$missingScreen.show();
break;
case "installed":
$missingScreen.remove();
break;
case "first":
break;
}
});
u.initPlugin(jQuery("#unityPlayer")[0], "Sebastian_1942.unity3d");
});
-->
</script>
<style type="text/css">
<!--
body {
font-family: Helvetica, Verdana, Arial, sans-serif;
background-color: black;
color: white;
text-align: center;
}
a:link, a:visited {
color: #bfbfbf;
}
a:active, a:hover {
color: #bfbfbf;
}
p.header {
font-size: small;
}
p.header span {
font-weight: bold;
}
p.footer {
font-size: x-small;
}
div.content {
margin: auto;
width: 1280px;
}
div.broken,
div.missing {
margin: auto;
position: relative;
top: 50%;
width: 193px;
}
div.broken a,
div.missing a {
height: 63px;
position: relative;
top: -31px;
}
div.broken img,
div.missing img {
border-width: 0px;
}
div.broken {
display: none;
}
div#unityPlayer {
cursor: default;
height: 720px;
width: 1280px;
}
-->
</style>
</head>
<body>
<p class="header"><span>Unity Web Player | </span>19-Bricktey-2</p>
<div class="content">
<div id="unityPlayer">
<div class="missing">
<a href="http://unity3d.com/webplayer/" title="Unity Web Player. Install now!">
<img alt="Unity Web Player. Install now!" src="http://webplayer.unity3d.com/installation/getunity.png" width="193" height="63" />
</a>
</div>
</div>
</div>
<p class="footer">&laquo; created with <a href="http://unity3d.com/unity/" title="Go to unity3d.com">Unity</a> &raquo;</p>
</body>
</html>
Binary file not shown.
Binary file not shown.

Some generated files are not rendered by default. Learn more.

Binary file not shown.

Some generated files are not rendered by default. Learn more.

Binary file not shown.

Some generated files are not rendered by default. Learn more.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -131,28 +131,41 @@ IEnumerator EnemySpawn()
iTween.MoveTo(enemy1_right3, iTween.Hash("path", iTweenPath.GetPath("RightCurve3"), "time", 10)); iTween.MoveTo(enemy1_right3, iTween.Hash("path", iTweenPath.GetPath("RightCurve3"), "time", 10));
// EdgeSpawnLast(); // EdgeSpawnLast();


yield return new WaitForSeconds(2f); yield return new WaitForSeconds(5f);
MidSpawnEdges(); MidSpawnEdges();


yield return new WaitForSeconds(2f); yield return new WaitForSeconds(3f);
MidSpawnMids(); MidSpawnMids();
yield return new WaitForSeconds(2f); yield return new WaitForSeconds(8f);


EdgeSpawn(); EdgeSpawn();
MidSpawnEdges(); MidSpawnEdges();
yield return new WaitForSeconds(2f); yield return new WaitForSeconds(4f);


EdgeSpawn(); EdgeSpawn();
EdgeSpawnIn(); EdgeSpawnIn();
yield return new WaitForSeconds(2f); yield return new WaitForSeconds(4f);


EdgeSpawnLast(); EdgeSpawnLast();
MidSpawnMids(); MidSpawnMids();
EdgeSpawnLast(); EdgeSpawnLast();
yield return new WaitForSeconds(2f); yield return new WaitForSeconds(6f);

EdgeSpawnLast();

EdgeSpawnIn();
EdgeSpawn();
yield return new WaitForSeconds(4f);
MidSpawnEdges();
yield return new WaitForSeconds(5f);
EdgeSpawnLast();
EdgeSpawnIn();
EdgeSpawn();
EdgeSpawn();
EdgeSpawnIn();
MidSpawnEdges();
MidSpawnMids();


yield return new WaitForSeconds(8f);
Application.LoadLevel(3);
Debug.Log("enumerator Ends"); Debug.Log("enumerator Ends");


} }
@@ -28,24 +28,24 @@ void OnCollisionEnter(Collision collision)
brick3 = (GameObject)Instantiate(piece3, new Vector3(gameObject.transform.position.x - 1.4f, gameObject.transform.position.y + 2, 5), Quaternion.identity); brick3 = (GameObject)Instantiate(piece3, new Vector3(gameObject.transform.position.x - 1.4f, gameObject.transform.position.y + 2, 5), Quaternion.identity);
brick4 = (GameObject)Instantiate(piece4, new Vector3(gameObject.transform.position.x + 3, gameObject.transform.position.y + 1, 5), Quaternion.identity); brick4 = (GameObject)Instantiate(piece4, new Vector3(gameObject.transform.position.x + 3, gameObject.transform.position.y + 1, 5), Quaternion.identity);


iTween.MoveTo(brick1, new Vector3(brick1.transform.position.x + 20, brick1.transform.position.y - 17, 5), 10); iTween.MoveTo(brick1, new Vector3(brick1.transform.position.x + 20, brick1.transform.position.y - 17, 5), 15);
iTween.MoveTo(brick2, new Vector3(brick1.transform.position.x - 22, brick1.transform.position.y + 35, 5), 10); iTween.MoveTo(brick2, new Vector3(brick1.transform.position.x - 22, brick1.transform.position.y + 35, 5), 16);
iTween.MoveTo(brick3, new Vector3(brick1.transform.position.x - 35, brick1.transform.position.y - 22, 5), 10); iTween.MoveTo(brick3, new Vector3(brick1.transform.position.x - 35, brick1.transform.position.y - 22, 5), 17);
iTween.MoveTo(brick4, new Vector3(brick1.transform.position.x + 40, brick1.transform.position.y + 20, 5), 10); iTween.MoveTo(brick4, new Vector3(brick1.transform.position.x + 40, brick1.transform.position.y + 20, 5), 16);
Destroy(gameObject); Destroy(gameObject);
} }
if (brick1.transform.position.z != 5) //if (brick1.transform.position.z != 5)
brick1.transform.position = new Vector3(brick1.transform.position.x, brick1.transform.position.y, 5); // brick1.transform.position = new Vector3(brick1.transform.position.x, brick1.transform.position.y, 5);
if (brick2.transform.position.z != 5) //if (brick2.transform.position.z != 5)
brick2.transform.position = new Vector3(brick2.transform.position.x, brick2.transform.position.y, 5); // brick2.transform.position = new Vector3(brick2.transform.position.x, brick2.transform.position.y, 5);
if (brick3.transform.position.z != 5) //if (brick3.transform.position.z != 5)
brick3.transform.position = new Vector3(brick3.transform.position.x, brick3.transform.position.y, 5); // brick3.transform.position = new Vector3(brick3.transform.position.x, brick3.transform.position.y, 5);
if (brick4.transform.position.z != 5) //if (brick4.transform.position.z != 5)
brick4.transform.position = new Vector3(brick4.transform.position.x, brick4.transform.position.y, 5); // brick4.transform.position = new Vector3(brick4.transform.position.x, brick4.transform.position.y, 5);
} }


void Update() void Update()
{ {
gameObject.transform.eulerAngles = new Vector3(gameObject.transform.eulerAngles.x + 5, gameObject.transform.eulerAngles.y, gameObject.transform.eulerAngles.z); // gameObject.transform.eulerAngles = new Vector3(gameObject.transform.eulerAngles.x + 5, gameObject.transform.eulerAngles.y, gameObject.transform.eulerAngles.z);
} }
} }
@@ -3,14 +3,36 @@


public class LegosteroidSpawner : MonoBehaviour { public class LegosteroidSpawner : MonoBehaviour {


// Use this for initialization public GameObject asteroid;
void Start () {

public GameObject spawnAsteroid1;
} public GameObject spawnAsteroid2;
public GameObject spawnAsteroid3;
public GameObject spawnAsteroid4;

// Use this for initialization
void Start ()
{
StartCoroutine(AsteroidSpawn());

}



IEnumerator AsteroidSpawn() IEnumerator AsteroidSpawn()
{ {
yield return new WaitForSeconds(0.2f); yield return new WaitForSeconds(5f);
spawnAsteroid1 = (GameObject)Instantiate(asteroid, new Vector3(-20.02866f, 11.89162f, 10f), Quaternion.identity);
iTween.MoveTo(spawnAsteroid1, new Vector3(31.74726f, -10.16816f, 10f), 10);
yield return new WaitForSeconds(3f);
spawnAsteroid1 = (GameObject)Instantiate(asteroid, new Vector3(-5.576063f, 14.47898f, 10f), Quaternion.identity);
iTween.MoveTo(spawnAsteroid1, new Vector3(-18.1424f, -11.79514f, 10f), 10);
yield return new WaitForSeconds(7f);
spawnAsteroid1 = (GameObject)Instantiate(asteroid, new Vector3(-19.92406f, 5.991251f, 10f), Quaternion.identity);
iTween.MoveTo(spawnAsteroid1, new Vector3(28.23111f, 10.77588f, 10f), 10);
yield return new WaitForSeconds(5f);
spawnAsteroid1 = (GameObject)Instantiate(asteroid, new Vector3(19.55236f, 14.41265f, 10f), Quaternion.identity);
iTween.MoveTo(spawnAsteroid1, new Vector3(5.40216f, -5.104211f, 10f), 10);

} }


// Update is called once per frame // Update is called once per frame
@@ -0,0 +1,35 @@
using UnityEngine;
using System.Collections;
using UnityEngine.UI;

public class Score : MonoBehaviour {
//public static string updateField;
//public static int scoreTracker = 0;
//Text updates;

//public GameObject bullet;
//void OnCollisionEnter(Collision collision)
//{
// if (collision.gameObject.tag == "Bullet")
// {
// if (other.gameObject.tag == "enemy")
// scoreTracker = scoreTracker + 10;
// }
//}
//void Awake()
//{
// updates = GetComponent<Text>();

//}

//void Start()
//{
// updateField = "000";

//}
//void Update()
//{
// updateField = scoreTracker.ToString();
//}

}

Some generated files are not rendered by default. Learn more.

@@ -0,0 +1,12 @@
using UnityEngine;
using System.Collections;

public class StartGame : MonoBehaviour {

public void PlayButton()
{
Application.LoadLevel(1);
}


}

Some generated files are not rendered by default. Learn more.

@@ -1 +1 @@
5;0;-1 6;0;-1
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.