Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
DnD Project Finsihedish
  • Loading branch information
smz11006 committed Nov 19, 2015
1 parent 5482baf commit 19ad453
Show file tree
Hide file tree
Showing 695 changed files with 25,816 additions and 52 deletions.
131 changes: 131 additions & 0 deletions 0_Game_Submission_Builds/DnD_CharGen/DnD_CharGen.html
@@ -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 | DnD Project</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: 960,
height: 600,
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], "DnD_CharGen.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: 960px;
}
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: 600px;
width: 960px;
}
-->
</style>
</head>
<body>
<p class="header"><span>Unity Web Player | </span>DnD Project</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.
15 changes: 12 additions & 3 deletions DnD Project/Assets/RNG_Cha.cs
@@ -1,17 +1,26 @@
using UnityEngine;
using System.Collections;
using UnityEngine.UI;

public class RNG_Cha : MonoBehaviour {
//Base Values
public int ChaValue = 0;
public int ChaValue1 = 0;
public int ChaValue2 = 0;
public int ChaValue3 = 0;
private string ChaString;
public static string ChaString;

Text updates;

void Awake()
{
updates = GetComponent<Text>();
ChaString = "Cha:";

}

// Use this for initialization
void Start()
public void Roll()
{
//Rolls
ChaValue1 = Random.Range(1, 6);
Expand All @@ -27,6 +36,6 @@ public class RNG_Cha : MonoBehaviour {
// Update is called once per frame
void Update()
{

updates.text = "Cha: " + ChaString;
}
}
14 changes: 12 additions & 2 deletions DnD Project/Assets/RNG_Dex.cs
@@ -1,5 +1,6 @@
using UnityEngine;
using System.Collections;
using UnityEngine.UI;

public class RNG_Dex : MonoBehaviour
{
Expand All @@ -8,11 +9,18 @@ public class RNG_Dex : MonoBehaviour
public int DexValue1 = 0;
public int DexValue2 = 0;
public int DexValue3 = 0;
private string DexString;
public static string DexString;

Text updates;
void Awake()
{
updates = GetComponent<Text>();
DexString = "Dex:";

}

// Use this for initialization
void Start()
public void Roll()
{
//Rolls
DexValue1 = Random.Range(1, 6);
Expand All @@ -28,6 +36,8 @@ public class RNG_Dex : MonoBehaviour
// Update is called once per frame
void Update()
{
updates.text = "Dex: " + DexString;


}
}
13 changes: 12 additions & 1 deletion DnD Project/Assets/RNG_HP.cs
@@ -1,5 +1,6 @@
using UnityEngine;
using System.Collections;
using UnityEngine.UI;

public class RNG_HP : MonoBehaviour {
//HP Base Values
Expand All @@ -23,9 +24,17 @@ public class RNG_HP : MonoBehaviour {

private string ConString;

Text updates;

void Awake()
{
updates = GetComponent<Text>();
HPString = "HP:";

}

// Use this for initialization
void Start()
public void Roll()
{
//HP Rolls
HPValue1 = Random.Range(1, 8);
Expand Down Expand Up @@ -53,5 +62,7 @@ public class RNG_HP : MonoBehaviour {
// Update is called once per frame
void Update()
{
updates.text = "HP: " + HPString;

}
}
12 changes: 10 additions & 2 deletions DnD Project/Assets/RNG_Int.cs
@@ -1,5 +1,6 @@
using UnityEngine;
using System.Collections;
using UnityEngine.UI;

public class RNG_Int : MonoBehaviour
{
Expand All @@ -8,11 +9,17 @@ public class RNG_Int : MonoBehaviour
public int IntValue1 = 0;
public int IntValue2 = 0;
public int IntValue3 = 0;
private string IntString;
public static string IntString;
Text updates;
void Awake()
{
updates = GetComponent<Text>();
IntString = "Int:";

}

// Use this for initialization
void Start()
public void Roll()
{
//Rolls
IntValue1 = Random.Range(1, 6);
Expand All @@ -28,6 +35,7 @@ public class RNG_Int : MonoBehaviour
// Update is called once per frame
void Update()
{
updates.text = "Int: " + IntString;

}
}
Expand Down
21 changes: 11 additions & 10 deletions DnD Project/Assets/RNG_Str.cs
Expand Up @@ -11,11 +11,19 @@ public class RNG_Str : MonoBehaviour {
public int StrValue1 = 0;
public int StrValue2 = 0;
public int StrValue3 = 0;
private string StrString;
public static string StrString;
Text updates;
void Awake()
{
updates = GetComponent<Text>();
StrString = "Str:";

}


// Use this for initialization
void Start() {
public void Roll()
{
//Strength Rolls
StrValue1 = Random.Range(1, 6);
StrValue2 = Random.Range(1, 6);
Expand All @@ -33,18 +41,11 @@ public class RNG_Str : MonoBehaviour {
strText.text = StrString;
}

// Use this for initialization
void start ()
{
//setPropertyModification(RNG_Str as Text as strText);
// UnityEditor.PrefabUtility.ReplacePrefab(strText, strText);
//strText.guiText.
}


// Update is called once per frame
void Update()
{
updates.text = "Str: " + StrString;

}
}
Expand Down
12 changes: 10 additions & 2 deletions DnD Project/Assets/RNG_Wis.cs
@@ -1,5 +1,6 @@
using UnityEngine;
using System.Collections;
using UnityEngine.UI;

public class RNG_Wis : MonoBehaviour
{
Expand All @@ -8,11 +9,17 @@ public class RNG_Wis : MonoBehaviour
public int WisValue1 = 0;
public int WisValue2 = 0;
public int WisValue3 = 0;
private string WisString;
public static string WisString;
Text updates;
void Awake()
{
updates = GetComponent<Text>();
WisString = "Wis:";

}

// Use this for initialization
void Start()
public void Roll()
{
//Rolls
WisValue1 = Random.Range(1, 6);
Expand All @@ -28,6 +35,7 @@ public class RNG_Wis : MonoBehaviour
// Update is called once per frame
void Update()
{
updates.text = "Wis: " + WisString;

}
}
Binary file modified DnD Project/Assets/WriteText.unity
Binary file not shown.

0 comments on commit 19ad453

Please sign in to comment.