Skip to content
Permalink
Browse files

GOOODBYYYYE MOONMEN

  • Loading branch information
smz11006 committed Nov 10, 2015
1 parent 6e157e7 commit 1d0e265c8a733136665dd5dc31f33cd19de3c6e6
Showing with 72 additions and 4 deletions.
  1. BIN ShipShooter/Assets/Scenes/GameScene.unity
  2. BIN ShipShooter/Assets/Scenes/ShipLose.unity
  3. +8 −0 ShipShooter/Assets/Scenes/ShipLose.unity.meta
  4. BIN ShipShooter/Assets/Scenes/ShipMenu.unity
  5. +8 −0 ShipShooter/Assets/Scenes/ShipMenu.unity.meta
  6. BIN ShipShooter/Assets/Scenes/ShipWin.unity
  7. +8 −0 ShipShooter/Assets/Scenes/ShipWin.unity.meta
  8. +25 −0 ShipShooter/Assets/Scripts/Boundries.cs
  9. +12 −0 ShipShooter/Assets/Scripts/Boundries.cs.meta
  10. +6 −4 ShipShooter/Assets/Scripts/Enemy1.cs
  11. +4 −0 ShipShooter/Assets/Scripts/PlayerHealth.cs
  12. BIN ShipShooter/Library/CurrentLayout.dwlt
  13. BIN ShipShooter/Library/EditorUserBuildSettings.asset
  14. BIN ShipShooter/Library/InspectorExpandedItems.asset
  15. BIN ShipShooter/Library/ScriptAssemblies/Assembly-CSharp-Editor.dll.mdb
  16. BIN ShipShooter/Library/ScriptAssemblies/Assembly-CSharp.dll.mdb
  17. BIN ShipShooter/Library/assetDatabase3
  18. BIN ShipShooter/Library/expandedItems
  19. BIN ShipShooter/Library/metadata/00/00000000000000003000000000000000
  20. BIN ShipShooter/Library/metadata/00/00000000000000004000000000000000
  21. BIN ShipShooter/Library/metadata/00/0000000000000000b000000000000000
  22. BIN ShipShooter/Library/metadata/3d/3d6f92a605a842645b772002f4f174a9
  23. BIN ShipShooter/Library/metadata/87/87ec0692c3ffe0a4f9f04b79772bc1ec
  24. BIN ShipShooter/Library/metadata/87/87ec0692c3ffe0a4f9f04b79772bc1ec.info
  25. BIN ShipShooter/Library/metadata/9d/9d14285d45a82d5438c55b502fcd8aee
  26. BIN ShipShooter/Library/metadata/9d/9d14285d45a82d5438c55b502fcd8aee.info
  27. BIN ShipShooter/Library/metadata/a6/a6f9349b34c22f541851dd408139262c
  28. BIN ShipShooter/Library/metadata/a6/a6f9349b34c22f541851dd408139262c.info
  29. BIN ShipShooter/Library/metadata/b3/b3fbc82f895666d44928830fde115913
  30. BIN ShipShooter/Library/metadata/d8/d863e1c73ffb0ef4a82e3ec40ab2f103
  31. BIN ShipShooter/Library/metadata/d8/d863e1c73ffb0ef4a82e3ec40ab2f103.info
  32. BIN ShipShooter/ProjectSettings/EditorBuildSettings.asset
  33. BIN ShipShooter/ProjectSettings/TagManager.asset
  34. +1 −0 ShipShooter/ShipShooter.CSharp.csproj
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.

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

public class Boundries : MonoBehaviour
{
void OnCollisionEnter(Collision collision)
{
if (collision.gameObject.CompareTag("EnemyBullet"))
{
Destroy(collision.gameObject);

}

if (collision.gameObject.CompareTag("Enemy"))
{
Destroy(collision.gameObject);

}
if (collision.gameObject.CompareTag("Bullet"))
{
Destroy(collision.gameObject);

}
}
}

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

@@ -7,6 +7,7 @@ public class Enemy1 : MonoBehaviour {

public Vector3 enemyAngle = new Vector3(0, 90, 270);
public float test;
public int testInt;

//shooting -----------------------
public GameObject turret;
@@ -27,12 +28,13 @@ void OnCollisionEnter(Collision collision)
void Update()
{
test = gameObject.transform.position.y;
//shooting---------------------------------------------------------------------------------
posCanon = new Vector3(turret.transform.position.x, turret.transform.position.y - 0.5f, turret.transform.position.z);
if (test % 2 == 0)
testInt = Mathf.RoundToInt(test);
//shooting---------------------------------------------------------------------------------
posCanon = new Vector3(turret.transform.position.x, turret.transform.position.y - 0.5f, turret.transform.position.z);
if (testInt % 2 == 0)
{
newBullet = (GameObject)Instantiate(bullet, posCanon, transform.rotation);
iTween.MoveTo(posCanon, new Vector3(posCanon.transform.position.x, posCanon.transform.position.y - 20, 5), 1);
iTween.MoveTo(newBullet, new Vector3(newBullet.transform.position.x, newBullet.transform.position.y - 40, 5), 1);

}

@@ -62,6 +62,10 @@ void OnCollisionEnter(Collision collision)
}
}

if (playerHealth == 0)
{
}

//Start-----------------------------------------------------------
void Start()
{
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN +960 Bytes (100%) ShipShooter/Library/assetDatabase3
Binary file not shown.
BIN +300 Bytes (110%) ShipShooter/Library/expandedItems
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.
@@ -69,6 +69,7 @@
</ItemGroup>
<ItemGroup>
<Compile Include="Assets\Scripts\BackgroundScroll.cs" />
<Compile Include="Assets\Scripts\Boundries.cs" />
<Compile Include="Assets\Scripts\Enemy1.cs" />
<Compile Include="Assets\Scripts\Enemy2.cs" />
<Compile Include="Assets\Scripts\EnemySpawner.cs" />

0 comments on commit 1d0e265

Please sign in to comment.
You can’t perform that action at this time.