-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
1,117 additions
and
456 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using UnityEngine; | ||
using TMPro; | ||
|
||
public class CanvasController : MonoBehaviour | ||
{ | ||
public GameObject endScreen; | ||
public GameObject pauseScreen; | ||
|
||
void Awake() | ||
{ | ||
if(endScreen == null) | ||
endScreen = GameObject.Find("EndScreen"); | ||
if(pauseScreen == null) | ||
pauseScreen = GameObject.Find("PauseScreen"); | ||
|
||
endScreen.SetActive(false); | ||
pauseScreen.SetActive(false); | ||
} | ||
|
||
public void OnGameEnd(char winner) | ||
{ | ||
endScreen.SetActive(true); | ||
endScreen.transform.Find("Winner").GetComponent<TextMeshProUGUI>().text = winner == 'R' ? "Red Team" : "Blue Team"; | ||
} | ||
|
||
public bool OnPause() | ||
{ | ||
pauseScreen.SetActive(true); | ||
Cursor.lockState = CursorLockMode.None; | ||
Cursor.visible = true; | ||
return true; | ||
} | ||
|
||
public bool OnUnPause() | ||
{ | ||
pauseScreen.SetActive(false); | ||
Cursor.lockState = CursorLockMode.Locked; | ||
Cursor.visible = false; | ||
return false; | ||
} | ||
} |
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,46 @@ | ||
<div align="center"> | ||
<h1>🔵 FaIlers 🔴</h1> | ||
<b>Group 28</b> | ||
<br> | ||
<img src="Assets/Images/MenuScreen.png"> | ||
|
||
<img src="Assets/Images/MenuScreen.png" width=80%> | ||
</div> | ||
|
||
## Index | ||
- [Contributors](#contributors) | ||
- [Summary](#summary) | ||
- [Rules](#rules) | ||
- [Controls](#controls) | ||
- [Video Demo](#video-demo) | ||
|
||
## Contributors: | ||
## Contributors | ||
- [Anthony Nguyen](https://github.com/AnthonyN3) | ||
- [Sebastian Maj](https://github.com/SebastianMaj) (Note: ``KerryuCC`` is also Sebastian) | ||
- [Sebastian Maj](https://github.com/SebastianMaj) | ||
|
||
## Summary | ||
Fallers is a simple two team capture the flag first person shooter game. The has a simplistic and minimalistic design, heavily emphasizing on | ||
the movement, flow, functionality, and physics. The online networking is done using ``Forge``, a open source networking system that has very good integration with the Unity Game Engine. The basic premise of the networking is that one of the players is the host, and the rest are the clients (no dedicated servers). | ||
|
||
## Rules | ||
- Two teams (Blue & Red) | ||
- Players are automatically assigned to the team that has the least amount of players (team blue if equal) | ||
- Friendly fire is off | ||
- First to 10 flag captures (points) wins | ||
|
||
## Controls | ||
Game interaction is done on a traditional mouse and keyboard. The default controls have the player movement and interaction keys on the keyboard, while the mouse controls the screen movement and weapon shooting | ||
|
||
## Controls: | ||
- ``W`` - ``Move Up`` | ||
- ``A`` - ``Move Left`` | ||
- ``S`` - ``Move Back`` | ||
- ``D`` - ``Move Right`` | ||
- ``SPACE`` - ``Jump`` | ||
- ``CTRL`` - ``Crouch/Slide`` | ||
- ``SHIFT`` - ``Walk`` | ||
- ``MOUSE1`` - ``Shoot`` | ||
- ``E`` - ``PickUp`` | ||
| Keys | Description | | ||
| :---: | :--- | | ||
| `W` | Move Up| | ||
| `A` | Move Left | | ||
| `S` | Move Back | | ||
| `D` | Move Right | | ||
| `SPACE` | Jump | | ||
| `CTRL` | Crouch. Can be used to slide if you build enough movement speed | | ||
| `SHIFT` | Movement is slowed down (walk) | | ||
| `Mouse` | Look around (move the screen) | | ||
| `MOUSE1` | Attack/Fire held weapon | | ||
| `E` | PickUp a weapon| | ||
| `ESC` | Bring up the menu screen (pause) | | ||
|
||
## Video Demo | ||
https://youtu.be/mx9I1ZhM7YQ |