Skip to content

Commit

Permalink
Adds svgs for other games
Browse files Browse the repository at this point in the history
  • Loading branch information
thewithz committed Feb 20, 2020
1 parent 129f584 commit 2333cab
Show file tree
Hide file tree
Showing 47 changed files with 89,766 additions and 125 deletions.
18 changes: 14 additions & 4 deletions OdysseyNow/.idea/.idea.OdysseyNow/.idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 12 additions & 10 deletions OdysseyNow/Assets/ModeDirector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ public class ModeDirector : MonoBehaviour {
public GameObject AI;

private void Awake() {
Debug.Log(PlayerPrefs.GetInt("ai1"));
Debug.Log(PlayerPrefs.GetInt("ai2"));
Debug.Log(PlayerPrefs.GetString("game"));
//Debug.Log(PlayerPrefs.GetInt("ai1"));
//Debug.Log(PlayerPrefs.GetInt("ai2"));
//Debug.Log(PlayerPrefs.GetString("game"));
}

// Start is called before the first frame update
Expand All @@ -26,6 +26,7 @@ private void Start() {
if (LocalInputManager.instance == null) {
switch (PlayerPrefs.GetString("game")) {
case "Cat and Mouse":
// load cat and mouse after calibration
calibration.GetComponent<CalibrationDirectorNew>().afterCalibration.AddListener(StartCatAndMouse);
break;
case "Super Cat and Mouse":
Expand All @@ -38,7 +39,10 @@ private void Start() {
break;
}
// fixme



calibration.GetComponent<CalibrationOdysseySettings>().useOverlay = false;

// if p1 is ai, don't read calibration
if (PlayerPrefs.GetInt("ai1") != -1)
calibration.GetComponent<CalibrationOdysseySettings>().p1_read = false;
Expand Down Expand Up @@ -78,10 +82,10 @@ private void Start() {

private void StartCatAndMouse() {
calibration.SetActive(false);
GameObject p1 = ElementSettings.FindFromNameAndTag("PlayerTarget", "Player1");
GameObject p2 = ElementSettings.FindFromNameAndTag("PlayerTarget", "Player2");
int player1AI = PlayerPrefs.GetInt("ai1");
int player2AI = PlayerPrefs.GetInt("ai2");
var p1 = ElementSettings.FindFromNameAndTag("PlayerTarget", "Player1");
var p2 = ElementSettings.FindFromNameAndTag("PlayerTarget", "Player2");
var player1AI = PlayerPrefs.GetInt("ai1");
var player2AI = PlayerPrefs.GetInt("ai2");
if (player1AI != -1) {
p1.GetComponent<NavMeshAgent>().enabled = true;
p1.GetComponent<CatAI>().enabled = true;
Expand All @@ -101,6 +105,4 @@ private void StartCalibration() {
AI.SetActive(false);
calibration.SetActive(true);
}

public void StartGame_2p() { }
}
76 changes: 3 additions & 73 deletions OdysseyNow/Assets/Scenes/Card4.unity
Original file line number Diff line number Diff line change
Expand Up @@ -4178,7 +4178,6 @@ GameObject:
serializedVersion: 6
m_Component:
- component: {fileID: 1119153336}
- component: {fileID: 1119153335}
- component: {fileID: 1119153337}
- component: {fileID: 1119153339}
m_Layer: 8
Expand All @@ -4188,75 +4187,6 @@ GameObject:
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &1119153335
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1119153334}
m_Enabled: 0
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 9dce3c8e69d1741a99b7c60a0b8ffe8f, type: 3}
m_Name:
m_EditorClassIdentifier:
p1: {fileID: 0}
p2: {fileID: 0}
cameraAnimationSpeed: 10
cameraTimeCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: -0.0036315918
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 0.5663114
value: 0.9283519
inSlope: 0.4115178
outSlope: 0.4115178
tangentMode: 0
weightedMode: 0
inWeight: 0.17340244
outWeight: 0.33333334
- serializedVersion: 3
time: 1
value: 1.0010881
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
camera3DScene: {fileID: 314132887}
cameraInGame: {fileID: 1539927129}
enableCalibrationScene: 0
textLeft: {fileID: 1953342439}
textRight: {fileID: 2074164233}
textDBP1: {fileID: 210948115}
textDBP2: {fileID: 2135683531}
textInstruction: {fileID: 1783216403}
playerBlink: {fileID: 0}
SimScreenActors: {fileID: 0}
SimScreenOverlay: {fileID: 0}
CamLookRate: 0.2
consoleMirror: {fileID: 0}
_calib_votage_x_left: 617
_calib_votage_x_right: 300
_calib_votage_y_top: 711
_calib_votage_y_bottom: 379
_calib_write_votage_x_left: 420
_calib_write_votage_x_right: 302
_calib_write_votage_y_top: 180
_calib_write_votage_y_bottom: 80
--- !u!4 &1119153336
Transform:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -4292,7 +4222,7 @@ MonoBehaviour:
m_EditorClassIdentifier:
p1_read: 1
p2_read: 1
useOverlay: 1
useOverlay: 0
screenOverlay: {fileID: 1138065681}
overlay_extra_text:
overlay_topLeft: {fileID: 618656289}
Expand Down Expand Up @@ -5146,8 +5076,8 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: da959069ab19249bfb84d5a569f8f6a5, type: 3}
m_Name:
m_EditorClassIdentifier:
go_calibration: {fileID: 1119153334}
go_AI: {fileID: 511151601}
calibration: {fileID: 1119153334}
AI: {fileID: 511151601}
--- !u!4 &1490547034
Transform:
m_ObjectHideFlags: 0
Expand Down
8 changes: 8 additions & 0 deletions OdysseyNow/Assets/ScreenOverlays/Basketball.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 2333cab

Please sign in to comment.