Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
additional ship stuff
  • Loading branch information
smz11006 committed Nov 5, 2015
1 parent b21bc17 commit 9a83d46
Show file tree
Hide file tree
Showing 16 changed files with 67 additions and 13 deletions.
4 changes: 0 additions & 4 deletions ShipShooter/Assembly-CSharp-Editor.csproj
Expand Up @@ -103,10 +103,6 @@
<HintPath>C:/Program Files/Unity/Editor/Data/PlaybackEngines/iOSSupport/UnityEditor.iOS.Extensions.Xcode.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="Assembly-CSharp.csproj">
<Project>{B99BC696-7CE4-0F5D-8CA4-C88F69287869}</Project> <Name>Assembly-CSharp</Name> </ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
Expand Down
Binary file modified ShipShooter/Assets/Enemies/Enemy1 1.prefab
Binary file not shown.
2 changes: 1 addition & 1 deletion ShipShooter/Assets/Enemies/epee(1).3ds.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified ShipShooter/Assets/Scenes/GameScene.unity
Binary file not shown.
49 changes: 42 additions & 7 deletions ShipShooter/Assets/Scripts/EnemySpawner.cs
Expand Up @@ -4,7 +4,16 @@ using System.Collections;
public class EnemySpawner : MonoBehaviour {

//Numbers
public int randomNum;
public int randomNum = 0;

//Enemy Spawns
public GameObject enemy1_left1;
public int enemy1count = 0;
public GameObject enemy1_left2;
public GameObject enemy1_left3;
public GameObject enemy1_right1;
public GameObject enemy1_right2;
public GameObject enemy1_right3;

//vectors
public Vector3 spawn1 = new Vector3(-17.0f, 17.0f, 5.0f);
Expand All @@ -27,8 +36,8 @@ public class EnemySpawner : MonoBehaviour {

// Use this for initialization
void Start () {
}
randomNum = 1;
}
public void Onslaught()
{
randomNum = 1;
Expand All @@ -37,17 +46,43 @@ public class EnemySpawner : MonoBehaviour {

// Update is called once per frame
void Update () {

if (randomNum > 0)
Onslaught();
}

//IEnumerator
IEnumerator EnemySpawn()
{
if (randomNum == 1)
if (enemy1count < 1)
{
enemy1_left1 = (GameObject)Instantiate(enemy1, spawn1, Quaternion.identity);
iTween.MoveTo(enemy1_left1, iTween.Hash("path", iTweenPath.GetPath("LeftCurve1"), "time", 5, "transition", "easeinSine"));
if (randomNum == 1)
{
Debug.Log("Enumerator Starts");
enemy1count = 1;
enemy1_left1 = (GameObject)Instantiate(enemy1, spawn1, Quaternion.identity);
enemy1_right1 = (GameObject)Instantiate(enemy1, spawn1, Quaternion.identity);

iTween.MoveTo(enemy1_left1, iTween.Hash("path", iTweenPath.GetPath("LeftCurve1"), "time", 10));
iTween.MoveTo(enemy1_right1, iTween.Hash("path", iTweenPath.GetPath("RightCurve1"), "time", 10));

yield return new WaitForSeconds(0.2f);
enemy1_left2 = (GameObject)Instantiate(enemy1, spawn2, Quaternion.identity);
enemy1_right2 = (GameObject)Instantiate(enemy1, spawn2, Quaternion.identity);

iTween.MoveTo(enemy1_left2, iTween.Hash("path", iTweenPath.GetPath("LeftCurve2"), "time", 10));
iTween.MoveTo(enemy1_right2, iTween.Hash("path", iTweenPath.GetPath("RightCurve2"), "time", 10));

yield return new WaitForSeconds(0.2f);
enemy1_left3 = (GameObject)Instantiate(enemy1, spawn3, Quaternion.identity);
enemy1_right3 = (GameObject)Instantiate(enemy1, spawn3, Quaternion.identity);

iTween.MoveTo(enemy1_left3, iTween.Hash("path", iTweenPath.GetPath("LeftCurve3"), "time", 10));
iTween.MoveTo(enemy1_right3, iTween.Hash("path", iTweenPath.GetPath("RightCurve3"), "time", 10));

Debug.Log("enumerator Ends");
}

}
yield return new WaitForSeconds(1f);
}
}
Binary file modified ShipShooter/Library/CurrentLayout.dwlt
Binary file not shown.
Binary file not shown.
Binary file modified ShipShooter/Library/ScriptAssemblies/Assembly-CSharp.dll.mdb
Binary file not shown.
2 changes: 2 additions & 0 deletions ShipShooter/Library/ScriptAssemblies/BuiltinAssemblies.stamp
@@ -0,0 +1,2 @@
0000.55e0ab26.0000
0000.55e0ab44.0000
Binary file modified ShipShooter/Library/assetDatabase3
Binary file not shown.
Binary file modified ShipShooter/Library/expandedItems
Binary file not shown.
Binary file modified ShipShooter/Library/metadata/00/00000000000000004000000000000000
Binary file not shown.
Binary file modified ShipShooter/Library/metadata/3f/3f48ea41e61710040923f469acf37186
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion ShipShooter/ShipShooter.sln
Expand Up @@ -23,7 +23,7 @@ Global
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(MonoDevelopProperties) = preSolution
GlobalSection(MonoDevelopProperties) = preSolution
StartupItem = Assembly-CSharp.csproj
Policies = $0
$0.TextStylePolicy = $1
Expand Down
21 changes: 21 additions & 0 deletions ShipShooter/obj/Debug/Assembly-CSharp.csproj.FileListAbsolute.txt
@@ -1 +1,22 @@
C:\Users\Drazule\Documents\Intro_Scritping\ShipShooter\obj\Debug\Assembly-CSharp.csprojResolveAssemblyReference.cache
C:\Users\Drazule\Documents\Intro_Scritping\ShipShooter\Temp\bin\Debug\Assembly-CSharp.dll
C:\Users\Drazule\Documents\Intro_Scritping\ShipShooter\Temp\bin\Debug\Assembly-CSharp.pdb
C:\Users\Drazule\Documents\Intro_Scritping\ShipShooter\Temp\bin\Debug\Mono.Cecil.dll
C:\Users\Drazule\Documents\Intro_Scritping\ShipShooter\Temp\bin\Debug\UnityEditor.dll
C:\Users\Drazule\Documents\Intro_Scritping\ShipShooter\Temp\bin\Debug\UnityEditor.iOS.Extensions.Xcode.dll
C:\Users\Drazule\Documents\Intro_Scritping\ShipShooter\Temp\bin\Debug\UnityEngine.dll
C:\Users\Drazule\Documents\Intro_Scritping\ShipShooter\Temp\bin\Debug\UnityEngine.Networking.dll
C:\Users\Drazule\Documents\Intro_Scritping\ShipShooter\Temp\bin\Debug\UnityEngine.UI.dll
C:\Users\Drazule\Documents\Intro_Scritping\ShipShooter\Temp\bin\Debug\Unity.SerializationLogic.dll
C:\Users\Drazule\Documents\Intro_Scritping\ShipShooter\Temp\bin\Debug\Unity.DataContract.dll
C:\Users\Drazule\Documents\Intro_Scritping\ShipShooter\Temp\bin\Debug\ICSharpCode.NRefactory.dll
C:\Users\Drazule\Documents\Intro_Scritping\ShipShooter\Temp\bin\Debug\Unity.UNetWeaver.dll
C:\Users\Drazule\Documents\Intro_Scritping\ShipShooter\Temp\bin\Debug\Unity.CecilTools.dll
C:\Users\Drazule\Documents\Intro_Scritping\ShipShooter\Temp\bin\Debug\Mono.Cecil.Pdb.dll
C:\Users\Drazule\Documents\Intro_Scritping\ShipShooter\Temp\bin\Debug\Mono.Cecil.Mdb.dll
C:\Users\Drazule\Documents\Intro_Scritping\ShipShooter\Temp\bin\Debug\UnityEngine.xml
C:\Users\Drazule\Documents\Intro_Scritping\ShipShooter\Temp\bin\Debug\UnityEditor.xml
C:\Users\Drazule\Documents\Intro_Scritping\ShipShooter\Temp\bin\Debug\UnityEngine.UI.xml
C:\Users\Drazule\Documents\Intro_Scritping\ShipShooter\Temp\bin\Debug\UnityEngine.Networking.xml
C:\Users\Drazule\Documents\Intro_Scritping\ShipShooter\obj\Debug\Assembly-CSharp.dll
C:\Users\Drazule\Documents\Intro_Scritping\ShipShooter\obj\Debug\Assembly-CSharp.pdb

0 comments on commit 9a83d46

Please sign in to comment.