| @@ -0,0 +1,16 @@ | ||
| using UnityEngine; | ||
| using System.Collections; | ||
|
|
||
| public class FixGravity : MonoBehaviour { | ||
|
|
||
| // Use this for initialization | ||
| void Start () { | ||
|
|
||
| } | ||
|
|
||
| // Update is called once per frame | ||
| void Update () | ||
| { | ||
| transform.rotation = Quaternion.identity; //reset rotation every frame | ||
| } | ||
| } |
| @@ -0,0 +1,50 @@ | ||
| using UnityEngine; | ||
| using System.Collections; | ||
|
|
||
| public class HUD : MonoBehaviour { | ||
|
|
||
| public Texture pauseScreen; | ||
|
|
||
| // Use this for initialization | ||
| void Start () | ||
| { | ||
| } | ||
|
|
||
| // Update is called once per frame | ||
| void Update () | ||
| { | ||
| if(Input.GetKeyDown(KeyCode.R)) | ||
| { | ||
| GlobalVars.resourcePoint += 1000; | ||
| } | ||
|
|
||
| if (Input.GetKeyDown(KeyCode.P) && StartUp.isStart == false) | ||
| { | ||
| if (Time.timeScale == 0.0f) | ||
| { | ||
| Time.timeScale = 1.0f; | ||
| } | ||
| else | ||
| { | ||
| Time.timeScale = 0.0f; | ||
| } | ||
| } | ||
| } | ||
| void OnGUI() | ||
| { | ||
|
|
||
| //GUI.Label (new Rect (0, 0, 200, 200), "Pledges: " + force.ToString()); | ||
| //GUI.Label (new Rect (0, 20, 200, 200), "Enemy Frat: " + EnemyCount.ToString()); | ||
| //GUI.Label (new Rect (0, 60, 200, 200), " Full Beers: " + GlobalVars.FullBeerCan.numFullCans.ToString()); | ||
| //GUI.Label (new Rect (0, 70, 200, 200), "Mittens: " + GlobalVars.Mittens.numMittens.ToString()); | ||
| //GUI.Label (new Rect (0, 90, 200, 200), "Muffins: " + GlobalVars.Muffins.numMuffins.ToString()); | ||
|
|
||
| //GUI.Label (new Rect (100, 50, 200, 200), "Health: " + GlobalVars.iFeltaThiHealth.ToString()); | ||
| //GUI.Label (new Rect (800, 50, 200, 200), "Health: " + GlobalVars.enemyFratHealth.ToString()); | ||
| GUI.Label (new Rect (Screen.width/2 - 100, Screen.height - 50, 200, 200), " " + GlobalVars.resourcePoint.ToString()); | ||
| if(Time.timeScale == 0.0f && StartUp.isStart == false) | ||
| { | ||
| GUI.DrawTexture(new Rect(0,0,Screen.width,Screen.height), pauseScreen); | ||
| } | ||
| } | ||
| } |
| @@ -0,0 +1,25 @@ | ||
| using UnityEngine; | ||
| using System.Collections; | ||
|
|
||
| public class CloudMove : MonoBehaviour { | ||
|
|
||
| public float Speed; | ||
| // Use this for initialization | ||
| void Start () | ||
| { | ||
|
|
||
| } | ||
|
|
||
| // Update is called once per frame | ||
| void Update () | ||
| { | ||
| if(Time.timeScale != 0.0) | ||
| { | ||
| transform.Translate(Speed,0,0); | ||
| } | ||
| if(transform.position.x >= 70 || transform.position.x <= -70) | ||
| { | ||
| Destroy(gameObject); | ||
| } | ||
| } | ||
| } |
| @@ -0,0 +1,81 @@ | ||
| using UnityEngine; | ||
| using System.Collections; | ||
|
|
||
| public class CloudSpawner : MonoBehaviour { | ||
|
|
||
| public GameObject cloudsLeft; | ||
| public GameObject cloudsRight; | ||
|
|
||
| public Sprite Cloud1; | ||
| public Sprite Cloud2; | ||
| public Sprite Cloud3; | ||
| public Sprite Cloud4; | ||
|
|
||
| Vector2 startpos; | ||
| public float spawnTimeLeft = 2; | ||
| public float spawnTimeRight = 3; | ||
| float timer1 = 0; | ||
| float timer2 = 0; | ||
| public float cloudHeight; | ||
| // Use this for initialization | ||
| void Start () | ||
| { | ||
| startpos = transform.position; | ||
| runCloudsRight(); | ||
| runClouldsLeft(); | ||
| cloudHeight = Random.Range (0, 50); | ||
| } | ||
|
|
||
| Sprite changeSprite() | ||
| { | ||
| int rand = Random.Range(0, 4); | ||
|
|
||
| switch(rand) | ||
| { | ||
| case 0: | ||
| return Cloud1; | ||
| case 1: | ||
| return Cloud2; | ||
| case 2: | ||
| return Cloud3; | ||
| case 3: | ||
| return Cloud4; | ||
|
|
||
| default: | ||
| return Cloud1; | ||
|
|
||
| } | ||
| } | ||
|
|
||
| // Update is called once per frame | ||
| void Update () | ||
| { | ||
| timer1 += Time.deltaTime; | ||
| timer2 += Time.deltaTime; | ||
| if ( timer1 >= spawnTimeLeft) | ||
| { | ||
| runClouldsLeft(); | ||
| timer1 = 0; | ||
| } | ||
| if(timer2 >= spawnTimeRight) | ||
| { | ||
| runCloudsRight(); | ||
| timer2 = 0; | ||
| } | ||
|
|
||
| } | ||
|
|
||
| void runClouldsLeft() | ||
| { | ||
| cloudsLeft.GetComponent<SpriteRenderer>().sprite = changeSprite(); | ||
| cloudHeight = Random.Range (0, 20); | ||
| Instantiate(cloudsLeft, new Vector2(60,startpos.y+cloudHeight), Quaternion.identity); | ||
| } | ||
|
|
||
| void runCloudsRight() | ||
| { | ||
| cloudsRight.GetComponent<SpriteRenderer>().sprite = changeSprite(); | ||
| cloudHeight = Random.Range (0, 20); | ||
| Instantiate(cloudsRight, new Vector2(-60,startpos.y+cloudHeight), Quaternion.identity); | ||
| } | ||
| } |
| @@ -0,0 +1,38 @@ | ||
| using UnityEngine; | ||
| using System.Collections; | ||
|
|
||
| public class EnemyFratDamage : MonoBehaviour { | ||
|
|
||
| public Sprite damage1; | ||
| public Sprite damage2; | ||
| public Sprite damage3; | ||
| public Sprite damage4; | ||
|
|
||
| private SpriteRenderer spriteRenderer; | ||
| // Use this for initialization | ||
| void Start () | ||
| { | ||
| spriteRenderer = GetComponent<SpriteRenderer>(); | ||
| } | ||
|
|
||
| // Update is called once per frame | ||
| void Update () | ||
| { | ||
| if(GlobalVars.enemyFratHealth <= GlobalVars.enemyFratStartHealth * 0.8f) | ||
| { | ||
| spriteRenderer.sprite = damage1; | ||
| } | ||
| if(GlobalVars.enemyFratHealth <= GlobalVars.enemyFratStartHealth * 0.6f) | ||
| { | ||
| spriteRenderer.sprite = damage2; | ||
| } | ||
| if(GlobalVars.enemyFratHealth <= GlobalVars.enemyFratStartHealth * 0.4f) | ||
| { | ||
| spriteRenderer.sprite = damage3; | ||
| } | ||
| if(GlobalVars.enemyFratHealth <= GlobalVars.enemyFratStartHealth * 0.2f) | ||
| { | ||
| spriteRenderer.sprite = damage4; | ||
| } | ||
| } | ||
| } |
| @@ -0,0 +1,38 @@ | ||
| using UnityEngine; | ||
| using System.Collections; | ||
|
|
||
| public class PlayerFratHouseChange : MonoBehaviour { | ||
|
|
||
| public Sprite damage1; | ||
| public Sprite damage2; | ||
| public Sprite damage3; | ||
| public Sprite damage4; | ||
|
|
||
| private SpriteRenderer spriteRenderer; | ||
| // Use this for initialization | ||
| void Start () | ||
| { | ||
| spriteRenderer = GetComponent<SpriteRenderer>(); | ||
| } | ||
|
|
||
| // Update is called once per frame | ||
| void Update () | ||
| { | ||
| if(GlobalVars.iFeltaThiHealth <= GlobalVars.iFeltaThiStartHealth * 0.8f) | ||
| { | ||
| spriteRenderer.sprite = damage1; | ||
| } | ||
| if(GlobalVars.iFeltaThiHealth <= GlobalVars.iFeltaThiStartHealth * 0.6f) | ||
| { | ||
| spriteRenderer.sprite = damage2; | ||
| } | ||
| if(GlobalVars.iFeltaThiHealth <= GlobalVars.iFeltaThiStartHealth * 0.4f) | ||
| { | ||
| spriteRenderer.sprite = damage3; | ||
| } | ||
| if(GlobalVars.iFeltaThiHealth <= GlobalVars.iFeltaThiStartHealth * 0.2f) | ||
| { | ||
| spriteRenderer.sprite = damage4; | ||
| } | ||
| } | ||
| } |
| @@ -0,0 +1,34 @@ | ||
| using UnityEngine; | ||
| using System.Collections; | ||
|
|
||
| public class KillBrozerker : MonoBehaviour { | ||
|
|
||
| public float timer = 0; | ||
| public GameObject rewardPoint; | ||
| // Use this for initialization | ||
| void Start () | ||
| { | ||
|
|
||
| } | ||
|
|
||
| // Update is called once per frame | ||
| void Update () | ||
| { | ||
| timer += Time.deltaTime; | ||
| if(timer > 4) | ||
| { | ||
| Destroy(gameObject); | ||
| } | ||
| } | ||
| void OnCollisionEnter2D(Collision2D col) | ||
| { | ||
| //collision with house | ||
| if(col.gameObject.tag == "NewHouse") | ||
| { | ||
| GlobalVars.enemyFratHealth -= 1.0f; | ||
| Instantiate(rewardPoint,transform.position, transform.rotation); | ||
| GlobalVars.resourcePoint += 100; | ||
| Destroy (gameObject); | ||
| } | ||
| } | ||
| } |
| @@ -0,0 +1,138 @@ | ||
| using UnityEngine; | ||
| using System.Collections; | ||
|
|
||
| public class PledgeHealth : MonoBehaviour { | ||
|
|
||
| public float pHealth; | ||
| public float pDamage; | ||
|
|
||
| //health bar variables | ||
| public Texture backgroundTexture; | ||
| public Texture foregroundTexture; | ||
| public Texture midHealthTexture; | ||
| public Texture lowHealthTexture; | ||
| public Texture frameTexture; | ||
|
|
||
| float healthWidth; | ||
| public float healthHeight = 10; | ||
|
|
||
| float frameWidth; | ||
| public float frameHeight = 11; | ||
|
|
||
| Vector2 point; | ||
| float startHealth; | ||
| float curHealth; | ||
| float startingHealth; | ||
|
|
||
| public GameObject rewardPoint; | ||
|
|
||
| public float damageReduction; | ||
| //Bro classes for reference | ||
| public static class pledge | ||
| { | ||
| public static float pledgeHealth = 2; | ||
| public static float pledgeDamage = 1.0f; | ||
|
|
||
| } | ||
| public static class fratBro | ||
| { | ||
| public static float fratBroCost = 500; | ||
| public static float fratBroHealth = 9f; | ||
| public static float fratBroDamage = 1.0f; | ||
| } | ||
| public static class beerBro | ||
| { | ||
| public static float beerBroCost = 1000; | ||
| public static float beertBroHealth = 15.0f; | ||
| public static float beerBroDamage = 1.0f; | ||
| } | ||
| public static class brosidon | ||
| { | ||
| public static float brosidonCost = 3000; | ||
| public static float brosidonHealth = 20.0f; | ||
| public static float brosidonDamage = 4.0f; | ||
| } | ||
|
|
||
| void Start () | ||
| { | ||
| startingHealth = pHealth; | ||
| curHealth = pHealth; | ||
| startHealth = pHealth; | ||
| healthWidth = pHealth * 4f; | ||
| frameWidth = pHealth * 4f + 1; | ||
|
|
||
| } | ||
|
|
||
| // Update is called once per frame | ||
| void Update () | ||
| { | ||
| //Calculate health bar pos | ||
| point = Camera.main.WorldToScreenPoint(new Vector2(transform.position.x, 0)); | ||
| //Calculate health bar length | ||
| if( startHealth != pHealth && healthWidth > 0) | ||
| { | ||
| healthWidth = pHealth * 4f; | ||
| startHealth = pHealth; | ||
| } | ||
| if(pHealth >= curHealth/5.0f && pHealth <= curHealth/2.0f) | ||
| { | ||
| foregroundTexture = midHealthTexture; | ||
| } | ||
| if(pHealth < curHealth/5.0f ) | ||
| { | ||
| foregroundTexture = lowHealthTexture; | ||
| } | ||
|
|
||
| //death check | ||
| if(pHealth <= 0) | ||
| { | ||
| //SoundController.playMaleGrunt = true; | ||
| if(startingHealth == brosidon.brosidonHealth){SoundController.playFratBroDeath = true;} | ||
| if(startingHealth == beerBro.beertBroHealth){SoundController.playBeerBroDeath = true;} | ||
| if(startingHealth == fratBro.fratBroHealth){SoundController.playBrosidonDeath = true;} | ||
| Destroy(gameObject); | ||
| } | ||
| } | ||
|
|
||
| //GUI for healthbars | ||
| void OnGUI () | ||
| { | ||
| GUI.DrawTexture( new Rect(point.x - 12,point.y , frameWidth, frameHeight), backgroundTexture); | ||
| GUI.DrawTexture( new Rect(point.x - 12,point.y ,frameWidth,frameHeight), frameTexture); | ||
| GUI.DrawTexture( new Rect(point.x - 11.5f,point.y + 0.5f,healthWidth, healthHeight), foregroundTexture); | ||
| } | ||
|
|
||
| //Collisions | ||
| void OnCollisionStay2D(Collision2D col) | ||
| { | ||
| //collisions with enemies | ||
| if(col.gameObject.tag == "eFratBro") | ||
| { | ||
| pHealth -= EnemyHealth.efratBro.efratBroDamage - damageReduction; | ||
| } | ||
| if(col.gameObject.tag == "eBeerbro") | ||
| { | ||
| pHealth -= EnemyHealth.ebeerBro.ebeerBroDamage - damageReduction; | ||
| } | ||
| if(col.gameObject.tag == "eBrosidon") | ||
| { | ||
| pHealth -= EnemyHealth.ebrosidon.ebrosidonDamage - damageReduction; | ||
| } | ||
|
|
||
| //collision with house | ||
| if(col.gameObject.tag == "NewHouse") | ||
| { | ||
| GlobalVars.enemyFratHealth -= pDamage; | ||
| if(startingHealth == fratBro.fratBroHealth) | ||
| { | ||
| Instantiate(rewardPoint,transform.position, Quaternion.identity); | ||
| } | ||
| else | ||
| { | ||
| Instantiate(rewardPoint,transform.position, transform.rotation); | ||
| } | ||
| GlobalVars.resourcePoint += 100; | ||
| Destroy(gameObject); | ||
| } | ||
| } | ||
| } |
| @@ -0,0 +1,20 @@ | ||
| using UnityEngine; | ||
| using System.Collections; | ||
|
|
||
| public class PledgeMove : MonoBehaviour { | ||
|
|
||
| public float moveX = 0.15f; | ||
| // Use this for initialization | ||
| void Start () { | ||
|
|
||
| } | ||
|
|
||
| // Update is called once per frame | ||
| void Update () | ||
| { | ||
| if(Time.timeScale != 0.0) | ||
| { | ||
| transform.Translate(moveX,0.0f,0.0f); | ||
| } | ||
| } | ||
| } |
| @@ -0,0 +1,52 @@ | ||
| using UnityEngine; | ||
| using System.Collections; | ||
|
|
||
| public class SpawnReenforcements : MonoBehaviour { | ||
|
|
||
| public GameObject pledge; | ||
| public GameObject fratBro; | ||
| public GameObject beerBro; | ||
| public GameObject brosidon; | ||
|
|
||
| Vector2 spawnPosition; | ||
| public float timeStart = 5.0f; | ||
| public float timer; | ||
|
|
||
| public static float spawnNum = 0; | ||
| // Use this for initialization | ||
| void Start () | ||
| { | ||
| spawnPosition.Set(transform.position.x,transform.position.y); | ||
| //player = GameObject.FindGameObjectWithTag("Player"); | ||
| timer = timeStart; | ||
| } | ||
|
|
||
| // Update is called once per frame | ||
| void Update () | ||
| { | ||
| if( spawnNum == 1) | ||
| { | ||
| Instantiate(fratBro, spawnPosition, Quaternion.identity); | ||
| spawnNum = 0; | ||
| } | ||
| if (spawnNum == 2) | ||
| { | ||
| Instantiate(beerBro, spawnPosition, Quaternion.identity); | ||
| spawnNum = 0; | ||
| } | ||
| if( spawnNum == 3) | ||
| { | ||
| Instantiate(brosidon, spawnPosition, Quaternion.identity); | ||
| spawnNum = 0; | ||
| } | ||
| if(timer < 0) | ||
| { | ||
| timer = timeStart; | ||
| Instantiate(pledge, spawnPosition, Quaternion.identity); | ||
| } | ||
| else | ||
| { | ||
| timer -= Time.deltaTime; | ||
| } | ||
| } | ||
| } |
| @@ -0,0 +1,30 @@ | ||
| using UnityEngine; | ||
| using System.Collections; | ||
|
|
||
| public class Brozerker : MonoBehaviour { | ||
|
|
||
| public GameObject brozerker; | ||
| // Use this for initialization | ||
| void Start () | ||
| { | ||
|
|
||
| } | ||
|
|
||
| // Update is called once per frame | ||
| void Update () | ||
| { | ||
|
|
||
| } | ||
|
|
||
| void OnCollisionEnter2D(Collision2D col) | ||
| { | ||
| if(col.gameObject.tag == "pPledge") | ||
| { | ||
| SoundController.playBrozerkerSpawn = true; | ||
| Destroy(col.gameObject); | ||
| Instantiate (brozerker, transform.position, Quaternion.identity); | ||
| Destroy(gameObject); | ||
| } | ||
|
|
||
| } | ||
| } |
| @@ -0,0 +1,49 @@ | ||
| using UnityEngine; | ||
| using System.Collections; | ||
|
|
||
| public class MittensKill : MonoBehaviour { | ||
|
|
||
| public bool start = false; | ||
| public float timerStart = 1.0f; | ||
| public float timer = 0.0f; | ||
|
|
||
| // Use this for initialization | ||
| void Start () | ||
| { | ||
|
|
||
| } | ||
|
|
||
| // Update is called once per frame | ||
| void Update () | ||
| { | ||
| if(start == true) | ||
| { | ||
| timer += Time.deltaTime; | ||
| } | ||
| if(transform.position.x > 60.0f || transform.position.y < -100) | ||
| { | ||
| Destroy (gameObject); | ||
| shootScript.addRot = 0; | ||
| } | ||
| if(timer > timerStart) | ||
| { | ||
| Destroy (gameObject); | ||
| shootScript.addRot = 0; | ||
| timer = 0.0f; | ||
| } | ||
| } | ||
|
|
||
| void OnCollisionEnter2D(Collision2D c) | ||
| { | ||
| if (c.gameObject.tag == "Ground" && start == false) | ||
| { | ||
| start = true; | ||
| shootScript.addRot += -360; | ||
| } | ||
| if ( c.gameObject.layer == 8 ) | ||
| { | ||
| SoundController.playTing = true; | ||
| Destroy (gameObject); | ||
| } | ||
| } | ||
| } |
| @@ -0,0 +1,45 @@ | ||
| using UnityEngine; | ||
| using System.Collections; | ||
|
|
||
| public class MuffinsHit : MonoBehaviour { | ||
|
|
||
| public GameObject Rubble; | ||
| public float randx; | ||
| public float randy; | ||
| bool oneHit = true; | ||
| public float force = 10; | ||
| // Use this for initialization | ||
| void Start () | ||
| { | ||
|
|
||
| } | ||
|
|
||
| // Update is called once per frame | ||
| void Update () | ||
| { | ||
|
|
||
| } | ||
| void OnCollisionEnter2D(Collision2D c) | ||
| { | ||
| if (c.gameObject.tag == "Ground" && oneHit == true) | ||
| { | ||
| oneHit = false; | ||
| //Instantiate(AoE,transform.position, Quaternion.identity); | ||
| for (int i = 0 ; i < 20 ; i++) | ||
| { | ||
| //randx = Random.Range(-200, 200); | ||
| //randy = Random.Range (0, 10); | ||
| Instantiate(Rubble,transform.position, Quaternion.identity); | ||
| //Rubble.rigidbody2D.AddForce(new Vector2(transform.position.x + randx, transform.position.y + randy)); | ||
| } | ||
| } | ||
| GameObject[] rubblePieces = GameObject.FindGameObjectsWithTag("rubble"); | ||
| for(int i = 0 ; i < rubblePieces.Length ; i++) | ||
| { | ||
| randx = Random.Range(-800, 800); | ||
| randy = Random.Range (50, 800); | ||
| rubblePieces[i].rigidbody2D.AddForce(new Vector2(transform.position.x + randx, transform.position.y + randy)); | ||
| } | ||
| } | ||
|
|
||
| } |
| @@ -0,0 +1,172 @@ | ||
| using UnityEngine; | ||
| using System.Collections; | ||
|
|
||
| public class Respawn2 : MonoBehaviour { | ||
|
|
||
| Stack projRespawn = new Stack(); | ||
|
|
||
| //Sprites | ||
| public Sprite can; | ||
| public Sprite fullCan; | ||
| public Sprite armChair; | ||
| public Sprite trashCan; | ||
| public Sprite bowlingBall; | ||
| public Sprite soloCup; | ||
| public Sprite flipFlop; | ||
| public Sprite toiletPaper; | ||
| public Sprite toiletBowl; | ||
| public Sprite tire; | ||
| public Sprite keg; | ||
| public Sprite pizza; | ||
|
|
||
| //Projectiles | ||
| public GameObject emptyCan; | ||
| public GameObject mittens; | ||
| public GameObject muffins; | ||
| public GameObject brozerkerHelmet; | ||
|
|
||
| //ButtonTextures | ||
| public Texture2D Helmet; | ||
| public Texture2D GetMittensButton; | ||
| public Texture2D GetMuffinsButton; | ||
|
|
||
| public Texture2D greyHelmet; | ||
| public Texture2D greyGetMittensButton; | ||
| public Texture2D greyGetMuffinsButton; | ||
|
|
||
| private GameObject currObj; | ||
| private GameObject[] currObjs; | ||
| //private info objInfo; | ||
|
|
||
| public static bool canFireSlingshot = true; | ||
| float timer; | ||
| // Use this for initialization | ||
| void Start () | ||
| { | ||
| canFireSlingshot = true; | ||
| } | ||
|
|
||
| Sprite changeSprite() | ||
| { | ||
| int rand = Random.Range(0, 12); | ||
|
|
||
| switch(rand) | ||
| { | ||
| case 0: | ||
| return can; | ||
|
|
||
| case 1: | ||
| return fullCan; | ||
|
|
||
| case 2: | ||
| return armChair; | ||
|
|
||
| case 3: | ||
| return trashCan; | ||
|
|
||
| case 4: | ||
| return bowlingBall; | ||
|
|
||
| case 5: | ||
| return soloCup; | ||
|
|
||
| case 6: | ||
| return flipFlop; | ||
|
|
||
| case 7: | ||
| return toiletPaper; | ||
|
|
||
| case 8: | ||
| return toiletBowl; | ||
|
|
||
| case 9: | ||
| return tire; | ||
|
|
||
| case 10: | ||
| return keg; | ||
|
|
||
| case 11: | ||
| return pizza; | ||
|
|
||
| default: | ||
| return can; | ||
|
|
||
| } | ||
| } | ||
|
|
||
| // Update is called once per frame | ||
| void Update () | ||
| { | ||
| if(GameObject.FindGameObjectsWithTag("EmptyCan").Length <= 0 && GameObject.FindGameObjectsWithTag("Muffins").Length <= 0 && GameObject.FindGameObjectsWithTag("Mittens").Length <= 0 && GameObject.FindGameObjectsWithTag("Brozerker").Length <= 0) | ||
| { | ||
| canFireSlingshot = true; | ||
| } | ||
| if(projRespawn.Count <= 6) | ||
| { | ||
| //shootScript.changeSprite(); | ||
| emptyCan.GetComponent<SpriteRenderer>().sprite = changeSprite(); | ||
| projRespawn.Push(emptyCan); | ||
| } | ||
| if(canFireSlingshot == true) | ||
| { | ||
| timer += Time.deltaTime; | ||
| } | ||
|
|
||
| if(canFireSlingshot && timer >= 1.0f) | ||
| { | ||
| Instantiate((GameObject) projRespawn.Pop(), transform.position, transform.rotation); | ||
| timer = 0; | ||
| canFireSlingshot = false; | ||
| } | ||
|
|
||
| } | ||
|
|
||
| void OnGUI() | ||
| { | ||
|
|
||
| if(SpendResources.canFireMittens && StartUp.isStart == false ) | ||
| { | ||
| if (GUI.Button(new Rect(10, 10, 80, 80), GetMittensButton, GUIStyle.none) || Input.GetKey(KeyCode.Alpha1)) | ||
| { | ||
| SoundController.playMittensMeow = true; | ||
| projRespawn.Push(mittens); | ||
| SpendResources.canFireMittens = false; | ||
| } | ||
| } | ||
| else if (SpendResources.canFireMittens == false && StartUp.isStart == false) | ||
| { | ||
| GUI.Button(new Rect(10, 10, 80, 80), greyGetMittensButton, GUIStyle.none); | ||
| } | ||
|
|
||
| if(SpendResources.canFireMuffins && StartUp.isStart == false) | ||
| { | ||
| if (GUI.Button(new Rect(10, 100, 80, 80),GetMuffinsButton, GUIStyle.none) || Input.GetKey(KeyCode.Alpha2)) | ||
| { | ||
| SoundController.playMuffinsMeow = true; | ||
| projRespawn.Push(muffins); | ||
| SpendResources.canFireMuffins = false; | ||
| } | ||
| } | ||
| else if (SpendResources.canFireMuffins == false && StartUp.isStart == false) | ||
| { | ||
| GUI.Button(new Rect(10, 100, 80, 80), greyGetMuffinsButton, GUIStyle.none); | ||
| } | ||
|
|
||
| if(SpendResources.canFireHelmet && StartUp.isStart == false) | ||
| { | ||
| if (GUI.Button(new Rect(10, 190, 80, 80),Helmet, GUIStyle.none) || Input.GetKey(KeyCode.Alpha3)) | ||
| { | ||
| //SOUND HERE | ||
| SoundController.playCanOpening = true; | ||
| projRespawn.Push(brozerkerHelmet); | ||
| SpendResources.canFireHelmet = false; | ||
| //canFireSlingshot = false; | ||
| } | ||
| } | ||
| else if (SpendResources.canFireHelmet == false && StartUp.isStart == false) | ||
| { | ||
| GUI.Button(new Rect(10, 190, 80, 80), greyHelmet, GUIStyle.none); | ||
| } | ||
|
|
||
| } | ||
| } |
| @@ -0,0 +1,23 @@ | ||
| using UnityEngine; | ||
| using System.Collections; | ||
|
|
||
| public class RubbleDestroy : MonoBehaviour { | ||
|
|
||
| public float rubbleLife = 2.0f; | ||
| public float rubbleTime; | ||
| // Use this for initialization | ||
| void Start () | ||
| { | ||
|
|
||
| } | ||
|
|
||
| // Update is called once per frame | ||
| void Update () | ||
| { | ||
| rubbleTime += Time.deltaTime; | ||
| if(rubbleTime > rubbleLife) | ||
| { | ||
| Destroy (gameObject); | ||
| } | ||
| } | ||
| } |
| @@ -0,0 +1,57 @@ | ||
| using UnityEngine; | ||
| using System.Collections; | ||
|
|
||
| public class destroyProjectile : MonoBehaviour { | ||
|
|
||
| public bool start = false; | ||
| public float timerStart = 1.0f; | ||
| public float timer = 0.0f; | ||
|
|
||
| // Use this for initialization | ||
| void Start () { | ||
|
|
||
| } | ||
|
|
||
| // Update is called once per frame | ||
| void Update () | ||
| { | ||
|
|
||
| if(start == true) | ||
| { | ||
| timer += Time.deltaTime; | ||
| } | ||
| if(transform.position.x > 60.0f) | ||
| { | ||
| Destroy (gameObject); | ||
| shootScript.addRot = 0; | ||
| } | ||
| if(timer > timerStart) | ||
| { | ||
| Destroy (gameObject); | ||
| shootScript.addRot = 0; | ||
| timer = 0.0f; | ||
| } | ||
| } | ||
|
|
||
| void OnCollisionEnter2D(Collision2D c) | ||
| { | ||
| if (c.gameObject.tag == "Ground" && start == false) | ||
| { | ||
| start = true; | ||
| shootScript.addRot += -360; | ||
| } | ||
| if ( c.gameObject.layer == 8 ) | ||
| { | ||
|
|
||
| start = true; | ||
| SoundController.playTing = true; | ||
| shootScript.addRot += 360; | ||
|
|
||
| // ProjectileGivesResourcePOnts | ||
| //GlobalVars.resourcePoint += 50f; | ||
| //SoundController.playTing = true; | ||
| } | ||
| } | ||
|
|
||
|
|
||
| } |
| @@ -0,0 +1,28 @@ | ||
| using UnityEngine; | ||
| using System.Collections; | ||
|
|
||
| public class RewardFade : MonoBehaviour { | ||
|
|
||
| Color fadeOut = new Vector4(0,0,0,0); | ||
| Color start; | ||
|
|
||
| // Use this for initialization | ||
| void Start () | ||
| { | ||
| start = renderer.material.color; | ||
|
|
||
| } | ||
|
|
||
| // Update is called once per frame | ||
| void Update () | ||
| { | ||
| transform.Translate(new Vector2(0,0.2f)); | ||
| renderer.material.color -= start*0.007f; | ||
|
|
||
| if(renderer.material.color.a <= .001) | ||
| { | ||
| Destroy(gameObject); | ||
| } | ||
|
|
||
| } | ||
| } |
| @@ -0,0 +1,21 @@ | ||
| using UnityEngine; | ||
| using System.Collections; | ||
|
|
||
| public class SetCursor : MonoBehaviour { | ||
|
|
||
| public Texture2D cursorTexture; | ||
| public CursorMode cursorMode = CursorMode.Auto; | ||
| public Vector2 hotSpot = Vector2.zero; | ||
|
|
||
| void Start () | ||
| { | ||
| // when we mouse over this object, set the cursor | ||
| Cursor.SetCursor(cursorTexture, hotSpot, cursorMode); | ||
| } | ||
|
|
||
| // Update is called once per frame | ||
| void Update () | ||
| { | ||
|
|
||
| } | ||
| } |
| @@ -0,0 +1,171 @@ | ||
| using UnityEngine; | ||
| using System.Collections; | ||
|
|
||
| public class shootScript : MonoBehaviour { | ||
|
|
||
|
|
||
| private Rigidbody2D rigidbody; | ||
| private SpringJoint2D spring; | ||
|
|
||
| public bool deleteSpring; | ||
| private const float maxRadius = 7.0f; | ||
| public float radius; | ||
| private GameObject projSpawner; | ||
| private Vector3 gamePos; | ||
| private Vector3 spawnPos; | ||
|
|
||
| private Vector2 prevVeocity; | ||
| private float timer = 0f; | ||
| private bool clicked = false; | ||
|
|
||
| private bool rotating = false; | ||
| public static float addRot = 0; | ||
| public Vector3 screenPoint; | ||
| public Vector3 offset; | ||
| // Use this for initialization | ||
| void Start () { | ||
| prevVeocity = Vector2.zero; | ||
|
|
||
| rigidbody = this.gameObject.GetComponent<Rigidbody2D>(); | ||
| spring = this.gameObject.GetComponent<SpringJoint2D>(); | ||
|
|
||
| rigidbody.isKinematic = true; | ||
| rigidbody.fixedAngle = true; | ||
| deleteSpring = false; | ||
|
|
||
| projSpawner = GameObject.FindGameObjectWithTag("Respawn"); | ||
|
|
||
| spawnPos = projSpawner.transform.position; | ||
| gamePos = gameObject.transform.position; | ||
| radius = Vector2.Distance(new Vector2(gamePos.x, gamePos.y), | ||
| new Vector2(spawnPos.x, spawnPos.y)); | ||
|
|
||
|
|
||
| } | ||
|
|
||
| private Vector2 findNewRadiusCoords() | ||
| { | ||
| float x = gamePos.x - spawnPos.x; | ||
| float y = gamePos.y - spawnPos.y; | ||
|
|
||
| float correctedX = (x * maxRadius) / radius; | ||
| float correctedY = (y * maxRadius) / radius; | ||
|
|
||
| return new Vector2(spawnPos.x + correctedX, | ||
| spawnPos.y + correctedY); | ||
| } | ||
|
|
||
| void OnMouseDown(){ | ||
| //clicked = true; | ||
|
|
||
| rigidbody.isKinematic = false; | ||
| //rigidbody.gravityScale = 0f; | ||
| spring.enabled = false; | ||
|
|
||
| rigidbody2D.velocity = Vector3.zero; | ||
| offset = gameObject.transform.position - Camera.main.ScreenToWorldPoint ( | ||
| new Vector3 (Input.mousePosition.x, Input.mousePosition.y, screenPoint.z)); | ||
|
|
||
| } | ||
|
|
||
| void OnMouseDrag() | ||
| { | ||
| Vector3 curScreenPoint = new Vector3 (Input.mousePosition.x, Input.mousePosition.y, screenPoint.z); | ||
| Vector3 curPos = Camera.main.ScreenToWorldPoint (curScreenPoint) + offset; | ||
|
|
||
| gamePos = new Vector2(curPos.x, curPos.y); | ||
| radius = Vector2.Distance(new Vector2(gamePos.x, gamePos.y), | ||
| new Vector2(spawnPos.x, spawnPos.y)); | ||
| if(radius > maxRadius) | ||
| { | ||
| gameObject.transform.position = findNewRadiusCoords(); | ||
| } | ||
| else | ||
| { | ||
| gameObject.transform.position = curPos; | ||
| } | ||
| } | ||
|
|
||
| void OnMouseUp() | ||
| { | ||
| //clicked = false; | ||
| //Debug.Break(); | ||
| rigidbody.isKinematic = false; | ||
| //if(timer >= .5f) | ||
| //rigidbody.gravityScale = 1; | ||
| spring.enabled = true; | ||
|
|
||
|
|
||
| SoundController.playSlingShot = true; | ||
| //Vector3 pos = gameObject.transform.position; | ||
| //Vector2 negForce = gameObject.transform.InverseTransformDirection(new Vector2(pos.x, pos.y)); | ||
| //rigidbody.AddForce(negForce); | ||
|
|
||
| deleteSpring = true; | ||
| rotating = true; | ||
| Respawn2.canFireSlingshot = true; | ||
|
|
||
| } | ||
|
|
||
|
|
||
|
|
||
|
|
||
| // Update is called once per frame | ||
| void Update () | ||
| { | ||
| radius = Vector2.Distance(new Vector2(gamePos.x, gamePos.y), | ||
| new Vector2(spawnPos.x, spawnPos.y)); | ||
| //if(!clicked) | ||
| // timer += Time.deltaTime; | ||
|
|
||
| if(spring != null && deleteSpring) | ||
| { | ||
| if(/*timer > .75f || */!rigidbody.isKinematic && rigidbody.velocity.sqrMagnitude > 5f && prevVeocity.sqrMagnitude > rigidbody.velocity.sqrMagnitude) | ||
| { | ||
| //Debug.Break(); | ||
| rigidbody.velocity = prevVeocity; | ||
| Destroy (spring); | ||
| timer = 0; | ||
| } | ||
|
|
||
| if(!clicked) | ||
| prevVeocity = rigidbody.velocity; | ||
|
|
||
|
|
||
| /* | ||
| if(timer > 1f && spring.enabled == false) | ||
| { | ||
| spring.enabled = true; | ||
| spring.enabled = false; | ||
| timer = 0f; | ||
| }//*/ | ||
|
|
||
|
|
||
| //prevVeocity = rigidbody.velocity; | ||
| } | ||
| //* | ||
| if(rotating) | ||
| { | ||
| if(addRot >= 360) | ||
| { | ||
| addRot = 360; | ||
| } | ||
| else if(addRot <= -360) | ||
| { | ||
| addRot = -360; | ||
| } | ||
| transform.RotateAround(transform.position, new Vector3(0,0,1), (-45+addRot) * Time.deltaTime); | ||
| } | ||
| //*/ | ||
|
|
||
| /* | ||
| if(deleteSpring) | ||
| { | ||
| if(radius >= maxRadius - 1.0f) | ||
| { | ||
| Destroy(spring); | ||
| deleteSpring = false; | ||
| } | ||
| }//*/ | ||
| } | ||
| } |
| @@ -0,0 +1,174 @@ | ||
| using UnityEngine; | ||
| using System.Collections; | ||
|
|
||
| public class SpendResources : MonoBehaviour { | ||
|
|
||
| //Get textures | ||
| public Texture2D fratBroButton; | ||
| public Texture2D beerBroButton; | ||
| public Texture2D brosidonButton; | ||
|
|
||
| public Texture2D greyfratBroButton; | ||
| public Texture2D greybeerBroButton; | ||
| public Texture2D greybrosidonButton; | ||
|
|
||
| //Texture info | ||
| public float buttonWidth = 75.0f; | ||
| public float buttonHeight = 75.0f; | ||
|
|
||
| //timer info | ||
| public float mittensStart = 10.0f; | ||
| public float mittensTime = 10.0f; | ||
|
|
||
| public float muffinsStart = 25.0f; | ||
| public float muffinsTime = 25.0f; | ||
|
|
||
| public float helmetStart = 25.0f; | ||
| public float helmetTime = 25.0f; | ||
|
|
||
| public static bool canFireMittens = false; | ||
| public static bool canFireMuffins = false; | ||
| public static bool canFireHelmet = false; | ||
|
|
||
|
|
||
| void Start () | ||
| { | ||
| //Hard Reset | ||
| mittensTime = mittensStart; | ||
| muffinsTime = muffinsStart; | ||
| helmetTime = helmetStart; | ||
| canFireMittens = false; | ||
| canFireMuffins = false; | ||
| canFireHelmet = false; | ||
| } | ||
|
|
||
| // Update is called once per frame | ||
| void Update () | ||
| { | ||
| if(canFireMittens == false) | ||
| { | ||
| mittensTime -= Time.deltaTime; | ||
| if(mittensTime <= 0) | ||
| { | ||
| canFireMittens = true; | ||
| mittensTime = mittensStart; | ||
| } | ||
| } | ||
| if(canFireMuffins == false) | ||
| { | ||
| muffinsTime -= Time.deltaTime; | ||
| if(muffinsTime <= 0) | ||
| { | ||
| canFireMuffins = true; | ||
| muffinsTime = muffinsStart; | ||
| } | ||
| } | ||
| if(canFireHelmet == false) | ||
| { | ||
| helmetTime -= Time.deltaTime; | ||
| if(helmetTime <= 0) | ||
| { | ||
| canFireHelmet = true; | ||
| helmetTime = helmetStart; | ||
| } | ||
| } | ||
|
|
||
| } | ||
| void OnGUI() | ||
| { | ||
| /* //buy beer | ||
| if(GlobalVars.resourcePoint >= GlobalVars.FullBeerCan.fullCanPrice) | ||
| { | ||
| if (GUI.Button(new Rect(10, 290, 50, 60), BuyBeerButton, GUIStyle.none)) | ||
| { | ||
| GlobalVars.resourcePoint -= GlobalVars.FullBeerCan.fullCanPrice; | ||
| GlobalVars.FullBeerCan.numFullCans += 6; | ||
| } | ||
| } | ||
| //*/ | ||
| /* //buy cats | ||
| if(canFireMittens) | ||
| { | ||
| if (GUI.Button(new Rect(10, 10, 50, 50), GetMittensButton, GUIStyle.none)) | ||
| { | ||
| GlobalVars.resourcePoint -= GlobalVars.Mittens.mittensPrice; | ||
| GlobalVars.Mittens.numMittens += 1; | ||
| } | ||
| } | ||
| else if (canFireMittens == false) | ||
| { | ||
| GUI.Button(new Rect(10, 10, 50, 50), greyGetMittensButton, GUIStyle.none) | ||
| } | ||
| if(canFireMuffins) | ||
| { | ||
| if (GUI.Button(new Rect(10, 70, 50, 50), GetMuffinsButton, GUIStyle.none)) | ||
| { | ||
| GlobalVars.resourcePoint -= GlobalVars.Muffins.muffinsPrice; | ||
| GlobalVars.Muffins.numMuffins += 1; | ||
| } | ||
| } | ||
| else if (canFireMuffins == false) | ||
| { | ||
| GUI.Button(new Rect(10, 70, 50, 50), greyGetMuffinsButton, GUIStyle.none) | ||
| } | ||
| //*/ | ||
|
|
||
| //Buy Frat Bro | ||
| if(StartUp.isStart == false) | ||
| { | ||
| GUI.Label (new Rect (100, 30, 80, 80), " " + (int)mittensTime); | ||
| GUI.Label (new Rect (100, 120, 80, 80), " " + (int)muffinsTime); | ||
| GUI.Label (new Rect (100, 210, 80, 80), " " + (int)helmetTime); | ||
| GUI.Label (new Rect (20, Screen.height-buttonHeight-20, buttonHeight, buttonWidth), "RP:" + PledgeHealth.fratBro.fratBroCost); | ||
| GUI.Label (new Rect (50 + buttonWidth, Screen.height-buttonHeight-20, buttonHeight, buttonWidth), "RP:" + PledgeHealth.beerBro.beerBroCost); | ||
| GUI.Label (new Rect (80 + buttonWidth*2, Screen.height-buttonHeight-20, buttonHeight, buttonWidth), "RP:" + PledgeHealth.brosidon.brosidonCost); | ||
| } | ||
| if(GlobalVars.resourcePoint >= PledgeHealth.fratBro.fratBroCost && StartUp.isStart == false) | ||
| { | ||
| if (GUI.Button(new Rect (20, Screen.height-buttonHeight , buttonHeight, buttonWidth), fratBroButton, GUIStyle.none)) | ||
| { | ||
| SoundController.playFratBroSpawn = true; | ||
| GlobalVars.resourcePoint -= PledgeHealth.fratBro.fratBroCost; | ||
| SpawnReenforcements.spawnNum = 1; | ||
| } | ||
| } | ||
| else if(GlobalVars.resourcePoint <= PledgeHealth.fratBro.fratBroCost && StartUp.isStart == false) | ||
| { | ||
| GUI.Button(new Rect(20, Screen.height-buttonHeight , buttonHeight, buttonWidth), greyfratBroButton, GUIStyle.none); | ||
| } | ||
|
|
||
| //Buy Beer Bro | ||
| if(GlobalVars.resourcePoint >= PledgeHealth.beerBro.beerBroCost && StartUp.isStart == false) | ||
| { | ||
| if (GUI.Button(new Rect(50 + buttonWidth, Screen.height-buttonHeight , buttonHeight, buttonWidth), beerBroButton, GUIStyle.none)) | ||
| { | ||
| SoundController.playBeerBroSpawn = true; | ||
| GlobalVars.resourcePoint -= PledgeHealth.beerBro.beerBroCost; | ||
| SpawnReenforcements.spawnNum = 2; | ||
| } | ||
|
|
||
| } | ||
| else if(GlobalVars.resourcePoint <= PledgeHealth.beerBro.beerBroCost && StartUp.isStart == false) | ||
| { | ||
| GUI.Button(new Rect(50 + buttonWidth, Screen.height-buttonHeight, buttonHeight, buttonWidth), greybeerBroButton, GUIStyle.none); | ||
| } | ||
|
|
||
|
|
||
| //Buy Brosidon | ||
| if(GlobalVars.resourcePoint >= PledgeHealth.brosidon.brosidonCost && StartUp.isStart == false) | ||
| { | ||
| if (GUI.Button(new Rect(80 + (buttonWidth*2), Screen.height-buttonHeight , buttonHeight, buttonWidth), brosidonButton, GUIStyle.none)) | ||
| { | ||
| SoundController.playBrosidonSpawn = true; | ||
| GlobalVars.resourcePoint -= PledgeHealth.brosidon.brosidonCost; | ||
| SpawnReenforcements.spawnNum = 3; | ||
| } | ||
| } | ||
| else if(GlobalVars.resourcePoint <= PledgeHealth.brosidon.brosidonCost && StartUp.isStart == false) | ||
| { | ||
| GUI.Button(new Rect(80 + (buttonWidth*2), Screen.height-buttonHeight, buttonHeight, buttonWidth), greybrosidonButton, GUIStyle.none); | ||
| } | ||
|
|
||
| } | ||
| } |
| @@ -0,0 +1,19 @@ | ||
| using UnityEngine; | ||
| using System.Collections; | ||
|
|
||
| public class WinGame : MonoBehaviour { | ||
|
|
||
| // Use this for initialization | ||
| void Start () { | ||
|
|
||
| } | ||
|
|
||
| // Update is called once per frame | ||
| void Update () | ||
| { | ||
| if(GlobalVars.enemyFratHealth <= 0.0f) | ||
| { | ||
| Application.LoadLevel("WinScene"); | ||
| } | ||
| } | ||
| } |
| @@ -0,0 +1,54 @@ | ||
| using UnityEngine; | ||
| using System.Collections; | ||
|
|
||
| public class EnemyHealthBar : MonoBehaviour { | ||
| public Texture backgroundTexture; | ||
| public Texture foregroundTexture; | ||
| public Texture midHealthTexture; | ||
| public Texture lowHealthTexture; | ||
| public Texture frameTexture; | ||
|
|
||
| float healthWidth = GlobalVars.enemyFratStartHealth * 10; | ||
| public float healthHeight = 20; | ||
|
|
||
| float frameWidth = (GlobalVars.enemyFratStartHealth * 10) + 6; | ||
| public float frameHeight = 26; | ||
|
|
||
| Vector2 startpos; | ||
| Vector2 point; | ||
|
|
||
| float baseHealth; | ||
| void Start() | ||
| { | ||
| baseHealth = GlobalVars.enemyFratStartHealth; | ||
| startpos.Set(transform.position.x,-transform.position.y); | ||
| } | ||
|
|
||
| void Update() | ||
| { | ||
| point = Camera.main.WorldToScreenPoint(startpos); | ||
| if(baseHealth != GlobalVars.enemyFratHealth && healthWidth > 0) | ||
| { | ||
| healthWidth = GlobalVars.enemyFratHealth * 10; | ||
| baseHealth = GlobalVars.enemyFratHealth; | ||
|
|
||
| } | ||
| if(GlobalVars.enemyFratHealth >= GlobalVars.enemyFratStartHealth/10.0f && GlobalVars.enemyFratHealth <= GlobalVars.enemyFratStartHealth/2.0f) | ||
| { | ||
| foregroundTexture = midHealthTexture; | ||
| } | ||
| if(GlobalVars.enemyFratHealth <= GlobalVars.enemyFratStartHealth/10.0f ) | ||
| { | ||
| foregroundTexture = lowHealthTexture; | ||
| } | ||
| } | ||
|
|
||
| void OnGUI () | ||
| { | ||
|
|
||
| GUI.DrawTexture( new Rect(point.x,point.y, frameWidth, frameHeight), backgroundTexture); | ||
| GUI.DrawTexture( new Rect(point.x,point.y,frameWidth,frameHeight), frameTexture); | ||
| GUI.DrawTexture( new Rect(point.x + 3,point.y + 3,healthWidth, healthHeight), foregroundTexture); | ||
|
|
||
| } | ||
| } |
| @@ -0,0 +1,58 @@ | ||
| using UnityEngine; | ||
| using System.Collections; | ||
|
|
||
| public class HealthBar : MonoBehaviour { | ||
| //health bar | ||
| public Texture backgroundTexture; | ||
| public Texture foregroundTexture; | ||
| public Texture frameTexture; | ||
| public Texture midHealthTexture; | ||
| public Texture lowHealthTexture; | ||
|
|
||
| float healthWidth = GlobalVars.iFeltaThiStartHealth * 10; | ||
| public float healthHeight = 30; | ||
|
|
||
| float frameWidth = (GlobalVars.iFeltaThiStartHealth * 10) + 6; | ||
| public float frameHeight = 36; | ||
|
|
||
| Vector2 startpos; | ||
| Vector2 point; | ||
|
|
||
| float baseHealth; | ||
|
|
||
| void Start() | ||
| { | ||
| baseHealth = GlobalVars.iFeltaThiStartHealth; | ||
| startpos.Set(transform.position.x,-transform.position.y); | ||
| } | ||
|
|
||
| void Update() | ||
| { | ||
| point = Camera.main.WorldToScreenPoint(startpos); | ||
| if(baseHealth != GlobalVars.iFeltaThiHealth && healthWidth > 0) | ||
| { | ||
| healthWidth = GlobalVars.iFeltaThiHealth * 10; | ||
| baseHealth = GlobalVars.iFeltaThiHealth; | ||
|
|
||
| } | ||
|
|
||
| if(GlobalVars.iFeltaThiHealth >= GlobalVars.iFeltaThiStartHealth/10.0f && GlobalVars.iFeltaThiHealth <= GlobalVars.iFeltaThiStartHealth/2.0f) | ||
| { | ||
| foregroundTexture = midHealthTexture; | ||
| } | ||
| if(GlobalVars.iFeltaThiHealth <= GlobalVars.iFeltaThiStartHealth/10.0f ) | ||
| { | ||
| foregroundTexture = lowHealthTexture; | ||
| } | ||
|
|
||
| } | ||
|
|
||
| void OnGUI () | ||
| { | ||
|
|
||
| GUI.DrawTexture( new Rect(point.x,point.y, frameWidth, frameHeight), backgroundTexture); | ||
| GUI.DrawTexture( new Rect(point.x,point.y,frameWidth,frameHeight), frameTexture); | ||
| GUI.DrawTexture( new Rect(point.x + 3,point.y + 3,healthWidth, healthHeight), foregroundTexture); | ||
|
|
||
| } | ||
| } |
| @@ -0,0 +1,23 @@ | ||
| using UnityEngine; | ||
| using System.Collections; | ||
|
|
||
| public class ToMainGame : MonoBehaviour { | ||
|
|
||
| // Use this for initialization | ||
| void Start () { | ||
|
|
||
| } | ||
|
|
||
| // Update is called once per frame | ||
| void Update () | ||
| { | ||
| if(Input.anyKey) | ||
| { | ||
| Application.LoadLevel("MainGame"); | ||
| } | ||
| } | ||
| void OnGUI() | ||
| { | ||
| GUI.Label (new Rect (300, 300, 200, 200), "Press ANY Key to Start!"); | ||
| } | ||
| } |
| @@ -0,0 +1,116 @@ | ||
| using UnityEngine; | ||
| using System.Collections; | ||
|
|
||
| public class SoundController : MonoBehaviour { | ||
|
|
||
| public AudioClip MuffinsMeow; | ||
| public static bool playMuffinsMeow = false; | ||
|
|
||
| public AudioClip MittensMeow; | ||
| public static bool playMittensMeow = false; | ||
|
|
||
| public AudioClip CanOpening; | ||
| public static bool playCanOpening = false; | ||
|
|
||
| public AudioClip FratBroSpawn; | ||
| public static bool playFratBroSpawn = false; | ||
| public AudioClip FratBroDeath; | ||
| public static bool playFratBroDeath= false; | ||
|
|
||
| public AudioClip BeerBroSpawn; | ||
| public static bool playBeerBroSpawn = false; | ||
| public AudioClip BeerBroDeath; | ||
| public static bool playBeerBroDeath = false; | ||
|
|
||
| public AudioClip BrosidonSpawn; | ||
| public static bool playBrosidonSpawn = false; | ||
| public AudioClip BrosidonDeath; | ||
| public static bool playBrosidonDeath = false; | ||
|
|
||
| public AudioClip Brozerker; | ||
| public static bool playBrozerkerSpawn = false; | ||
|
|
||
| public AudioClip SlingShot; | ||
| public static bool playSlingShot = false; | ||
|
|
||
| public AudioClip Ting; | ||
| public static bool playTing = false; | ||
|
|
||
| public AudioClip BackGround; | ||
|
|
||
| // Use this for initialization | ||
| void Start () | ||
| { | ||
|
|
||
| } | ||
|
|
||
| // Update is called once per frame | ||
| void Update () | ||
| { | ||
| //Projectiles | ||
| if(playMuffinsMeow) | ||
| { | ||
| playMuffinsMeow = false; | ||
| audio.PlayOneShot(MuffinsMeow); | ||
| } | ||
| if(playMittensMeow) | ||
| { | ||
| playMittensMeow = false; | ||
| audio.PlayOneShot(MittensMeow); | ||
| } | ||
| if(playCanOpening) | ||
| { | ||
| playCanOpening = false; | ||
| audio.PlayOneShot(CanOpening); | ||
| } | ||
| //FratBro | ||
| if(playFratBroSpawn) | ||
| { | ||
| playFratBroSpawn = false; | ||
| audio.PlayOneShot(FratBroSpawn); | ||
| } | ||
| if(playFratBroDeath) | ||
| { | ||
| playFratBroDeath = false; | ||
| audio.PlayOneShot(FratBroDeath); | ||
| } | ||
| //BeerBro | ||
| if(playBeerBroSpawn) | ||
| { | ||
| playBeerBroSpawn = false; | ||
| audio.PlayOneShot(BeerBroSpawn); | ||
| } | ||
| if(playBeerBroDeath) | ||
| { | ||
| playBeerBroDeath = false; | ||
| audio.PlayOneShot(BeerBroDeath); | ||
| } | ||
| //Brosidon | ||
| if(playBrosidonSpawn) | ||
| { | ||
| playBrosidonSpawn = false; | ||
| audio.PlayOneShot(BrosidonSpawn); | ||
| } | ||
| if(playBrosidonDeath) | ||
| { | ||
| playBrosidonDeath = false; | ||
| audio.PlayOneShot(BrosidonDeath); | ||
| } | ||
|
|
||
| if(playBrozerkerSpawn) | ||
| { | ||
| playBrozerkerSpawn = false; | ||
| audio.PlayOneShot(Brozerker); | ||
| } | ||
| if(playSlingShot) | ||
| { | ||
| playSlingShot = false; | ||
| audio.PlayOneShot(SlingShot); | ||
| } | ||
| if(playTing) | ||
| { | ||
| playTing = false; | ||
| audio.PlayOneShot(Ting); | ||
| } | ||
| } | ||
| } |
| @@ -0,0 +1,25 @@ | ||
| using UnityEngine; | ||
| using System.Collections; | ||
|
|
||
| public class ToPlanning : MonoBehaviour { | ||
|
|
||
| public Texture startScreen; | ||
| // Use this for initialization | ||
| void Start () { | ||
|
|
||
| } | ||
|
|
||
| // Update is called once per frame | ||
| void Update () | ||
| { | ||
| if(Input.anyKey) | ||
| { | ||
| Application.LoadLevel("MainGame"); | ||
| } | ||
| } | ||
| void OnGUI() | ||
| { | ||
| GUI.Label (new Rect (300, 150, 200, 200), "Press ANY Key to start!"); | ||
| GUI.DrawTexture ( new Rect (0,0,Screen.width,Screen.height),startScreen); | ||
| } | ||
| } |
| @@ -0,0 +1,46 @@ | ||
| using UnityEngine; | ||
| using System.Collections; | ||
|
|
||
| public class StartUp : MonoBehaviour { | ||
|
|
||
| public static bool isStart = true; | ||
|
|
||
| public Texture infoPage1; | ||
| public Texture infoPage2; | ||
| public Texture infoPage3; | ||
|
|
||
| public Texture curTexture; | ||
| // Use this for initialization | ||
| void Start () | ||
| { | ||
| isStart = true; | ||
| curTexture = infoPage1; | ||
| Time.timeScale = 0.0f; | ||
| } | ||
|
|
||
| // Update is called once per frame | ||
| void Update () | ||
| { | ||
| if(Input.anyKeyDown && curTexture == infoPage1 && isStart == true) | ||
| { | ||
| curTexture = infoPage2; | ||
| } | ||
| else if(Input.anyKeyDown && curTexture == infoPage2 && isStart == true) | ||
| { | ||
| curTexture = infoPage3; | ||
| } | ||
| else if(Input.anyKeyDown && curTexture == infoPage3 && isStart == true) | ||
| { | ||
| curTexture = infoPage1; | ||
| isStart = false; | ||
| Time.timeScale = 1.0f; | ||
| } | ||
| } | ||
| void OnGUI() | ||
| { | ||
| if(Time.timeScale == 0.0f && isStart == true) | ||
| { | ||
| GUI.DrawTexture(new Rect(0,0,Screen.width,Screen.height), curTexture); | ||
| } | ||
| } | ||
| } |
| @@ -0,0 +1,99 @@ | ||
| using UnityEngine; | ||
| using System.Collections; | ||
|
|
||
| public class ToolTips : MonoBehaviour { | ||
|
|
||
| public static bool mittensInfo; | ||
| public static bool muffinsInfo; | ||
| public static bool helmetInfo; | ||
|
|
||
| public static bool FratBroInfo; | ||
| public static bool BeerBroInfo; | ||
| public static bool BrosidonInfo; | ||
|
|
||
| public Texture mittensInfoTexture; | ||
| public Texture muffinsInfoTexture; | ||
| public Texture helmetInfoTexture; | ||
|
|
||
| public Texture FratBroInfoTexture; | ||
| public Texture BeerBroInfoTexture; | ||
| public Texture BrosidonInfoTexture; | ||
|
|
||
| // Use this for initialization | ||
| void Start () | ||
| { | ||
|
|
||
| } | ||
|
|
||
| // Update is called once per frame | ||
| void Update () | ||
| { | ||
| Rect fratbroRect = new Rect(30, 0 , 80, 80); | ||
| if(fratbroRect.Contains(Input.mousePosition) && StartUp.isStart == false) | ||
| { | ||
| FratBroInfo = true; | ||
| } | ||
| else{FratBroInfo = false;} | ||
| Rect beerbroRect =new Rect(130 , 0 , 80, 80); | ||
| if(beerbroRect.Contains(Input.mousePosition) && StartUp.isStart == false) | ||
| { | ||
| BeerBroInfo = true; | ||
| } | ||
| else{BeerBroInfo = false;} | ||
| Rect brosidonRect =new Rect(240 , 0 , 80, 80); | ||
| if(brosidonRect.Contains(Input.mousePosition) && StartUp.isStart == false) | ||
| { | ||
| BrosidonInfo = true; | ||
| } | ||
| else{BrosidonInfo = false;} | ||
|
|
||
| Rect mittensRect =new Rect(10 , 680 , 80, 80); | ||
| if(mittensRect.Contains(Input.mousePosition) && StartUp.isStart == false) | ||
| { | ||
| mittensInfo = true; | ||
| } | ||
| else{mittensInfo = false;} | ||
| Rect muffinsRect =new Rect(10 , 590 , 80, 80); | ||
| if(muffinsRect.Contains(Input.mousePosition) && StartUp.isStart == false) | ||
| { | ||
| muffinsInfo = true; | ||
| } | ||
| else{muffinsInfo = false;} | ||
| Rect helmetRect =new Rect(10 , 500 , 80, 80); | ||
| if(helmetRect.Contains(Input.mousePosition) && StartUp.isStart == false) | ||
| { | ||
| helmetInfo = true; | ||
| } | ||
| else{helmetInfo = false;} | ||
|
|
||
|
|
||
| } | ||
|
|
||
| void OnGUI() | ||
| { | ||
| if(mittensInfo == true) | ||
| { | ||
| GUI.DrawTexture(new Rect(770,650,200,100), mittensInfoTexture); | ||
| } | ||
| if(muffinsInfo == true) | ||
| { | ||
| GUI.DrawTexture(new Rect(770,650,200,100), muffinsInfoTexture); | ||
| } | ||
| if(helmetInfo == true) | ||
| { | ||
| GUI.DrawTexture(new Rect(770,650,200,100), helmetInfoTexture); | ||
| } | ||
| if(FratBroInfo == true) | ||
| { | ||
| GUI.DrawTexture(new Rect(770,650,200,100), FratBroInfoTexture); | ||
| } | ||
| if(BeerBroInfo == true) | ||
| { | ||
| GUI.DrawTexture(new Rect(770,650,200,100), BeerBroInfoTexture); | ||
| } | ||
| if(BrosidonInfo == true) | ||
| { | ||
| GUI.DrawTexture(new Rect(770,650,200,100), BrosidonInfoTexture); | ||
| } | ||
| } | ||
| } |
| @@ -0,0 +1,42 @@ | ||
| <!-- | ||
| This file defines some of the browsers that Microsoft's implementation provides in | ||
| <windir>\Microsoft.NET\Framework\<ver>\CONFIG\Browsers\*.browser | ||
|
|
||
| It is not derived from any file distributed with Microsoft's implementation. Since | ||
| we can't distribute MS's browser files, we use browscap.ini to determine | ||
| browser capabilities. Then, if and only if the application contains App_Browser/*.browser | ||
| files and we are using .NET 2.0 or higher, we supplement the capabilities with the | ||
| information in those files and the files in this directory. The primary goal of this file | ||
| is provide browser definitions that might be referenced in App_Browser/*.browser files. | ||
| --> | ||
| <browsers> | ||
| <defaultBrowser id="Default"> | ||
| </defaultBrowser> | ||
| <browser id="Default"> | ||
| <identification> | ||
| <userAgent match="." /> | ||
| </identification> | ||
| </browser> | ||
| <browser id="IE6to9" parentID="Default"> | ||
| <identification> | ||
| <capability name="majorver" match="^[6-9]" /> | ||
| <capability name="browser" match="^(IE|AOL)$" /> | ||
| </identification> | ||
| </browser> | ||
| <browser id="Opera8to9" parentID="Default"> | ||
| <identification> | ||
| <capability name="majorver" match="^[8-9]" /> | ||
| <capability name="browser" match="^Opera$" /> | ||
| </identification> | ||
| </browser> | ||
| <browser id="Safari" parentID="Default"> | ||
| <identification> | ||
| <capability name="browser" match="^Safari$" /> | ||
| </identification> | ||
| </browser> | ||
| <browser id="Mozilla" parentID="Default"> | ||
| <identification> | ||
| <capability name="browser" match="^Mozilla" /> | ||
| </identification> | ||
| </browser> | ||
| </browsers> |
| @@ -0,0 +1,48 @@ | ||
| <?xml version="1.0" encoding="utf-8" ?> | ||
| <settingsMap> | ||
| <map sectionType="System.Web.Configuration.MembershipSection, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" | ||
| mapperType="Mono.Web.Util.MembershipSectionMapper, Mono.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756" | ||
| platform="Unix"> | ||
|
|
||
| <!-- The 'what' tag specifies which region of the section to modify. The 'value' attribute value is mapper-specific and is not defined here. It can be | ||
| any expression understood by the mapper to designate the section region to modify. | ||
| --> | ||
| <what value="providers"> | ||
| <!-- 'what' can contain any number of occurrences of any three elements: | ||
| replace - replace the designated region | ||
| add - add a new entry to the region | ||
| clear - clear the region | ||
| remove - remove the designatedregion | ||
| The attributes to any of the above are freeform and are not processed by the mapper manager. They are stored verbatim for the | ||
| mapper to peruse. | ||
| --> | ||
| <replace name="AspNetSqlMembershipProvider" | ||
| type="System.Web.Security.SqliteMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" | ||
| connectionStringName="LocalSqliteServer" /> | ||
| </what> | ||
| </map> | ||
|
|
||
| <map sectionType="System.Web.Configuration.RoleManagerSection, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" | ||
| mapperType="Mono.Web.Util.RoleManagerSectionMapper, Mono.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756" | ||
| platform="Unix"> | ||
|
|
||
| <!-- The 'what' tag specifies which region of the section to modify. The 'value' attribute value is mapper-specific and is not defined here. It can be | ||
| any expression understood by the mapper to designate the section region to modify. | ||
| --> | ||
| <what value="providers"> | ||
| <!-- 'what' can contain any number of occurrences of any three elements: | ||
| replace - replace the designated region | ||
| add - add a new entry to the region | ||
| clear - clear the region | ||
| remove - remove the designatedregion | ||
| The attributes to any of the above are freeform and are not processed by the mapper manager. They are stored verbatim for the | ||
| mapper to peruse. | ||
| --> | ||
| <replace name="AspNetSqlRoleProvider" | ||
| type="System.Web.Security.SqliteRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" | ||
| connectionStringName="LocalSqliteServer" /> | ||
| </what> | ||
| </map> | ||
| </settingsMap> |
| @@ -0,0 +1,154 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
|
|
||
| <configuration> | ||
|
|
||
| <system.web> | ||
| <monoSettings> | ||
| <compilersCompatibility> | ||
| <compiler language="c#;cs;csharp" extension=".cs" compilerOptions="/nowarn:0169" | ||
| type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> | ||
| </compilersCompatibility> | ||
| </monoSettings> | ||
|
|
||
| <authorization> | ||
| <allow users="*" /> | ||
| </authorization> | ||
| <httpHandlers> | ||
| <add verb="*" path="Trace.axd" type="System.Web.Handlers.TraceHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||
| <add verb="*" path="UrlRouting.axd" type="System.Web.HttpForbiddenHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||
| <add verb="*" path="*.aspx" type="System.Web.UI.PageHandlerFactory, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||
| <add verb="*" path="*.asmx" validate="false" type="System.Web.Services.Protocols.WebServiceHandlerFactory, System.Web.Services, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||
| <add verb="*" path="*.ashx" type="System.Web.UI.SimpleHandlerFactory, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||
| <add verb="GET" path="WebResource.axd" type="System.Web.Handlers.AssemblyResourceLoader, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||
| <add verb="*" path="*.master" type="System.Web.HttpForbiddenHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||
| <add verb="*" path="*.resources" type="System.Web.HttpForbiddenHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||
| <add verb="*" path="*.skin" type="System.Web.HttpForbiddenHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||
| <add verb="*" path="*.browser" type="System.Web.HttpForbiddenHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||
| <add verb="*" path="*.sitemap" type="System.Web.HttpForbiddenHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||
| <add verb="*" path="*.webinfo" type="System.Web.HttpForbiddenHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||
| <add verb="*" path="*.resx" type="System.Web.HttpForbiddenHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||
| <add verb="*" path="*.asax" type="System.Web.HttpForbiddenHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||
| <add verb="*" path="*.ascx" type="System.Web.HttpForbiddenHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||
| <add verb="*" path="*.config" type="System.Web.HttpForbiddenHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||
| <add verb="*" path="*.Config" type="System.Web.HttpForbiddenHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||
| <add verb="*" path="*.cs" type="System.Web.HttpForbiddenHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||
| <add verb="*" path="*.vb" type="System.Web.HttpForbiddenHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||
| <add verb="*" path="*.csproj" type="System.Web.HttpForbiddenHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||
| <add verb="*" path="*.vbproj" type="System.Web.HttpForbiddenHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||
| <add verb="*" path="*.licx" type="System.Web.HttpForbiddenHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||
| <add verb="*" path="*.dll" type="System.Web.HttpForbiddenHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||
| <add verb="*" path="*.rem" type="System.Runtime.Remoting.Channels.Http.HttpRemotingHandlerFactory, System.Runtime.Remoting, Culture=neutral, PublicKeyToken=b77a5c561934e089" validate="false" /> | ||
| <add verb="*" path="*.soap" type="System.Runtime.Remoting.Channels.Http.HttpRemotingHandlerFactory, System.Runtime.Remoting, Culture=neutral, PublicKeyToken=b77a5c561934e089" validate="false" /> | ||
| <add verb="*" path="*.svc" type="System.ServiceModel.Channels.SvcHttpHandlerFactory, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> | ||
| <add verb="GET,HEAD" path="*" type="System.Web.StaticFileHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||
| <add verb="*" path="*" type="System.Web.HttpMethodNotAllowedHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||
| </httpHandlers> | ||
| <httpModules> | ||
| <add name="FormsAuthentication" type="System.Web.Security.FormsAuthenticationModule, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||
| <add name="OutputCache" type="System.Web.Caching.OutputCacheModule, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||
| <add name="RoleManager" type="System.Web.Security.RoleManagerModule, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||
| <add name="Session" type="System.Web.SessionState.SessionStateModule, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||
| <add name="UrlAuthorization" type="System.Web.Security.UrlAuthorizationModule, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||
| </httpModules> | ||
| <authentication mode="Forms"> | ||
| <forms name=".MONOAUTH" loginUrl="login.aspx" protection="All" timeout="30" path="/"> | ||
| <credentials passwordFormat="Clear"> | ||
| <!--<user name="gonzalo" password="gonz"/>--> | ||
| </credentials> | ||
| </forms> | ||
| </authentication> | ||
| <machineKey validationKey="AutoGenerate" decryptionKey="AutoGenerate" validation="SHA1" /> | ||
| <globalization requestEncoding="utf-8" | ||
| responseEncoding="utf-8" | ||
| fileEncoding="utf-8"/> | ||
| <!-- | ||
| culture="en-US" | ||
| uiculture="en-US" /> | ||
| --> | ||
| <sessionState mode="InProc" /> | ||
| <pages> | ||
| <namespaces> | ||
| <add namespace="System" /> | ||
| <add namespace="System.Collections" /> | ||
| <add namespace="System.Collections.Specialized" /> | ||
| <add namespace="System.Configuration" /> | ||
| <add namespace="System.Text" /> | ||
| <add namespace="System.Text.RegularExpressions" /> | ||
| <add namespace="System.Web" /> | ||
| <add namespace="System.Web.Caching" /> | ||
| <add namespace="System.Web.SessionState" /> | ||
| <add namespace="System.Web.Security" /> | ||
| <add namespace="System.Web.Profile" /> | ||
| <add namespace="System.Web.UI" /> | ||
| <add namespace="System.Web.UI.WebControls" /> | ||
| <!-- <add namespace="System.Web.UI.WebControls.WebParts" /> --> | ||
| <add namespace="System.Web.UI.HtmlControls" /> | ||
| </namespaces> | ||
| </pages> | ||
| <webControls clientScriptsLocation="/web_scripts" /> | ||
| <compilation debug="false" defaultLanguage="c#" explicit="true" strict="false" > | ||
| <assemblies> | ||
| <!--<add assembly="mscorlib" /> --> | ||
| <add assembly="System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> | ||
| <add assembly="System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||
| <add assembly="System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> | ||
| <add assembly="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||
| <add assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||
| <add assembly="System.Web.Services, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||
| <add assembly="System.Runtime.Serialization, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL"/> | ||
| <add assembly="System.IdentityModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL"/> | ||
| <add assembly="System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/> | ||
| <add assembly="System.ServiceModel.Web, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> | ||
| <add assembly="System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> | ||
| <add assembly="*" /> <!-- Add assemblies in bin directory --> | ||
| </assemblies> | ||
| <expressionBuilders> | ||
| <add expressionPrefix="Resources" | ||
| type="System.Web.Compilation.ResourceExpressionBuilder, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||
| <add expressionPrefix="ConnectionStrings" | ||
| type="System.Web.Compilation.ConnectionStringsExpressionBuilder, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||
| <add expressionPrefix="AppSettings" | ||
| type="System.Web.Compilation.AppSettingsExpressionBuilder, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||
| </expressionBuilders> | ||
| <buildProviders> | ||
| <add extension=".aspx" type="System.Web.Compilation.PageBuildProvider" /> | ||
| <add extension=".ascx" type="System.Web.Compilation.UserControlBuildProvider" /> | ||
| <add extension=".master" type="System.Web.Compilation.MasterPageBuildProvider" /> | ||
| <add extension=".asmx" type="System.Web.Compilation.WebServiceBuildProvider" /> | ||
| <add extension=".ashx" type="System.Web.Compilation.WebHandlerBuildProvider" /> | ||
| <add extension=".soap" type="System.Web.Compilation.WebServiceBuildProvider" /> | ||
| <add extension=".resx" type="System.Web.Compilation.ResXBuildProvider" /> | ||
| <add extension=".resources" type="System.Web.Compilation.ResourcesBuildProvider" /> | ||
| <add extension=".wsdl" type="System.Web.Compilation.WsdlBuildProvider" /> | ||
| <add extension=".xsd" type="System.Web.Compilation.XsdBuildProvider" /> | ||
| <add extension=".js" type="System.Web.Compilation.ForceCopyBuildProvider" /> | ||
| <add extension=".lic" type="System.Web.Compilation.IgnoreFileBuildProvider" /> | ||
| <add extension=".licx" type="System.Web.Compilation.IgnoreFileBuildProvider" /> | ||
| <add extension=".exclude" type="System.Web.Compilation.IgnoreFileBuildProvider" /> | ||
| <add extension=".refresh" type="System.Web.Compilation.IgnoreFileBuildProvider" /> | ||
| </buildProviders> | ||
| </compilation> | ||
| <httpRuntime executionTimeout="110" | ||
| maxRequestLength="4096" | ||
| useFullyQualifiedRedirectUrl="false" | ||
| minFreeThreads="8" | ||
| minLocalRequestFreeThreads="4" | ||
| appRequestQueueLimit="5000" /> | ||
| <clientTarget> | ||
| <add alias="ie5" userAgent="Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0)" /> | ||
| <add alias="ie4" userAgent="Mozilla/4.0 (compatible; MSIE 4.0; Windows NT 4.0)" /> | ||
| <add alias="uplevel" userAgent="Mozilla/4.0 (compatible; MSIE 4.0; Windows NT 4.0)" /> | ||
| <add alias="downlevel" userAgent="Unknown" /> | ||
| </clientTarget> | ||
|
|
||
| <siteMap> | ||
| <providers> | ||
| <add name="AspNetXmlSiteMapProvider" | ||
| description="Default site map provider that reads in .sitemap xml files." | ||
| type="System.Web.XmlSiteMapProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" | ||
| siteMapFile="Web.sitemap" /> | ||
| </providers> | ||
| </siteMap> | ||
| </system.web> | ||
|
|
||
| </configuration> |
| @@ -0,0 +1,27 @@ | ||
| <configuration> | ||
| <dllmap dll="i:cygwin1.dll" target="libc.dylib" os="!windows" /> | ||
| <dllmap dll="libc" target="libc.dylib" os="!windows"/> | ||
| <dllmap dll="intl" target="libintl.dylib" os="!windows"/> | ||
| <dllmap dll="intl" name="bind_textdomain_codeset" target="libc.dylib" os="solaris"/> | ||
| <dllmap dll="libintl" name="bind_textdomain_codeset" target="libc.dylib" os="solaris"/> | ||
| <dllmap dll="libintl" target="libintl.dylib" os="!windows"/> | ||
| <dllmap dll="i:libxslt.dll" target="libxslt.dylib" os="!windows"/> | ||
| <dllmap dll="i:odbc32.dll" target="libodbc.dylib" os="!windows"/> | ||
| <dllmap dll="i:odbc32.dll" target="libiodbc.dylib" os="osx"/> | ||
| <dllmap dll="oci" target="libclntsh.dylib" os="!windows"/> | ||
| <dllmap dll="db2cli" target="libdb2_36.dylib" os="!windows"/> | ||
| <dllmap dll="MonoPosixHelper" target="libMonoPosixHelper.dylib" os="!windows" /> | ||
| <dllmap dll="i:msvcrt" target="libc.dylib" os="!windows"/> | ||
| <dllmap dll="i:msvcrt.dll" target="libc.dylib" os="!windows"/> | ||
| <dllmap dll="sqlite" target="libsqlite.0.dylib" os="!windows"/> | ||
| <dllmap dll="sqlite3" target="libsqlite3.0.dylib" os="!windows"/> | ||
| <dllmap dll="libX11" target="libX11.dylib" os="!windows" /> | ||
| <dllmap dll="libcairo-2.dll" target="libcairo.so.2" os="!windows"/> | ||
| <dllmap dll="libcups" target="libcups.so.2" os="!windows"/> | ||
| <dllmap dll="i:kernel32.dll"> | ||
| <dllentry dll="__Internal" name="CopyMemory" target="mono_win32_compat_CopyMemory"/> | ||
| <dllentry dll="__Internal" name="FillMemory" target="mono_win32_compat_FillMemory"/> | ||
| <dllentry dll="__Internal" name="MoveMemory" target="mono_win32_compat_MoveMemory"/> | ||
| <dllentry dll="__Internal" name="ZeroMemory" target="mono_win32_compat_ZeroMemory"/> | ||
| </dllmap> | ||
| </configuration> |
| @@ -0,0 +1 @@ | ||
| listen 4228485815 0 0 |
| @@ -0,0 +1,34 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
| <plist version="1.0"> | ||
| <dict> | ||
| <key>CFBundleDevelopmentRegion</key> | ||
| <string>English</string> | ||
| <key>CFBundleExecutable</key> | ||
| <string>Frat Wars</string> | ||
| <key>CFBundleGetInfoString</key> | ||
| <string>Unity Player version 4.5.4f1 (e036f44c54c9). (c) 2014 Unity Technologies ApS. All rights reserved.</string> | ||
| <key>CFBundleIconFile</key> | ||
| <string>PlayerIcon.icns</string> | ||
| <key>CFBundleIdentifier</key> | ||
| <string>unity.SitOnIt Studios.FratWars</string> | ||
| <key>CFBundleInfoDictionaryVersion</key> | ||
| <string>6.0</string> | ||
| <key>CFBundleName</key> | ||
| <string>Frat Wars</string> | ||
| <key>CFBundlePackageType</key> | ||
| <string>APPL</string> | ||
| <key>CFBundleShortVersionString</key> | ||
| <string>Unity Player version 4.5.4f1</string> | ||
| <key>CFBundleSignature</key> | ||
| <string>????</string> | ||
| <key>CFBundleVersion</key> | ||
| <string>4.5.4f1</string> | ||
| <key>NSMainNibFile</key> | ||
| <string>MainMenu</string> | ||
| <key>NSPrincipalClass</key> | ||
| <string>PlayerApplication</string> | ||
| <key>UnityBuildNumber</key> | ||
| <string>e036f44c54c9</string> | ||
| </dict> | ||
| </plist> |
| @@ -0,0 +1,42 @@ | ||
| <!-- | ||
| This file defines some of the browsers that Microsoft's implementation provides in | ||
| <windir>\Microsoft.NET\Framework\<ver>\CONFIG\Browsers\*.browser | ||
|
|
||
| It is not derived from any file distributed with Microsoft's implementation. Since | ||
| we can't distribute MS's browser files, we use browscap.ini to determine | ||
| browser capabilities. Then, if and only if the application contains App_Browser/*.browser | ||
| files and we are using .NET 2.0 or higher, we supplement the capabilities with the | ||
| information in those files and the files in this directory. The primary goal of this file | ||
| is provide browser definitions that might be referenced in App_Browser/*.browser files. | ||
| --> | ||
| <browsers> | ||
| <defaultBrowser id="Default"> | ||
| </defaultBrowser> | ||
| <browser id="Default"> | ||
| <identification> | ||
| <userAgent match="." /> | ||
| </identification> | ||
| </browser> | ||
| <browser id="IE6to9" parentID="Default"> | ||
| <identification> | ||
| <capability name="majorver" match="^[6-9]" /> | ||
| <capability name="browser" match="^(IE|AOL)$" /> | ||
| </identification> | ||
| </browser> | ||
| <browser id="Opera8to9" parentID="Default"> | ||
| <identification> | ||
| <capability name="majorver" match="^[8-9]" /> | ||
| <capability name="browser" match="^Opera$" /> | ||
| </identification> | ||
| </browser> | ||
| <browser id="Safari" parentID="Default"> | ||
| <identification> | ||
| <capability name="browser" match="^Safari$" /> | ||
| </identification> | ||
| </browser> | ||
| <browser id="Mozilla" parentID="Default"> | ||
| <identification> | ||
| <capability name="browser" match="^Mozilla" /> | ||
| </identification> | ||
| </browser> | ||
| </browsers> |
| @@ -0,0 +1,48 @@ | ||
| <?xml version="1.0" encoding="utf-8" ?> | ||
| <settingsMap> | ||
| <map sectionType="System.Web.Configuration.MembershipSection, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" | ||
| mapperType="Mono.Web.Util.MembershipSectionMapper, Mono.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756" | ||
| platform="Unix"> | ||
|
|
||
| <!-- The 'what' tag specifies which region of the section to modify. The 'value' attribute value is mapper-specific and is not defined here. It can be | ||
| any expression understood by the mapper to designate the section region to modify. | ||
| --> | ||
| <what value="providers"> | ||
| <!-- 'what' can contain any number of occurrences of any three elements: | ||
| replace - replace the designated region | ||
| add - add a new entry to the region | ||
| clear - clear the region | ||
| remove - remove the designatedregion | ||
| The attributes to any of the above are freeform and are not processed by the mapper manager. They are stored verbatim for the | ||
| mapper to peruse. | ||
| --> | ||
| <replace name="AspNetSqlMembershipProvider" | ||
| type="System.Web.Security.SqliteMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" | ||
| connectionStringName="LocalSqliteServer" /> | ||
| </what> | ||
| </map> | ||
|
|
||
| <map sectionType="System.Web.Configuration.RoleManagerSection, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" | ||
| mapperType="Mono.Web.Util.RoleManagerSectionMapper, Mono.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756" | ||
| platform="Unix"> | ||
|
|
||
| <!-- The 'what' tag specifies which region of the section to modify. The 'value' attribute value is mapper-specific and is not defined here. It can be | ||
| any expression understood by the mapper to designate the section region to modify. | ||
| --> | ||
| <what value="providers"> | ||
| <!-- 'what' can contain any number of occurrences of any three elements: | ||
| replace - replace the designated region | ||
| add - add a new entry to the region | ||
| clear - clear the region | ||
| remove - remove the designatedregion | ||
| The attributes to any of the above are freeform and are not processed by the mapper manager. They are stored verbatim for the | ||
| mapper to peruse. | ||
| --> | ||
| <replace name="AspNetSqlRoleProvider" | ||
| type="System.Web.Security.SqliteRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" | ||
| connectionStringName="LocalSqliteServer" /> | ||
| </what> | ||
| </map> | ||
| </settingsMap> |
| @@ -0,0 +1,154 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
|
|
||
| <configuration> | ||
|
|
||
| <system.web> | ||
| <monoSettings> | ||
| <compilersCompatibility> | ||
| <compiler language="c#;cs;csharp" extension=".cs" compilerOptions="/nowarn:0169" | ||
| type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> | ||
| </compilersCompatibility> | ||
| </monoSettings> | ||
|
|
||
| <authorization> | ||
| <allow users="*" /> | ||
| </authorization> | ||
| <httpHandlers> | ||
| <add verb="*" path="Trace.axd" type="System.Web.Handlers.TraceHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||
| <add verb="*" path="UrlRouting.axd" type="System.Web.HttpForbiddenHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||
| <add verb="*" path="*.aspx" type="System.Web.UI.PageHandlerFactory, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||
| <add verb="*" path="*.asmx" validate="false" type="System.Web.Services.Protocols.WebServiceHandlerFactory, System.Web.Services, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||
| <add verb="*" path="*.ashx" type="System.Web.UI.SimpleHandlerFactory, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||
| <add verb="GET" path="WebResource.axd" type="System.Web.Handlers.AssemblyResourceLoader, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||
| <add verb="*" path="*.master" type="System.Web.HttpForbiddenHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||
| <add verb="*" path="*.resources" type="System.Web.HttpForbiddenHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||
| <add verb="*" path="*.skin" type="System.Web.HttpForbiddenHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||
| <add verb="*" path="*.browser" type="System.Web.HttpForbiddenHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||
| <add verb="*" path="*.sitemap" type="System.Web.HttpForbiddenHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||
| <add verb="*" path="*.webinfo" type="System.Web.HttpForbiddenHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||
| <add verb="*" path="*.resx" type="System.Web.HttpForbiddenHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||
| <add verb="*" path="*.asax" type="System.Web.HttpForbiddenHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||
| <add verb="*" path="*.ascx" type="System.Web.HttpForbiddenHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||
| <add verb="*" path="*.config" type="System.Web.HttpForbiddenHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||
| <add verb="*" path="*.Config" type="System.Web.HttpForbiddenHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||
| <add verb="*" path="*.cs" type="System.Web.HttpForbiddenHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||
| <add verb="*" path="*.vb" type="System.Web.HttpForbiddenHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||
| <add verb="*" path="*.csproj" type="System.Web.HttpForbiddenHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||
| <add verb="*" path="*.vbproj" type="System.Web.HttpForbiddenHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||
| <add verb="*" path="*.licx" type="System.Web.HttpForbiddenHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||
| <add verb="*" path="*.dll" type="System.Web.HttpForbiddenHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||
| <add verb="*" path="*.rem" type="System.Runtime.Remoting.Channels.Http.HttpRemotingHandlerFactory, System.Runtime.Remoting, Culture=neutral, PublicKeyToken=b77a5c561934e089" validate="false" /> | ||
| <add verb="*" path="*.soap" type="System.Runtime.Remoting.Channels.Http.HttpRemotingHandlerFactory, System.Runtime.Remoting, Culture=neutral, PublicKeyToken=b77a5c561934e089" validate="false" /> | ||
| <add verb="*" path="*.svc" type="System.ServiceModel.Channels.SvcHttpHandlerFactory, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> | ||
| <add verb="GET,HEAD" path="*" type="System.Web.StaticFileHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||
| <add verb="*" path="*" type="System.Web.HttpMethodNotAllowedHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||
| </httpHandlers> | ||
| <httpModules> | ||
| <add name="FormsAuthentication" type="System.Web.Security.FormsAuthenticationModule, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||
| <add name="OutputCache" type="System.Web.Caching.OutputCacheModule, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||
| <add name="RoleManager" type="System.Web.Security.RoleManagerModule, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||
| <add name="Session" type="System.Web.SessionState.SessionStateModule, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||
| <add name="UrlAuthorization" type="System.Web.Security.UrlAuthorizationModule, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||
| </httpModules> | ||
| <authentication mode="Forms"> | ||
| <forms name=".MONOAUTH" loginUrl="login.aspx" protection="All" timeout="30" path="/"> | ||
| <credentials passwordFormat="Clear"> | ||
| <!--<user name="gonzalo" password="gonz"/>--> | ||
| </credentials> | ||
| </forms> | ||
| </authentication> | ||
| <machineKey validationKey="AutoGenerate" decryptionKey="AutoGenerate" validation="SHA1" /> | ||
| <globalization requestEncoding="utf-8" | ||
| responseEncoding="utf-8" | ||
| fileEncoding="utf-8"/> | ||
| <!-- | ||
| culture="en-US" | ||
| uiculture="en-US" /> | ||
| --> | ||
| <sessionState mode="InProc" /> | ||
| <pages> | ||
| <namespaces> | ||
| <add namespace="System" /> | ||
| <add namespace="System.Collections" /> | ||
| <add namespace="System.Collections.Specialized" /> | ||
| <add namespace="System.Configuration" /> | ||
| <add namespace="System.Text" /> | ||
| <add namespace="System.Text.RegularExpressions" /> | ||
| <add namespace="System.Web" /> | ||
| <add namespace="System.Web.Caching" /> | ||
| <add namespace="System.Web.SessionState" /> | ||
| <add namespace="System.Web.Security" /> | ||
| <add namespace="System.Web.Profile" /> | ||
| <add namespace="System.Web.UI" /> | ||
| <add namespace="System.Web.UI.WebControls" /> | ||
| <!-- <add namespace="System.Web.UI.WebControls.WebParts" /> --> | ||
| <add namespace="System.Web.UI.HtmlControls" /> | ||
| </namespaces> | ||
| </pages> | ||
| <webControls clientScriptsLocation="/web_scripts" /> | ||
| <compilation debug="false" defaultLanguage="c#" explicit="true" strict="false" > | ||
| <assemblies> | ||
| <!--<add assembly="mscorlib" /> --> | ||
| <add assembly="System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> | ||
| <add assembly="System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||
| <add assembly="System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> | ||
| <add assembly="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||
| <add assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||
| <add assembly="System.Web.Services, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||
| <add assembly="System.Runtime.Serialization, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL"/> | ||
| <add assembly="System.IdentityModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL"/> | ||
| <add assembly="System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/> | ||
| <add assembly="System.ServiceModel.Web, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> | ||
| <add assembly="System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> | ||
| <add assembly="*" /> <!-- Add assemblies in bin directory --> | ||
| </assemblies> | ||
| <expressionBuilders> | ||
| <add expressionPrefix="Resources" | ||
| type="System.Web.Compilation.ResourceExpressionBuilder, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||
| <add expressionPrefix="ConnectionStrings" | ||
| type="System.Web.Compilation.ConnectionStringsExpressionBuilder, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||
| <add expressionPrefix="AppSettings" | ||
| type="System.Web.Compilation.AppSettingsExpressionBuilder, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||
| </expressionBuilders> | ||
| <buildProviders> | ||
| <add extension=".aspx" type="System.Web.Compilation.PageBuildProvider" /> | ||
| <add extension=".ascx" type="System.Web.Compilation.UserControlBuildProvider" /> | ||
| <add extension=".master" type="System.Web.Compilation.MasterPageBuildProvider" /> | ||
| <add extension=".asmx" type="System.Web.Compilation.WebServiceBuildProvider" /> | ||
| <add extension=".ashx" type="System.Web.Compilation.WebHandlerBuildProvider" /> | ||
| <add extension=".soap" type="System.Web.Compilation.WebServiceBuildProvider" /> | ||
| <add extension=".resx" type="System.Web.Compilation.ResXBuildProvider" /> | ||
| <add extension=".resources" type="System.Web.Compilation.ResourcesBuildProvider" /> | ||
| <add extension=".wsdl" type="System.Web.Compilation.WsdlBuildProvider" /> | ||
| <add extension=".xsd" type="System.Web.Compilation.XsdBuildProvider" /> | ||
| <add extension=".js" type="System.Web.Compilation.ForceCopyBuildProvider" /> | ||
| <add extension=".lic" type="System.Web.Compilation.IgnoreFileBuildProvider" /> | ||
| <add extension=".licx" type="System.Web.Compilation.IgnoreFileBuildProvider" /> | ||
| <add extension=".exclude" type="System.Web.Compilation.IgnoreFileBuildProvider" /> | ||
| <add extension=".refresh" type="System.Web.Compilation.IgnoreFileBuildProvider" /> | ||
| </buildProviders> | ||
| </compilation> | ||
| <httpRuntime executionTimeout="110" | ||
| maxRequestLength="4096" | ||
| useFullyQualifiedRedirectUrl="false" | ||
| minFreeThreads="8" | ||
| minLocalRequestFreeThreads="4" | ||
| appRequestQueueLimit="5000" /> | ||
| <clientTarget> | ||
| <add alias="ie5" userAgent="Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0)" /> | ||
| <add alias="ie4" userAgent="Mozilla/4.0 (compatible; MSIE 4.0; Windows NT 4.0)" /> | ||
| <add alias="uplevel" userAgent="Mozilla/4.0 (compatible; MSIE 4.0; Windows NT 4.0)" /> | ||
| <add alias="downlevel" userAgent="Unknown" /> | ||
| </clientTarget> | ||
|
|
||
| <siteMap> | ||
| <providers> | ||
| <add name="AspNetXmlSiteMapProvider" | ||
| description="Default site map provider that reads in .sitemap xml files." | ||
| type="System.Web.XmlSiteMapProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" | ||
| siteMapFile="Web.sitemap" /> | ||
| </providers> | ||
| </siteMap> | ||
| </system.web> | ||
|
|
||
| </configuration> |
| @@ -0,0 +1,27 @@ | ||
| <configuration> | ||
| <dllmap dll="i:cygwin1.dll" target="libc.dylib" os="!windows" /> | ||
| <dllmap dll="libc" target="libc.dylib" os="!windows"/> | ||
| <dllmap dll="intl" target="libintl.dylib" os="!windows"/> | ||
| <dllmap dll="intl" name="bind_textdomain_codeset" target="libc.dylib" os="solaris"/> | ||
| <dllmap dll="libintl" name="bind_textdomain_codeset" target="libc.dylib" os="solaris"/> | ||
| <dllmap dll="libintl" target="libintl.dylib" os="!windows"/> | ||
| <dllmap dll="i:libxslt.dll" target="libxslt.dylib" os="!windows"/> | ||
| <dllmap dll="i:odbc32.dll" target="libodbc.dylib" os="!windows"/> | ||
| <dllmap dll="i:odbc32.dll" target="libiodbc.dylib" os="osx"/> | ||
| <dllmap dll="oci" target="libclntsh.dylib" os="!windows"/> | ||
| <dllmap dll="db2cli" target="libdb2_36.dylib" os="!windows"/> | ||
| <dllmap dll="MonoPosixHelper" target="libMonoPosixHelper.dylib" os="!windows" /> | ||
| <dllmap dll="i:msvcrt" target="libc.dylib" os="!windows"/> | ||
| <dllmap dll="i:msvcrt.dll" target="libc.dylib" os="!windows"/> | ||
| <dllmap dll="sqlite" target="libsqlite.0.dylib" os="!windows"/> | ||
| <dllmap dll="sqlite3" target="libsqlite3.0.dylib" os="!windows"/> | ||
| <dllmap dll="libX11" target="libX11.dylib" os="!windows" /> | ||
| <dllmap dll="libcairo-2.dll" target="libcairo.so.2" os="!windows"/> | ||
| <dllmap dll="libcups" target="libcups.so.2" os="!windows"/> | ||
| <dllmap dll="i:kernel32.dll"> | ||
| <dllentry dll="__Internal" name="CopyMemory" target="mono_win32_compat_CopyMemory"/> | ||
| <dllentry dll="__Internal" name="FillMemory" target="mono_win32_compat_FillMemory"/> | ||
| <dllentry dll="__Internal" name="MoveMemory" target="mono_win32_compat_MoveMemory"/> | ||
| <dllentry dll="__Internal" name="ZeroMemory" target="mono_win32_compat_ZeroMemory"/> | ||
| </dllmap> | ||
| </configuration> |
| @@ -0,0 +1 @@ | ||
| listen 4228485815 0 0 |