This commit is contained in:
RosimInc 2015-08-16 22:12:29 -04:00
commit 83c77a4b49
8 changed files with 773 additions and 342 deletions

View File

@ -0,0 +1,137 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &121098
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
serializedVersion: 4
m_Component:
- 4: {fileID: 485072}
- 33: {fileID: 3344238}
- 23: {fileID: 2342116}
- 114: {fileID: 11438324}
- 54: {fileID: 5425960}
m_Layer: 0
m_Name: NetworkingSphereTutorial
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &485072
Transform:
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 121098}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 0
--- !u!23 &2342116
MeshRenderer:
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 121098}
m_Enabled: 0
m_CastShadows: 1
m_ReceiveShadows: 1
m_Materials:
- {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0}
m_SubsetIndices:
m_StaticBatchRoot: {fileID: 0}
m_UseLightProbes: 1
m_ReflectionProbeUsage: 1
m_ProbeAnchor: {fileID: 0}
m_ScaleInLightmap: 1
m_PreserveUVs: 1
m_ImportantGI: 0
m_AutoUVMaxDistance: .5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 0
m_SortingOrder: 0
--- !u!33 &3344238
MeshFilter:
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 121098}
m_Mesh: {fileID: 10207, guid: 0000000000000000e000000000000000, type: 0}
--- !u!54 &5425960
Rigidbody:
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 121098}
serializedVersion: 2
m_Mass: 1
m_Drag: 0
m_AngularDrag: .800000012
m_UseGravity: 0
m_IsKinematic: 0
m_Interpolate: 0
m_Constraints: 0
m_CollisionDetection: 0
--- !u!114 &11438324
MonoBehaviour:
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 121098}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: d11858fd0dc89d1409d681deb6fd8a07, type: 3}
m_Name:
m_EditorClassIdentifier:
gameObjects:
LinkObj: {fileID: 11495142, guid: fab430cecad80ad4391987a06b550cb7, type: 2}
PersonObj: {fileID: 11417564, guid: 7a5b1db47a2c30e419038df40dffa79a, type: 2}
levelOptions:
NumPeople: 10
AvgNumFriends: 8
FriendshipLikeliness: .600000024
SphereRadius: 7
strategy:
awarenessChange:
friendRatio: {x: .200000003, y: .800000012, z: 1.5}
lastDeath: {x: .600000024, y: .400000006, z: 1}
maxDeathDuration: 10080
modifier: .219999999
deathNoticing:
popularity: {x: .600000024, y: .400000006, z: 1}
importance: {x: .75, y: .25, z: 1}
numFriends: {x: .800000012, y: .200000003, z: 1}
awareness: {x: .800000012, y: .200000003, z: 1}
modifier: .0299999993
chanceToPost:
popularity: {x: .699999988, y: .300000012, z: 1}
importance: {x: .699999988, y: .300000012, z: 1}
frequency: {x: .699999988, y: .300000012, z: 1}
modifier: .100000001
sphere: 0
rotationSpeed: .699999988
torqueForce: 1
DetailsPanel: {fileID: 0}
dragging: 0
delta: {x: 0, y: 0, z: 0}
rb: {fileID: 0}
peopleNodes: []
_selectedNode: {fileID: 0}
_timeSinceLastClick: 0
_isRotatingTowardsNode: 0
--- !u!1001 &100100000
Prefab:
m_ObjectHideFlags: 1
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications: []
m_RemovedComponents: []
m_ParentPrefab: {fileID: 0}
m_RootGameObject: {fileID: 121098}
m_IsPrefabParent: 1

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 9adefd6039fcc8644b6aa63861ae1632
timeCreated: 1439773169
licenseType: Free
NativeFormatImporter:
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because it is too large Load Diff

View File

@ -26,7 +26,7 @@ namespace DeathBook.Model
private float globalAwareness; //on a scale from 0 to 1
public float GlobalAwareness { get { return globalAwareness; } }
public int tutorialInt = 0;
public int tutorialInt = -1;
public bool allowNext = true;
private GameStrategy strategy = null;

View File

@ -122,7 +122,7 @@ namespace DeathBook.Model
public bool Kill()
{
if (Online || ((LevelManager.Instance.GameLevel.tutorialInt < 4) && (LevelManager.Instance.GameLevel.tutorialInt >= 0)))
if (Online || (LevelManager.Instance.GameLevel.tutorialInt > -1 && LevelManager.Instance.GameLevel.tutorialInt < 4))
return false;
//Debug.Log("Person " + id + " died!");
@ -137,6 +137,11 @@ namespace DeathBook.Model
GameLevel.RegisterKill(this);
if (LevelManager.Instance.GameLevel.tutorialInt == 5 && LevelManager.Instance.GameLevel.NumDead == 3)
{
LevelManager.Instance.GameLevel.tutorialInt = 6;
}
return true;
}

View File

@ -7,7 +7,7 @@ public class NetworkingSphere : MonoBehaviour
{
public GameObjectsOptions gameObjects = new GameObjectsOptions();
public LevelOptions levelOptions = new LevelOptions();
public GameStrategy strategy = new GameStrategy();
public GameStrategy strategy = new GameStrategy();
private NetworkDisconnection sphere;
[System.Serializable]
@ -60,7 +60,7 @@ public class NetworkingSphere : MonoBehaviour
{
int time = manager.GameLevel.DayTime;
GUI.Button(new Rect(50, 50, 100, 40), Utils.GetTimeString(time));
GUI.Button(new Rect(160, 50, 100, 40), manager.GameLevel.Awareness + "");
GUI.Button(new Rect(160, 50, 100, 40), manager.GameLevel.Awareness + "");
}
void Update()
@ -167,7 +167,7 @@ public class NetworkingSphere : MonoBehaviour
if (!_isRotatingTowardsNode || node != _selectedNode)
{
if ((lvl.tutorialInt > 1) || (lvl.tutorialInt > 1))
if ((lvl.tutorialInt == -1) || (lvl.tutorialInt > 1) || (lvl.tutorialInt > 1))
FocusOnNode(node);
}

View File

@ -14,25 +14,22 @@ public class TutorialScript : MonoBehaviour {
void Start()
{
lvl = LevelManager.Instance.GameLevel;
lvl.tutorialInt = 0;
}
void Update() {
btnNext.enabled = lvl.allowNext;
void Update()
{
btnNext.gameObject.SetActive(lvl.allowNext);
if (lvl.tutorialInt == 0)
{
Time.timeScale = 0;
lvl.allowNext = true;
tutorialText.text = "The facebook servers are full!\nMark Zuckerberg hired you, Death, to kill off a few of his users.\n\nCareful, or you might scare them away from Mark's website...";
tutorialText.text = "The Slaugthr servers are full!\nMark Zuckerberg hired you, Death, to kill off a few of his annoying users.\n\nCareful, or you might scare the rest away from Mark's website...";
}
else if (lvl.tutorialInt == 1)
{
tutorialText.text = "See how navigating works by holding the right mouse button and moving the sphere.\n\nThen, hit Next!";
tutorialText.text = "See how navigating works by holding the right mouse button and moving the network around.\n\nThen, hit Next!";
}
else if (lvl.tutorialInt == 2)
{
@ -40,17 +37,23 @@ public class TutorialScript : MonoBehaviour {
}
else if (lvl.tutorialInt == 3)
{
tutorialText.text = "Let's see what happens when you click on a user's friend list.";
tutorialText.text = "Let's see what happens when you click on a friend's picture in the selected user's friend list.";
}
else if (lvl.tutorialInt == 4)
{
tutorialText.text = "Alright, time for our first victim.\nHold the LEFT mouse button over a user until the X is complete.\nBeware! The user must be offline to be killed!";
tutorialText.text += "\n\nYou can hold the mouse button until the user goes offline.";
tutorialText.text = "Alright, time for our first victim.\nHold down the LEFT mouse button over a user until the X is complete. Beware! The user must be offline (darker picture) to be killed!";
tutorialText.text += "\n\nIf the user is online, you can hold the mouse button until he goes offline.";
}
else if (lvl.tutorialInt == 5)
{
tutorialText.text = "Kill many users to see how the color changes\n\nRemember, as users realize something is wrong with facebook,\nthe entire network will turn red!\n\nHaveFun!";
tutorialText.text = "Kill 2 more users to see how the color of the links and the borders changes.\n\nRemember, as users realize something is wrong with Slaugthr, the entire network will turn red!";
}
else if (lvl.tutorialInt == 6)
{
tutorialText.text = "Finally, notice the big \"Global Awareness\" bar at the bottom right corner of the screen. When it reaches 100%, it means you have been noticed and you lose!";
tutorialText.text += "\n\nHit next to start playing.";
lvl.allowNext = true;
Time.timeScale = 0f;
}
else
{
@ -62,13 +65,19 @@ public class TutorialScript : MonoBehaviour {
public void btnClick()
{
if (lvl.tutorialInt == 0)
{
Time.timeScale = 1;
}
if (lvl.tutorialInt == 6)
{
Application.LoadLevel("Gameplay");
Time.timeScale = 1;
}
lvl.tutorialInt++;
//Debug.Log(lvl.tutorialInt + ", aasfasf");
Time.timeScale = 1;
tutorialText.text = "eee";
lvl.allowNext = false;
//panel.transform.Translate(Vector3.right * 100);
}
}

View File

@ -5,7 +5,9 @@ EditorBuildSettings:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Scenes:
- enabled: 1
path: Assets/Scenes/Gameplay.unity
- enabled: 1
path: Assets/Scenes/splash.unity
- enabled: 1
path: Assets/Scenes/Tutoriel.unity
- enabled: 1
path: Assets/Scenes/Gameplay.unity