Skip to content
Permalink
Browse files

Combat System Project

Submission of Combat System Project.
  • Loading branch information
jaf13010 committed Sep 15, 2015
1 parent 32a800f commit 41c9a7fc393a39f2c46d5f01baad104be68f8c55
Showing with 3,196 additions and 114 deletions.
  1. +1 −0 Assembly-CSharp-vs.csproj
  2. +1 −0 Assembly-CSharp.csproj
  3. BIN Assets/Class2.unity
  4. +8 −0 Assets/Class2.unity.meta
  5. +9 −0 Assets/Fonts.meta
  6. BIN Assets/Fonts/OpenSans-ExtraBold.ttf
  7. +18 −0 Assets/Fonts/OpenSans-ExtraBold.ttf.meta
  8. BIN Assets/Fonts/nevis.ttf
  9. +18 −0 Assets/Fonts/nevis.ttf.meta
  10. BIN Assets/Materials/Background.mat
  11. +8 −0 Assets/Materials/Background.mat.meta
  12. +23 −1 Assets/Scripts/HelloWorld.cs
  13. +164 −0 Assets/TextBox.cs
  14. +12 −0 Assets/TextBox.cs.meta
  15. BIN Assets/Textures/tileable_wood_planks_texture_DIFFUSE.jpg
  16. +0 −55 Assets/Textures/tileable_wood_planks_texture_DIFFUSE.jpg.meta
  17. BIN Assets/Textures/tileable_wood_planks_texture_NORMAL.jpg
  18. +0 −55 Assets/Textures/tileable_wood_planks_texture_NORMAL.jpg.meta
  19. BIN Assets/WriteText.unity
  20. +8 −0 Assets/WriteText.unity.meta
  21. BIN Assets/WriteText2.unity
  22. +8 −0 Assets/WriteText2.unity.meta
  23. BIN Assets/combatSystem.unity
  24. +8 −0 Assets/combatSystem.unity.meta
  25. BIN Assets/combatSystem2.unity
  26. +8 −0 Assets/combatSystem2.unity.meta
  27. BIN Library/AssetServerCacheV3
  28. BIN Library/CurrentLayout.dwlt
  29. BIN Library/InspectorExpandedItems.asset
  30. BIN Library/ScriptAssemblies/Assembly-CSharp.dll
  31. BIN Library/ScriptAssemblies/Assembly-CSharp.dll.mdb
  32. BIN Library/ShaderCache/3/341ea000cb9e7a1441361600d79e383a.bin
  33. BIN Library/ShaderCache/4/40504ea45851533eb65f9f0b22bced9b.bin
  34. BIN Library/ShaderCache/6/6114d69871b1853717b48f14c5b90a72.bin
  35. BIN Library/ShaderCache/9/916ec3d937cb01da16d32444b9094b85.bin
  36. BIN Library/ShaderCache/9/9e1c12687bbd3f1e1a751b1092abcf40.bin
  37. BIN Library/ShaderCache/b/b0b72e5f0cce8e9855f106d8c65a3181.bin
  38. BIN Library/ShaderCache/b/bad29e567cac713566820606b79d51f3.bin
  39. BIN Library/ShaderCache/d/ddb1ea21411cd06f2cc8536571e1c352.bin
  40. BIN Library/ShaderCache/d/de056ced8e4b61b309d7d4217dfd611a.bin
  41. BIN Library/ShaderCache/e/eba53a0b11a1a722585d25f4b3c216c0.bin
  42. BIN Library/assetDatabase3
  43. BIN Library/expandedItems
  44. BIN Library/guidmapper
  45. BIN Library/metadata/00/00000000000000004000000000000000
  46. BIN Library/metadata/00/00000000000000009000000000000000
  47. BIN Library/metadata/22/227edf2549b504ff4a1b2d785df23217
  48. BIN Library/metadata/22/227edf2549b504ff4a1b2d785df23217.info
  49. BIN Library/metadata/33/33d0dc660942b4315aa5b95dbd2426b5
  50. BIN Library/metadata/33/33d0dc660942b4315aa5b95dbd2426b5.info
  51. BIN Library/metadata/3a/3a896b15c07e3448d9a8a7195aea06cd
  52. BIN Library/metadata/3a/3a896b15c07e3448d9a8a7195aea06cd.info
  53. BIN Library/metadata/4a/4a0a2011e795927489ecc480c9521982
  54. BIN Library/metadata/4a/4a0a2011e795927489ecc480c9521982.info
  55. BIN Library/metadata/4d/4daaba64f8a654f05b175b4954096be3
  56. BIN Library/metadata/4d/4daaba64f8a654f05b175b4954096be3.info
  57. BIN Library/metadata/5a/5a26334d6d86a4486b916b83308d569c
  58. BIN Library/metadata/5a/5a26334d6d86a4486b916b83308d569c.info
  59. BIN Library/metadata/5c/5c72e5484893b4c55aad488fd9107b89
  60. BIN Library/metadata/5c/5c72e5484893b4c55aad488fd9107b89.info
  61. BIN Library/metadata/85/85e70972179a34161bdc1fa54ed9c0f5
  62. BIN Library/metadata/9c/9c06ef1492d0947f3b186e1910c7dbbd
  63. BIN Library/metadata/9c/9c06ef1492d0947f3b186e1910c7dbbd.info
  64. BIN Library/metadata/9d/9d96f8a0df5694a059aa391a69461d1a
  65. BIN Library/metadata/9d/9d96f8a0df5694a059aa391a69461d1a.info
  66. BIN Library/metadata/af/af66d04236f064e88949bfe18c5f6213
  67. BIN Library/metadata/af/af66d04236f064e88949bfe18c5f6213.info
  68. BIN Library/metadata/b7/b7d5d220c98884c89a7e80d89d604851
  69. BIN Library/metadata/b7/b7d5d220c98884c89a7e80d89d604851.info
  70. BIN Library/metadata/d0/d0f155cf1c9d44fe7bb426757562e13b
  71. BIN Library/metadata/d0/d0f155cf1c9d44fe7bb426757562e13b.info
  72. +17 −1 Library/shadercompiler-64bit-1.log
  73. BIN ProjectSettings/QualitySettings.asset
  74. +1 −1 Script_1-csharp.sln
  75. +1 −1 Script_1.sln
  76. +12 −0 Script_1.userprefs
  77. BIN Temp/ProcessJobs/e9a6970f79cd12d8b075e7d72f1b07cb.bakert
  78. +61 −0 Temp/UnityTempFile-0c4cab94494db47e2b123adc5dd37150
  79. +61 −0 Temp/UnityTempFile-10d19b09449f040b3848c539f1acbac0
  80. +61 −0 Temp/UnityTempFile-118c2f330770345edabcd8bb593e2070
  81. +61 −0 Temp/UnityTempFile-14881ab2abeae45d78164bd1f1f87e0e
  82. +61 −0 Temp/UnityTempFile-14c66017c155744b6a9f1d0be97c147b
  83. +61 −0 Temp/UnityTempFile-1c69e1d565dca4213b80aeb744a05ca4
  84. +61 −0 Temp/UnityTempFile-1c964b47f34bb4489baf9fed5f33a0a5
  85. +61 −0 Temp/UnityTempFile-271b49459ede3423dbed0f005bb8cb72
  86. +61 −0 Temp/UnityTempFile-2bbc7a112d43e4daf98dabe8e4a81138
  87. +61 −0 Temp/UnityTempFile-2be7f0976177c4392b7d2810ed0a6c6c
  88. +62 −0 Temp/UnityTempFile-3dc31bf20060e40e7a7ed72844c11451
  89. +61 −0 Temp/UnityTempFile-4548d4f09b3e64cff8234527ef2226be
  90. +61 −0 Temp/UnityTempFile-46670314b8b20433dac520fa7e05ccb8
  91. +61 −0 Temp/UnityTempFile-4f70f892164df49b0b66f1d7ed6f545e
  92. +61 −0 Temp/UnityTempFile-569577ea92eb04de6b54164067847b9d
  93. +61 −0 Temp/UnityTempFile-5ac00361502a840c484f356a3147c52c
  94. +61 −0 Temp/UnityTempFile-68ab141fb6a074f5c8b5ed2edfedb6f5
  95. +61 −0 Temp/UnityTempFile-6a023a5d2f4a340a591116b915e6a30a
  96. +61 −0 Temp/UnityTempFile-6c6dab9cf3b2f4b67983f8ed33531810
  97. +61 −0 Temp/UnityTempFile-70e32f8f64ffd42d18fd0a9475f86543
  98. +61 −0 Temp/UnityTempFile-722d01f02bd4e4bc1b1f5ab18986ca2c
  99. +61 −0 Temp/UnityTempFile-72fcbd187e6d443de9d9f276b116c948
  100. +62 −0 Temp/UnityTempFile-751fd5064119d4be59e74b2993ffb542
  101. +61 −0 Temp/UnityTempFile-7a3033660b65f491195896ad00f30caf
  102. +61 −0 Temp/UnityTempFile-7f7e18859b66147589bd738bd2defceb
  103. +62 −0 Temp/UnityTempFile-81e0b3bdc1ea44a8e8abc76a5bf862fa
  104. +61 −0 Temp/UnityTempFile-8320068130cb74a0cbf92971f73cc7c3
  105. +61 −0 Temp/UnityTempFile-844214380e22b45219cdc338b1c6b639
  106. +61 −0 Temp/UnityTempFile-85115bee55be74c54993e748eb809a3a
  107. +61 −0 Temp/UnityTempFile-88681e4c80bdd45b7a37f94e8ab156b2
  108. +61 −0 Temp/UnityTempFile-8a953a200d565419fa81eeb5f2eab3f0
  109. +61 −0 Temp/UnityTempFile-a41d9303d5b724f73a6de582af1ec9b2
  110. +61 −0 Temp/UnityTempFile-b084a1b03b36b423aaceb8501f9b2d84
  111. +61 −0 Temp/UnityTempFile-b628a519d30fe4a69be449813a888bfc
  112. +61 −0 Temp/UnityTempFile-b8d730f55eb2b4a3d8d9299864159d19
  113. +61 −0 Temp/UnityTempFile-bbd63b01d98fa46378343a323f38c879
  114. +61 −0 Temp/UnityTempFile-d529a1fd5f73149bdaa5b1d883498662
  115. +61 −0 Temp/UnityTempFile-d75acdefa76094ad2be62bb5df6b6661
  116. +61 −0 Temp/UnityTempFile-e0751c38be1474f4597e12fd00229fe8
  117. +62 −0 Temp/UnityTempFile-e6473583aadc5467db9927ab3b3432ea
  118. +61 −0 Temp/UnityTempFile-e8d032f5cf62d46f483170b156bd51b7
  119. +61 −0 Temp/UnityTempFile-eb5a92542c88a4e059141b53f33dd9e0
  120. +61 −0 Temp/UnityTempFile-f25bcddb21f0448a3af956efddd03b9f
  121. +61 −0 Temp/UnityTempFile-f7b4894c50a8d4e1c933dca2df57075e
  122. +61 −0 Temp/UnityTempFile-fb1980be4d8b742ccae2639f31964210
  123. +61 −0 Temp/UnityTempFile-fb6db5784c92545b8821dd5b52ee2865
  124. +61 −0 Temp/UnityTempFile-fecec8c4c56904768aa4717d7fa0ef86
  125. BIN Temp/__EditModeScene
@@ -47,6 +47,7 @@
</ItemGroup>
<ItemGroup>
<Compile Include="Assets\Scripts\HelloWorld.cs" />
<Compile Include="Assets\TextBox.cs" />
<Reference Include="UnityEngine.UI">
<HintPath>/Applications/Unity/Unity.app/Contents/UnityExtensions/Unity/GUISystem/UnityEngine.UI.dll</HintPath>
</Reference>
@@ -47,6 +47,7 @@
</ItemGroup>
<ItemGroup>
<Compile Include="Assets\Scripts\HelloWorld.cs" />
<Compile Include="Assets\TextBox.cs" />
<Reference Include="UnityEngine.UI">
<HintPath>/Applications/Unity/Unity.app/Contents/UnityExtensions/Unity/GUISystem/UnityEngine.UI.dll</HintPath>
</Reference>
BIN +33.7 KB Assets/Class2.unity
Binary file not shown.

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

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

Binary file not shown.

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

BIN +11.9 KB Assets/Fonts/nevis.ttf
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.

@@ -3,9 +3,31 @@

public class HelloWorld : MonoBehaviour {

public bool isDead = false;
public int startingHealth = 100;
public int currentHealth;
public float dmg = 3.14f;
public string Name = "Terrence the Terrible";
public GameObject Camera;
public int strength = 0;
public int RandomNum = 0;
public string theText;
//public Text constText;

private Texture txtRef;
//public GameObject ConstText:
//public void

// Use this for initialization
void Start () {
Debug.Log ("Hello World");
RandomNum = Random.Range (1, 8);

theText = RandomNum.ToString ();

Debug.Log (theText);


//Texture.text
}

// Update is called once per frame
@@ -0,0 +1,164 @@
using UnityEngine;


//YOU MUST USE THIS LINE TO GET ACCESS TO UI STUFF
using UnityEngine.UI;



using System.Collections;

public class TextBox : MonoBehaviour {

public float Str;
public string StrString;
public float Dex;
public string DexString;
public float Con;
public string ConString;
public float Int;
public string IntString;
public float Wis;
public string WisString;
public float Chr;
public string ChrString;
public int Damage;
public string MinDamageString;
public string MaxDamageString;
public int MinDamage;
public int MaxDamage;
public int HP;
public string HPString;
public int EnemyHP;
public int EnemyHPString;
public float Hit;
public string HitString;

public Text textRef;

private float ConValuef;




// Use this for initialization
void Start () {
Str = 0;
Dex = 0;
Con = 0;
Int = 0;
Wis = 0;
Chr = 0;
Damage = 0;
EnemyHP = 0;
Hit = 0;
}

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

}
//----------------------------Hit Points--------------------------------

public void ClickTestHP(string text){
Debug.Log (text);
HP = Random.Range (1, 8); //+ ((ConValuef *10)/100);
HPString = HP.ToString ();
textRef.text = HPString;
}

//----------------------------Attributes--------------------------------

public void ClickTestStr(string text){
Debug.Log (text);
Str = Random.Range (1, 6) + Random.Range (1, 6) + Random.Range (1, 6);
StrString = Str.ToString ();
textRef.text = StrString;
}

public void ClickTestDex(string text){
Debug.Log (text);
Dex = Random.Range (1, 6) + Random.Range (1, 6) + Random.Range (1, 6);
DexString = Dex.ToString ();
textRef.text = DexString;

}

public void ClickTestCon(string text){
Debug.Log (text);
Con = Random.Range (1, 6) + Random.Range (1, 6) + Random.Range (1, 6);
ConString = Con.ToString ();
textRef.text = ConString;
}

public void ClickTestInt(string text){
Debug.Log (text);
Int = Random.Range (1, 6) + Random.Range (1, 6) + Random.Range (1, 6);
IntString = Int.ToString ();
textRef.text = IntString;
}

public void ClickTestWis(string text){
Debug.Log (text);
Wis = Random.Range (1, 6) + Random.Range (1, 6) + Random.Range (1, 6);
WisString = Wis.ToString ();
textRef.text = WisString;
}

public void ClickTestChr(string text){
Debug.Log (text);
Chr = Random.Range (1, 6) + Random.Range (1, 6) + Random.Range (1, 6);
ChrString = Chr.ToString ();
textRef.text = ChrString;
}

//----------------------------Damage----------------------------------
//Minimum
public void MinDamageButtonDown(){
MinDamage--;
MinDamageString = MinDamage.ToString ();
textRef.text = MinDamageString;

}
public void MinDamageButtonUp(){
MinDamage++;
MinDamageString = MinDamage.ToString ();
textRef.text = MinDamageString;

}
//Maximum
public void MaxDamageButtonDown(){
MaxDamage--;
MaxDamageString = MaxDamage.ToString ();
textRef.text = MaxDamageString;

}
public void MaxDamageButtonUp(){
MaxDamage++;
MaxDamageString = MaxDamage.ToString ();
textRef.text = MaxDamageString;

}


//----------------------------Enemy----------------------------------

public void ClickTestEnemyHP(string text){
Debug.Log (text);
EnemyHP = Random.Range (1, 10); //+ ((ConValuef *10)/100);
HPString = HP.ToString ();
textRef.text = HPString;
}

//----------------------------Fight-------------------------------

public void Clicktest(string text){
Debug.Log (text);
Hit = Mathf.Round (Random.Range (0f, 100f));
HitString = Hit.ToString ();
textRef.text = HitString + "%";
}
}
//percentToHit
//HitTrue
//if(

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

Binary file not shown.

This file was deleted.

Binary file not shown.

0 comments on commit 41c9a7f

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