Compare commits

...

7 commits
23w39a ... main

Author SHA1 Message Date
6c2d2dfca7 Attempt to refactor input handling 2025-03-21 18:37:51 -04:00
b703b7607d rebrand lol 2024-01-25 15:34:02 -05:00
a193352324 Fix missing wheel sounds
Closes #4
2024-01-24 22:34:55 -05:00
4ae274a686 Update README.md 2024-01-23 22:49:11 -05:00
16253ee0f2 android fix 2023-10-06 13:31:42 -04:00
2922e56e7c Fix the ProjectSettings
* Fixes the king pig feeding minigame (i am guessing it had to do with DynamicsManager and/or Phyiscs2DSettings)

* Should fix save directories

* Should fix package names

* Should fix autorotate
2023-10-06 10:41:00 -04:00
8dabc472f7 Fix touchscreen input on anything that isn't Android or iOS
Previously, to check if touch input should be used, the game checked if the runtime platform was Android or iOS. As such, using a mouse on these platforms (well, Android, did not test iOS) does not work. On other platforms, touch input appeared to work, however since it was technically mouse input features, some things, such as zooming in and out of levels did not work. This commit should fix that for all platforms.

Instead of checking the runtime platform, now, it checks if the device supports touchscreen (regardless of platform), and if there is at least one current touch. As such, both types of input should now be supported on all platforms. (this was tested on a windows 8.1 tablet pc)
2023-10-03 22:40:58 -04:00
29 changed files with 3069 additions and 7940 deletions

View file

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 2c7c54c6f6e596ad98bd8c8273f24e97
guid: 72e11eb82c4e0900994a843f520605c9
folderAsset: yes
DefaultImporter:
externalObjects: {}

View file

@ -42,7 +42,7 @@ AudioSource:
m_Enabled: 1
serializedVersion: 4
OutputAudioMixerGroup: {fileID: 0}
m_audioClip: {fileID: 8300000, guid: a1fb5bf87e87b11469938b1ec16ccb56, type: 3}
m_audioClip: {fileID: 8300000, guid: 45c998f8a787c6541b5251dec9aec15c, type: 3}
m_PlayOnAwake: 0
m_Volume: 1
m_Pitch: 0.37

View file

@ -42,7 +42,7 @@ AudioSource:
m_Enabled: 1
serializedVersion: 4
OutputAudioMixerGroup: {fileID: 0}
m_audioClip: {fileID: 8300000, guid: a1fb5bf87e87b11469938b1ec16ccb56, type: 3}
m_audioClip: {fileID: 8300000, guid: 45c998f8a787c6541b5251dec9aec15c, type: 3}
m_PlayOnAwake: 0
m_Volume: 1
m_Pitch: 0.37

View file

@ -4,11 +4,12 @@
Material:
serializedVersion: 6
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: Episode2a_Mid
m_Shader: {fileID: 4800000, guid: 87ec14d9000e46924e8be020c312dda4, type: 3}
m_ShaderKeywords:
m_ShaderKeywords:
m_LightmapFlags: 5
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
@ -22,6 +23,6 @@ Material:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Floats: {}
m_Floats: []
m_Colors:
- _Color: {r: 1, g: 1, b: 1, a: 1}

View file

@ -4,11 +4,12 @@
Material:
serializedVersion: 6
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: Episode2a_Start
m_Shader: {fileID: 4800000, guid: 87ec14d9000e46924e8be020c312dda4, type: 3}
m_ShaderKeywords:
m_ShaderKeywords:
m_LightmapFlags: 5
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
@ -22,6 +23,6 @@ Material:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Floats: {}
m_Floats: []
m_Colors:
- _Color: {r: 1, g: 1, b: 1, a: 1}

View file

@ -0,0 +1,45 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &1403606303201775
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 4313665066920544}
- component: {fileID: 3770296088317502516}
m_Layer: 24
m_Name: InputManager
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &4313665066920544
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1403606303201775}
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
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &3770296088317502516
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1403606303201775}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 19e228d4d289a94f19ef06ee08631c71, type: 3}
m_Name:
m_EditorClassIdentifier:

View file

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 84d2411aefd50c2b28e8c76596d99fbf
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View file

@ -1,22 +1,12 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !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: 1209647188101178}
m_IsPrefabParent: 1
--- !u!1 &1209647188101178
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
serializedVersion: 5
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 4427594563210266}
- component: {fileID: 114346300641634211}
@ -29,9 +19,10 @@ GameObject:
m_IsActive: 1
--- !u!4 &4427594563210266
Transform:
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1209647188101178}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
@ -42,65 +33,77 @@ Transform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &114346300641634211
MonoBehaviour:
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1209647188101178}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 42af34292849d49646aeed71c6456225, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Name:
m_EditorClassIdentifier:
m_platformSingletons:
- platforms: 000000000100000005000000
singleton: {fileID: 1875469945980329, guid: 87f883c80c4c22a34bc0c215f2a0c1d2, type: 2}
singleton: {fileID: 1875469945980329, guid: 87f883c80c4c22a34bc0c215f2a0c1d2,
type: 3}
- platforms: 000000000100000005000000
singleton: {fileID: 1339581412702681, guid: 7246ea46be0c438b432b1d81d683d1cb, type: 2}
singleton: {fileID: 1339581412702681, guid: 7246ea46be0c438b432b1d81d683d1cb,
type: 3}
- platforms: 00000000
singleton: {fileID: 1828283935284296, guid: 8521902550f847ab482c260997a828a0, type: 2}
singleton: {fileID: 1828283935284296, guid: 8521902550f847ab482c260997a828a0,
type: 3}
- platforms: 00000000
singleton: {fileID: 1839078755916108, guid: 778973e669b94680413797f09df3434c, type: 2}
singleton: {fileID: 1839078755916108, guid: 778973e669b94680413797f09df3434c,
type: 3}
- platforms: 02000000
singleton: {fileID: 1647089105227813, guid: 50879702d96bc3994cb08006850a8a37, type: 2}
singleton: {fileID: 1647089105227813, guid: 50879702d96bc3994cb08006850a8a37,
type: 3}
- platforms: 02000000
singleton: {fileID: 1003855045099876, guid: a4462998a6a36cbb4c89d37a1d237e4c, type: 2}
singleton: {fileID: 1003855045099876, guid: a4462998a6a36cbb4c89d37a1d237e4c,
type: 3}
- platforms: 01000000
singleton: {fileID: 1235751572096289, guid: d991b15bbf6f18b54aa109e4b7bc5220, type: 2}
singleton: {fileID: 1235751572096289, guid: d991b15bbf6f18b54aa109e4b7bc5220,
type: 3}
- platforms: 0000000001000000
singleton: {fileID: 1378047639872964, guid: 78165b4888ceb1814166abb8454e9395, type: 2}
singleton: {fileID: 1378047639872964, guid: 78165b4888ceb1814166abb8454e9395,
type: 3}
- platforms: 0000000001000000
singleton: {fileID: 1201587426226787, guid: f0f163b39d26cd9241daac80ae6fc79a, type: 2}
singleton: {fileID: 1201587426226787, guid: f0f163b39d26cd9241daac80ae6fc79a,
type: 3}
- platforms: 0000000001000000
singleton: {fileID: 1339637025689374, guid: d3537e440434edbb4c9af32d5381d072, type: 2}
singleton: {fileID: 1339637025689374, guid: d3537e440434edbb4c9af32d5381d072,
type: 3}
m_commonSingletons:
- {fileID: 1583279984661014, guid: bfb81bad87b868b14f5bf29fba8e176c, type: 2}
- {fileID: 1844482152914794, guid: 8a606db6ace058b5409e0604aa4cb6d7, type: 2}
- {fileID: 1749767312629123, guid: 38c39f2e54718e934519da0fc8fa297a, type: 2}
- {fileID: 1333083021282635, guid: 9be4dec8158c8aa9405d345d2c6e6e25, type: 2}
- {fileID: 1489955188834915, guid: 7088cfb5e96cf9b942b3f092fe678064, type: 2}
- {fileID: 1670200755745761, guid: 3039005e35d18ca84df544e2bfa5335b, type: 2}
- {fileID: 1494574746522880, guid: a03b1fcceedfc1be43c84ce2f4ba6adb, type: 2}
- {fileID: 1229503408300461, guid: 197e1d759349b5884a3af0a50dbe71c6, type: 2}
- {fileID: 1948536838405027, guid: 990ad7c6483ab4b84672ee6bafb36efa, type: 2}
- {fileID: 1109176693036910, guid: c3e1dae49488a5bf4a6f324905694cb6, type: 2}
- {fileID: 1082059118330139, guid: 199890c9fa408a884fbd33cec17a3c43, type: 2}
- {fileID: 1845685163491465, guid: 8b9bdca0e0e05b8d4d8aafa9741096c5, type: 2}
- {fileID: 1423745085298059, guid: 82e9eeb0f333139745b3223aaa648dc6, type: 2}
- {fileID: 1492337780157316, guid: 3b74c335f9bb248547cefd868e3ced7b, type: 2}
- {fileID: 1297496267986254, guid: 12e6fb69c093b59a4235c41bc1e2300b, type: 2}
- {fileID: 1288395191254353, guid: add6c97bc117c5a240ed8d334efc1434, type: 2}
- {fileID: 1689028653866908, guid: a0cb3b7b3dbf158d4592bc65cb38f961, type: 2}
- {fileID: 1973774761334177, guid: 749ef4121da89fb3443a75815988319c, type: 2}
- {fileID: 1333551932251375, guid: 35bda4023eaac58745da5960457ae352, type: 2}
- {fileID: 1627512324759526, guid: b6c174dce53d29b84f4f70b5371df5e6, type: 2}
- {fileID: 1086168063367571, guid: 7c7706b857a509a74a7fb631b7f35787, type: 2}
- {fileID: 1300994118367831, guid: 8fc088593d16fa8f436f854ca90b1f35, type: 2}
- {fileID: 1887923683873935, guid: c611e9a2583d338a495ac6bc5089b465, type: 2}
- {fileID: 1062975116743938, guid: 91a93feda03ecf824a1c912c65ec4922, type: 2}
- {fileID: 1380739253970218, guid: da2126c6f7107da146e905c9409a6d43, type: 2}
- {fileID: 1165003388906840, guid: 317a9cfa78c4c9b24f7906173e3b0e75, type: 2}
- {fileID: 1505058240137202, guid: 4dbff79b8486c68e4b8fcef1de07b707, type: 2}
- {fileID: 1225123916247272, guid: 6ca6e38cef897bb940003b4d4b904671, type: 2}
- {fileID: 1865442820050835, guid: dfc2807d00d1d2a24f6853be15a217ef, type: 2}
- {fileID: 1813356220450816, guid: 597b92a7d8ea78a2435d74a087566129, type: 2}
- {fileID: 1373626037220906, guid: 7146ba416ca11c9c4b74b78687fa25ec, type: 2}
- {fileID: 1583279984661014, guid: bfb81bad87b868b14f5bf29fba8e176c, type: 3}
- {fileID: 1844482152914794, guid: 8a606db6ace058b5409e0604aa4cb6d7, type: 3}
- {fileID: 1749767312629123, guid: 38c39f2e54718e934519da0fc8fa297a, type: 3}
- {fileID: 1333083021282635, guid: 9be4dec8158c8aa9405d345d2c6e6e25, type: 3}
- {fileID: 1489955188834915, guid: 7088cfb5e96cf9b942b3f092fe678064, type: 3}
- {fileID: 1670200755745761, guid: 3039005e35d18ca84df544e2bfa5335b, type: 3}
- {fileID: 1494574746522880, guid: a03b1fcceedfc1be43c84ce2f4ba6adb, type: 3}
- {fileID: 1229503408300461, guid: 197e1d759349b5884a3af0a50dbe71c6, type: 3}
- {fileID: 1948536838405027, guid: 990ad7c6483ab4b84672ee6bafb36efa, type: 3}
- {fileID: 1109176693036910, guid: c3e1dae49488a5bf4a6f324905694cb6, type: 3}
- {fileID: 1082059118330139, guid: 199890c9fa408a884fbd33cec17a3c43, type: 3}
- {fileID: 1845685163491465, guid: 8b9bdca0e0e05b8d4d8aafa9741096c5, type: 3}
- {fileID: 1423745085298059, guid: 82e9eeb0f333139745b3223aaa648dc6, type: 3}
- {fileID: 1492337780157316, guid: 3b74c335f9bb248547cefd868e3ced7b, type: 3}
- {fileID: 1297496267986254, guid: 12e6fb69c093b59a4235c41bc1e2300b, type: 3}
- {fileID: 1288395191254353, guid: add6c97bc117c5a240ed8d334efc1434, type: 3}
- {fileID: 1689028653866908, guid: a0cb3b7b3dbf158d4592bc65cb38f961, type: 3}
- {fileID: 1973774761334177, guid: 749ef4121da89fb3443a75815988319c, type: 3}
- {fileID: 1333551932251375, guid: 35bda4023eaac58745da5960457ae352, type: 3}
- {fileID: 1627512324759526, guid: b6c174dce53d29b84f4f70b5371df5e6, type: 3}
- {fileID: 1086168063367571, guid: 7c7706b857a509a74a7fb631b7f35787, type: 3}
- {fileID: 1300994118367831, guid: 8fc088593d16fa8f436f854ca90b1f35, type: 3}
- {fileID: 1887923683873935, guid: c611e9a2583d338a495ac6bc5089b465, type: 3}
- {fileID: 1062975116743938, guid: 91a93feda03ecf824a1c912c65ec4922, type: 3}
- {fileID: 1380739253970218, guid: da2126c6f7107da146e905c9409a6d43, type: 3}
- {fileID: 1165003388906840, guid: 317a9cfa78c4c9b24f7906173e3b0e75, type: 3}
- {fileID: 1505058240137202, guid: 4dbff79b8486c68e4b8fcef1de07b707, type: 3}
- {fileID: 1225123916247272, guid: 6ca6e38cef897bb940003b4d4b904671, type: 3}
- {fileID: 1865442820050835, guid: dfc2807d00d1d2a24f6853be15a217ef, type: 3}
- {fileID: 1813356220450816, guid: 597b92a7d8ea78a2435d74a087566129, type: 3}
- {fileID: 1373626037220906, guid: 7146ba416ca11c9c4b74b78687fa25ec, type: 3}
- {fileID: 1403606303201775, guid: 84d2411aefd50c2b28e8c76596d99fbf, type: 3}

File diff suppressed because it is too large Load diff

View file

@ -156,7 +156,7 @@ public class Button : Widget
if (this.animate)
{
bool flag = !this.down && this.mouseOver;
if (DeviceInfo.UsesTouchInput)
if (Singleton<InputManager>.Instance.UsesTouchInput)
{
flag = (this.down || this.mouseOver);
}

View file

@ -142,8 +142,6 @@ public class ConstructionUI : WPFMonoBehaviour
int num = 0;
int num2 = 0;
int num3 = 0;
this.m_useDragOffset = (DeviceInfo.UsesTouchInput && !Singleton<BuildCustomizationLoader>.Instance.IsHDVersion);
this.m_allowDragPlacement = !DeviceInfo.UsesTouchInput;
foreach (GameObject gameObject in WPFMonoBehaviour.gameData.m_parts)
{
Transform transform = gameObject.transform;
@ -274,6 +272,9 @@ public class ConstructionUI : WPFMonoBehaviour
private void Update()
{
this.m_useDragOffset = (Singleton<InputManager>.Instance.UsesTouchInput && !Singleton<BuildCustomizationLoader>.Instance.IsHDVersion);
this.m_allowDragPlacement = !Singleton<InputManager>.Instance.UsesTouchInput;
if (this.m_disableFunctionality)
{
return;
@ -808,7 +809,7 @@ public class ConstructionUI : WPFMonoBehaviour
this.m_dragStarted = false;
}
float num = 1f;
if (DeviceInfo.UsesTouchInput)
if (Singleton<InputManager>.Instance.UsesTouchInput)
{
num = ((!this.m_useDragOffset) ? 10f : 20f);
}

View file

@ -6,8 +6,7 @@ public class DeviceInfo
{
get
{
RuntimePlatform runtimePlatform = Application.platform;
return runtimePlatform == RuntimePlatform.IPhonePlayer || runtimePlatform == RuntimePlatform.Android;
return Singleton<InputManager>.Instance.UsesTouchInput;
}
}

View file

@ -163,18 +163,18 @@ public class EpisodeSelector : MonoBehaviour
{
UserSettings.SetInt(Singleton<GameManager>.Instance.CurrentSceneName + "_active_page", this.m_page);
}
if (!DeviceInfo.UsesTouchInput)
if (!Singleton<InputManager>.Instance.UsesTouchInput)
{
this.m_rightScroll.SetActive(true);
this.m_leftScroll.SetActive(true);
}
}
else if (!DeviceInfo.UsesTouchInput)
else if (!Singleton<InputManager>.Instance.UsesTouchInput)
{
this.m_rightScroll.SetActive(false);
this.m_leftScroll.SetActive(false);
}
if (!DeviceInfo.UsesTouchInput)
if (!Singleton<InputManager>.Instance.UsesTouchInput)
{
if (this.CurrentPage == 0)
{
@ -201,7 +201,7 @@ public class EpisodeSelector : MonoBehaviour
float num2 = vector2.x - vector.x;
this.m_scrollPivot.transform.localPosition = new Vector3(Mathf.Clamp(this.m_scrollPivot.transform.localPosition.x + num2, this.m_rightDragLimit, this.m_leftDragLimit), this.m_scrollPivot.transform.localPosition.y, this.m_scrollPivot.transform.localPosition.z);
Vector3 vector3 = this.m_hudCamera.ScreenToWorldPoint(this.m_initialInputPos);
if (!DeviceInfo.UsesTouchInput && Mathf.Abs(vector2.x - vector3.x) > 0.2f)
if (!Singleton<InputManager>.Instance.UsesTouchInput && Mathf.Abs(vector2.x - vector3.x) > 0.2f)
{
this.m_rightScroll.SetActive(false);
this.m_leftScroll.SetActive(false);
@ -319,7 +319,7 @@ public class EpisodeSelector : MonoBehaviour
}
this.m_rightDragLimit = -this.m_hudCamera.ScreenToWorldPoint(new Vector3((float)(Screen.width * this.m_pageCount) - this.EdgeMargin, 0f, 0f)).x;
this.m_leftDragLimit = -this.m_hudCamera.ScreenToWorldPoint(new Vector3(this.EdgeMargin, 0f, 0f)).x;
if (DeviceInfo.UsesTouchInput || this.m_pageCount <= 1)
if (Singleton<InputManager>.Instance.UsesTouchInput || this.m_pageCount <= 1)
{
this.m_leftScroll.SetActive(false);
this.m_rightScroll.SetActive(false);

View file

@ -243,7 +243,7 @@ public class GuiManager : Singleton<GuiManager>
{
return;
}
if (DeviceInfo.UsesTouchInput)
if (Singleton<InputManager>.Instance.UsesTouchInput)
{
this.TouchInput();
}

View file

@ -163,7 +163,7 @@ public class IngameCamera : WPFMonoBehaviour
}
if (WPFMonoBehaviour.levelManager.gameState == LevelManager.GameState.Building)
{
if (!DeviceInfo.UsesTouchInput)
if (!Singleton<InputManager>.Instance.UsesTouchInput)
{
float num = Input.GetAxis("Mouse ScrollWheel") + this.m_keyZoomDelta;
if (num < 0f && !WPFMonoBehaviour.levelManager.ConstructionUI.IsDragging())
@ -194,7 +194,7 @@ public class IngameCamera : WPFMonoBehaviour
}
if (WPFMonoBehaviour.levelManager.gameState == LevelManager.GameState.PreviewWhileBuilding)
{
if (!DeviceInfo.UsesTouchInput)
if (!Singleton<InputManager>.Instance.UsesTouchInput)
{
if (this.currentFOV <= 9f)
{
@ -644,7 +644,7 @@ public class IngameCamera : WPFMonoBehaviour
{
return Vector3.zero;
}
if (!DeviceInfo.UsesTouchInput)
if (!Singleton<InputManager>.Instance.UsesTouchInput)
{
Vector3 vector = WPFMonoBehaviour.ScreenToZ0(this.m_panStartPosition) - WPFMonoBehaviour.ScreenToZ0(Input.mousePosition);
this.m_panStartPosition = Input.mousePosition;
@ -707,7 +707,7 @@ public class IngameCamera : WPFMonoBehaviour
{
return 0f;
}
if (DeviceInfo.UsesTouchInput)
if (Singleton<InputManager>.Instance.UsesTouchInput)
{
if (Input.touchCount != 2)
{
@ -766,7 +766,7 @@ public class IngameCamera : WPFMonoBehaviour
private void DoPanning()
{
if (DeviceInfo.UsesTouchInput)
if (Singleton<InputManager>.Instance.UsesTouchInput)
{
if (Input.touchCount == 1)
{

View file

@ -0,0 +1,38 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class InputManager : Singleton<InputManager>
{
public bool UsesTouchInput { get; set; } // * This value may change at any time
#if !UNITY_WEBGL
private void Awake()
{
Input.simulateMouseWithTouches = false;
RuntimePlatform runtimePlatform = Application.platform;
this.UsesTouchInput = runtimePlatform == RuntimePlatform.IPhonePlayer || runtimePlatform == RuntimePlatform.Android; // * This is just a default value
base.SetAsPersistant();
}
private void Update()
{
bool usesTouch = this.UsesTouchInput;
if (!usesTouch && Input.touchCount != 0)
{
this.UsesTouchInput = true;
}
else if (usesTouch && InputManager.CheckMouse())
{
this.UsesTouchInput = false;
}
}
private static bool CheckMouse()
{
if (!Input.mousePresent) return false;
return Input.GetMouseButtonDown(0) || Input.GetMouseButtonDown(1) || Input.GetMouseButtonDown(2);
}
#endif
}

View file

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 19e228d4d289a94f19ef06ee08631c71
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View file

@ -175,12 +175,13 @@ public class LevelSelector : WPFMonoBehaviour
this.m_buttonGrid = base.transform.Find("ButtonGrid").GetComponent<ButtonGrid>();
this.m_currentScreenWidth = Screen.width;
this.m_currentScreenHeight = Screen.height;
this.m_currentUsesTouchInput = Singleton<InputManager>.Instance.UsesTouchInput;
this.m_page = Mathf.Min(this.m_page, this.m_pageCount);
Singleton<GameManager>.Instance.OpenEpisode(this);
this.CreateButtons();
this.CreatePageDots();
this.LayoutButtons(this.m_page);
if (DeviceInfo.UsesTouchInput)
if (Singleton<InputManager>.Instance.UsesTouchInput)
{
this.m_leftScroll.SetActive(false);
this.m_rightScroll.SetActive(false);
@ -566,7 +567,7 @@ public class LevelSelector : WPFMonoBehaviour
private void Update()
{
if (this.m_currentScreenWidth != Screen.width || this.m_currentScreenHeight != Screen.height)
if (this.m_currentScreenWidth != Screen.width || this.m_currentScreenHeight != Screen.height || this.m_currentUsesTouchInput != Singleton<InputManager>.Instance.UsesTouchInput)
{
this.LayoutButtons(this.m_page);
this.m_currentScreenWidth = Screen.width;
@ -583,18 +584,18 @@ public class LevelSelector : WPFMonoBehaviour
{
UserSettings.SetInt(Singleton<GameManager>.Instance.CurrentSceneName + "_active_page", this.m_page);
}
if (!DeviceInfo.UsesTouchInput)
if (!Singleton<InputManager>.Instance.UsesTouchInput)
{
this.m_rightScroll.SetActive(true);
this.m_leftScroll.SetActive(true);
}
}
else if (!DeviceInfo.UsesTouchInput)
else if (!Singleton<InputManager>.Instance.UsesTouchInput)
{
this.m_rightScroll.SetActive(false);
this.m_leftScroll.SetActive(false);
}
if (!DeviceInfo.UsesTouchInput)
if (!Singleton<InputManager>.Instance.UsesTouchInput)
{
if (this.CurrentPage == 0)
{
@ -625,7 +626,7 @@ public class LevelSelector : WPFMonoBehaviour
float num = vector2.x - vector.x;
this.m_buttonGrid.transform.localPosition = new Vector3(Mathf.Clamp(this.m_buttonGrid.transform.localPosition.x + num, this.m_rightDragLimit, this.m_leftDragLimit), this.m_buttonGrid.transform.localPosition.y, this.m_buttonGrid.transform.localPosition.z);
Vector3 vector3 = WPFMonoBehaviour.hudCamera.ScreenToWorldPoint(this.m_initialInputPos);
if (!DeviceInfo.UsesTouchInput && Mathf.Abs(vector2.x - vector3.x) > 0.2f)
if (!Singleton<InputManager>.Instance.UsesTouchInput && Mathf.Abs(vector2.x - vector3.x) > 0.2f)
{
this.m_rightScroll.SetActive(false);
this.m_leftScroll.SetActive(false);
@ -1037,6 +1038,8 @@ public class LevelSelector : WPFMonoBehaviour
private int m_currentScreenHeight;
private bool m_currentUsesTouchInput;
private bool m_isIapOpen;
private bool m_isDialogOpen;

View file

@ -153,18 +153,18 @@ public class PageSelector : MonoBehaviour
{
UserSettings.SetInt(Singleton<GameManager>.Instance.CurrentSceneName + "_active_page", this.m_page);
}
if (!DeviceInfo.UsesTouchInput)
if (!Singleton<InputManager>.Instance.UsesTouchInput)
{
this.m_rightScroll.SetActive(true);
this.m_leftScroll.SetActive(true);
}
}
else if (!DeviceInfo.UsesTouchInput)
else if (!Singleton<InputManager>.Instance.UsesTouchInput)
{
this.m_rightScroll.SetActive(false);
this.m_leftScroll.SetActive(false);
}
if (!DeviceInfo.UsesTouchInput)
if (!Singleton<InputManager>.Instance.UsesTouchInput)
{
if (this.CurrentPage == 0)
{
@ -195,7 +195,7 @@ public class PageSelector : MonoBehaviour
float num2 = vector2.x - vector.x;
this.m_scrollPivot.transform.localPosition = new Vector3(Mathf.Clamp(this.m_scrollPivot.transform.localPosition.x + num2, this.m_rightDragLimit, this.m_leftDragLimit), this.m_scrollPivot.transform.localPosition.y, this.m_scrollPivot.transform.localPosition.z);
Vector3 vector3 = this.m_hudCamera.ScreenToWorldPoint(this.m_initialInputPos);
if (!DeviceInfo.UsesTouchInput && Mathf.Abs(vector2.x - vector3.x) > 0.2f)
if (!Singleton<InputManager>.Instance.UsesTouchInput && Mathf.Abs(vector2.x - vector3.x) > 0.2f)
{
this.m_rightScroll.SetActive(false);
this.m_leftScroll.SetActive(false);
@ -311,7 +311,7 @@ public class PageSelector : MonoBehaviour
}
this.m_rightDragLimit = -this.m_hudCamera.ScreenToWorldPoint(new Vector3((float)(Screen.width * this.m_pageCount) - this.EdgeMargin, 0f, 0f)).x;
this.m_leftDragLimit = -this.m_hudCamera.ScreenToWorldPoint(new Vector3(this.EdgeMargin, 0f, 0f)).x;
if (DeviceInfo.UsesTouchInput || this.m_pageCount <= 1)
if (Singleton<InputManager>.Instance.UsesTouchInput || this.m_pageCount <= 1)
{
this.m_leftScroll.SetActive(false);
this.m_rightScroll.SetActive(false);

View file

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: bfeee6a4f1859f840a4d06dbbd06a484
guid: 70431cd6bf4f947d9ad137403fc91c46
folderAsset: yes
DefaultImporter:
externalObjects: {}

View file

@ -8,10 +8,10 @@ AudioManager:
Doppler Factor: 1
Default Speaker Mode: 2
m_SampleRate: 0
m_DSPBufferSize: 1024
m_DSPBufferSize: 0
m_VirtualVoiceCount: 512
m_RealVoiceCount: 32
m_SpatializerPlugin:
m_AmbisonicDecoderPlugin:
m_SpatializerPlugin:
m_AmbisonicDecoderPlugin:
m_DisableAudio: 0
m_VirtualizeEffects: 1

View file

@ -8,7 +8,7 @@ PhysicsManager:
m_DefaultMaterial: {fileID: 0}
m_BounceThreshold: 2
m_SleepThreshold: 0.005
m_DefaultContactOffset: 0.01
m_DefaultContactOffset: 0.005
m_DefaultSolverIterations: 6
m_DefaultSolverVelocityIterations: 1
m_QueriesHitBackfaces: 0
@ -17,10 +17,10 @@ PhysicsManager:
m_ClothInterCollisionDistance: 0
m_ClothInterCollisionStiffness: 0
m_ContactsGeneration: 1
m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
m_LayerCollisionMatrix: fffb33fdfffb21f8fffb31f8fffffffffffb21f8ffff3ff8fffffffffffffffffffb21f8ff7b38ffe80020f8fffb31f8ff5b30f9ff6b30f9fffb31f9ff4931f8ffc931fce90024f8e80022f8e80230fbedfa29f9ffff7ff8c80020f8c80080fec97218fec80288ffc90281ffffffffffffffffffffffffffffffffffffffffff
m_AutoSimulation: 1
m_AutoSyncTransforms: 0
m_ReuseCollisionCallbacks: 1
m_AutoSyncTransforms: 1
m_ReuseCollisionCallbacks: 0
m_ClothInterCollisionSettingsToggle: 0
m_ContactPairsMode: 0
m_BroadphaseType: 0

View file

@ -5,142 +5,14 @@ InputManager:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Axes:
- serializedVersion: 3
m_Name: Horizontal
descriptiveName:
descriptiveNegativeName:
negativeButton: left
positiveButton: right
altNegativeButton: a
altPositiveButton: d
gravity: 3
dead: 0.001
sensitivity: 3
snap: 1
invert: 0
type: 0
axis: 0
joyNum: 0
- serializedVersion: 3
m_Name: Vertical
descriptiveName:
descriptiveNegativeName:
negativeButton: down
positiveButton: up
altNegativeButton: s
altPositiveButton: w
gravity: 3
dead: 0.001
sensitivity: 3
snap: 1
invert: 0
type: 0
axis: 0
joyNum: 0
- serializedVersion: 3
m_Name: Fire1
descriptiveName:
descriptiveNegativeName:
negativeButton:
positiveButton: left ctrl
altNegativeButton:
altPositiveButton: mouse 0
gravity: 1000
dead: 0.001
sensitivity: 1000
snap: 0
invert: 0
type: 0
axis: 0
joyNum: 0
- serializedVersion: 3
m_Name: Fire2
descriptiveName:
descriptiveNegativeName:
negativeButton:
positiveButton: left alt
altNegativeButton:
altPositiveButton: mouse 1
gravity: 1000
dead: 0.001
sensitivity: 1000
snap: 0
invert: 0
type: 0
axis: 0
joyNum: 0
- serializedVersion: 3
m_Name: Fire3
descriptiveName:
descriptiveNegativeName:
negativeButton:
positiveButton: left shift
altNegativeButton:
altPositiveButton: mouse 2
gravity: 1000
dead: 0.001
sensitivity: 1000
snap: 0
invert: 0
type: 0
axis: 0
joyNum: 0
- serializedVersion: 3
m_Name: Jump
descriptiveName:
descriptiveNegativeName:
negativeButton:
positiveButton: space
altNegativeButton:
altPositiveButton:
gravity: 1000
dead: 0.001
sensitivity: 1000
snap: 0
invert: 0
type: 0
axis: 0
joyNum: 0
- serializedVersion: 3
m_Name: Mouse X
descriptiveName:
descriptiveNegativeName:
negativeButton:
positiveButton:
altNegativeButton:
altPositiveButton:
gravity: 0
dead: 0
sensitivity: 0.1
snap: 0
invert: 0
type: 1
axis: 0
joyNum: 0
- serializedVersion: 3
m_Name: Mouse Y
descriptiveName:
descriptiveNegativeName:
negativeButton:
positiveButton:
altNegativeButton:
altPositiveButton:
gravity: 0
dead: 0
sensitivity: 0.1
snap: 0
invert: 0
type: 1
axis: 1
joyNum: 0
- serializedVersion: 3
m_Name: Mouse ScrollWheel
descriptiveName:
descriptiveNegativeName:
negativeButton:
positiveButton:
altNegativeButton:
altPositiveButton:
descriptiveName:
descriptiveNegativeName:
negativeButton:
positiveButton:
altNegativeButton:
altPositiveButton:
gravity: 0
dead: 0
sensitivity: 0.1
@ -149,109 +21,13 @@ InputManager:
type: 1
axis: 2
joyNum: 0
- serializedVersion: 3
m_Name: Horizontal
descriptiveName:
descriptiveNegativeName:
negativeButton:
positiveButton:
altNegativeButton:
altPositiveButton:
gravity: 0
dead: 0.19
sensitivity: 1
snap: 0
invert: 0
type: 2
axis: 0
joyNum: 0
- serializedVersion: 3
m_Name: Vertical
descriptiveName:
descriptiveNegativeName:
negativeButton:
positiveButton:
altNegativeButton:
altPositiveButton:
gravity: 0
dead: 0.19
sensitivity: 1
snap: 0
invert: 1
type: 2
axis: 1
joyNum: 0
- serializedVersion: 3
m_Name: Fire1
descriptiveName:
descriptiveNegativeName:
negativeButton:
positiveButton: joystick button 0
altNegativeButton:
altPositiveButton:
gravity: 1000
dead: 0.001
sensitivity: 1000
snap: 0
invert: 0
type: 0
axis: 0
joyNum: 0
- serializedVersion: 3
m_Name: Fire2
descriptiveName:
descriptiveNegativeName:
negativeButton:
positiveButton: joystick button 1
altNegativeButton:
altPositiveButton:
gravity: 1000
dead: 0.001
sensitivity: 1000
snap: 0
invert: 0
type: 0
axis: 0
joyNum: 0
- serializedVersion: 3
m_Name: Fire3
descriptiveName:
descriptiveNegativeName:
negativeButton:
positiveButton: joystick button 2
altNegativeButton:
altPositiveButton:
gravity: 1000
dead: 0.001
sensitivity: 1000
snap: 0
invert: 0
type: 0
axis: 0
joyNum: 0
- serializedVersion: 3
m_Name: Jump
descriptiveName:
descriptiveNegativeName:
negativeButton:
positiveButton: joystick button 3
altNegativeButton:
altPositiveButton:
gravity: 1000
dead: 0.001
sensitivity: 1000
snap: 0
invert: 0
type: 0
axis: 0
joyNum: 0
- serializedVersion: 3
m_Name: Submit
descriptiveName:
descriptiveNegativeName:
negativeButton:
descriptiveName:
descriptiveNegativeName:
negativeButton:
positiveButton: return
altNegativeButton:
altNegativeButton:
altPositiveButton: joystick button 0
gravity: 1000
dead: 0.001
@ -263,11 +39,11 @@ InputManager:
joyNum: 0
- serializedVersion: 3
m_Name: Submit
descriptiveName:
descriptiveNegativeName:
negativeButton:
descriptiveName:
descriptiveNegativeName:
negativeButton:
positiveButton: enter
altNegativeButton:
altNegativeButton:
altPositiveButton: space
gravity: 1000
dead: 0.001
@ -279,11 +55,11 @@ InputManager:
joyNum: 0
- serializedVersion: 3
m_Name: Cancel
descriptiveName:
descriptiveNegativeName:
negativeButton:
descriptiveName:
descriptiveNegativeName:
negativeButton:
positiveButton: escape
altNegativeButton:
altNegativeButton:
altPositiveButton: joystick button 1
gravity: 1000
dead: 0.001

View file

@ -11,63 +11,63 @@ NavMeshProjectSettings:
cost: 1
- name: Jump
cost: 2
- name:
- name:
cost: 1
- name:
- name:
cost: 1
- name:
- name:
cost: 1
- name:
- name:
cost: 1
- name:
- name:
cost: 1
- name:
- name:
cost: 1
- name:
- name:
cost: 1
- name:
- name:
cost: 1
- name:
- name:
cost: 1
- name:
- name:
cost: 1
- name:
- name:
cost: 1
- name:
- name:
cost: 1
- name:
- name:
cost: 1
- name:
- name:
cost: 1
- name:
- name:
cost: 1
- name:
- name:
cost: 1
- name:
- name:
cost: 1
- name:
- name:
cost: 1
- name:
- name:
cost: 1
- name:
- name:
cost: 1
- name:
- name:
cost: 1
- name:
- name:
cost: 1
- name:
- name:
cost: 1
- name:
- name:
cost: 1
- name:
- name:
cost: 1
- name:
- name:
cost: 1
- name:
- name:
cost: 1
- name:
- name:
cost: 1
- name:
- name:
cost: 1
m_LastAgentTypeID: -887442657
m_Settings:
@ -81,7 +81,7 @@ NavMeshProjectSettings:
maxJumpAcrossDistance: 0
minRegionArea: 2
manualCellSize: 0
cellSize: 0.16666667
cellSize: 0.1666667
manualTileSize: 0
tileSize: 256
accuratePlacement: 0

View file

@ -19,38 +19,19 @@ Physics2DSettings:
m_LinearSleepTolerance: 0.01
m_AngularSleepTolerance: 2
m_DefaultContactOffset: 0.01
m_JobOptions:
serializedVersion: 2
useMultithreading: 0
useConsistencySorting: 0
m_InterpolationPosesPerJob: 100
m_NewContactsPerJob: 30
m_CollideContactsPerJob: 100
m_ClearFlagsPerJob: 200
m_ClearBodyForcesPerJob: 200
m_SyncDiscreteFixturesPerJob: 50
m_SyncContinuousFixturesPerJob: 50
m_FindNearestContactsPerJob: 100
m_UpdateTriggerContactsPerJob: 100
m_IslandSolverCostThreshold: 100
m_IslandSolverBodyCostScale: 1
m_IslandSolverContactCostScale: 10
m_IslandSolverJointCostScale: 10
m_IslandSolverBodiesPerJob: 50
m_IslandSolverContactsPerJob: 50
m_AutoSimulation: 1
m_QueriesHitTriggers: 1
m_QueriesStartInColliders: 1
m_ChangeStopsCallbacks: 0
m_CallbacksOnDisable: 1
m_ReuseCollisionCallbacks: 1
m_AutoSyncTransforms: 0
m_AutoSyncTransforms: 1
m_AlwaysShowColliders: 0
m_ShowColliderSleep: 1
m_ShowColliderContacts: 0
m_ShowColliderAABB: 0
m_ContactArrowScale: 0.2
m_ColliderAwakeColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.7529412}
m_ColliderAsleepColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.36078432}
m_ColliderAwakeColor: {r: 0.5686275, g: 0.9568627, b: 0.5450981, a: 0.7529412}
m_ColliderAsleepColor: {r: 0.5686275, g: 0.9568627, b: 0.5450981, a: 0.3607843}
m_ColliderContactColor: {r: 1, g: 0, b: 1, a: 0.6862745}
m_ColliderAABBColor: {r: 1, g: 1, b: 0, a: 0.2509804}
m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff

View file

@ -12,7 +12,7 @@ PlayerSettings:
targetDevice: 2
useOnDemandResources: 0
accelerometerFrequency: 60
companyName: Rovio
companyName: Rovio Entertainment Ltd.
productName: Bad Piggies
defaultCursor: {fileID: 2800000, guid: 5a430d141a817b8d455ecbecd38c4f70, type: 3}
cursorHotspot: {x: 0, y: 0}
@ -55,8 +55,8 @@ PlayerSettings:
displayResolutionDialog: 1
iosUseCustomAppBackgroundBehavior: 0
iosAllowHTTPDownload: 1
allowedAutorotateToPortrait: 1
allowedAutorotateToPortraitUpsideDown: 1
allowedAutorotateToPortrait: 0
allowedAutorotateToPortraitUpsideDown: 0
allowedAutorotateToLandscapeRight: 1
allowedAutorotateToLandscapeLeft: 1
useOSAutorotation: 1
@ -159,6 +159,7 @@ PlayerSettings:
androidSupportedAspectRatio: 1
androidMaxAspectRatio: 2.1
applicationIdentifier:
Android: com.rovio.BadPiggiesHD
Standalone: com.Company.ProductName
buildNumber: {}
AndroidBundleVersionCode: 1
@ -794,7 +795,8 @@ PlayerSettings:
webGLCompressionFormat: 1
webGLLinkerTarget: 1
webGLThreadsSupport: 0
scriptingDefineSymbols: {}
scriptingDefineSymbols:
1:
platformArchitecture: {}
scriptingBackend: {}
il2cppCompilerConfiguration: {}

View file

@ -4,174 +4,34 @@
QualitySettings:
m_ObjectHideFlags: 0
serializedVersion: 5
m_CurrentQuality: 3
m_CurrentQuality: 0
m_QualitySettings:
- serializedVersion: 2
name: Very Low
name: Fast
pixelLightCount: 0
shadows: 0
shadowResolution: 0
shadowProjection: 1
shadowCascades: 1
shadowDistance: 15
shadowNearPlaneOffset: 3
shadowCascade2Split: 0.33333334
shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667}
shadowDistance: 20
shadowNearPlaneOffset: 2
shadowCascade2Split: 0.3333333
shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.4666667}
shadowmaskMode: 0
blendWeights: 1
textureQuality: 1
blendWeights: 2
textureQuality: 0
anisotropicTextures: 0
antiAliasing: 0
softParticles: 0
softVegetation: 0
realtimeReflectionProbes: 0
billboardsFaceCameraPosition: 0
vSyncCount: 0
lodBias: 0.3
vSyncCount: 1
lodBias: 0.4
maximumLODLevel: 0
particleRaycastBudget: 4
asyncUploadTimeSlice: 2
asyncUploadBufferSize: 16
resolutionScalingFixedDPIFactor: 1
excludedTargetPlatforms: []
- serializedVersion: 2
name: Low
pixelLightCount: 0
shadows: 0
shadowResolution: 0
shadowProjection: 1
shadowCascades: 1
shadowDistance: 20
shadowNearPlaneOffset: 3
shadowCascade2Split: 0.33333334
shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667}
shadowmaskMode: 0
blendWeights: 2
textureQuality: 0
anisotropicTextures: 0
antiAliasing: 0
softParticles: 0
softVegetation: 0
realtimeReflectionProbes: 0
billboardsFaceCameraPosition: 0
vSyncCount: 0
lodBias: 0.4
maximumLODLevel: 0
particleRaycastBudget: 16
asyncUploadTimeSlice: 2
asyncUploadBufferSize: 16
resolutionScalingFixedDPIFactor: 1
excludedTargetPlatforms: []
- serializedVersion: 2
name: Medium
pixelLightCount: 1
shadows: 0
shadowResolution: 0
shadowProjection: 1
shadowCascades: 1
shadowDistance: 20
shadowNearPlaneOffset: 3
shadowCascade2Split: 0.33333334
shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667}
shadowmaskMode: 0
blendWeights: 2
textureQuality: 0
anisotropicTextures: 0
antiAliasing: 0
softParticles: 0
softVegetation: 0
realtimeReflectionProbes: 0
billboardsFaceCameraPosition: 0
vSyncCount: 1
lodBias: 0.7
maximumLODLevel: 0
particleRaycastBudget: 64
asyncUploadTimeSlice: 2
asyncUploadBufferSize: 16
resolutionScalingFixedDPIFactor: 1
excludedTargetPlatforms: []
- serializedVersion: 2
name: High
pixelLightCount: 2
shadows: 0
shadowResolution: 1
shadowProjection: 1
shadowCascades: 2
shadowDistance: 40
shadowNearPlaneOffset: 3
shadowCascade2Split: 0.33333334
shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667}
shadowmaskMode: 1
blendWeights: 2
textureQuality: 0
anisotropicTextures: 0
antiAliasing: 0
softParticles: 0
softVegetation: 1
realtimeReflectionProbes: 0
billboardsFaceCameraPosition: 0
vSyncCount: 1
lodBias: 1
maximumLODLevel: 0
particleRaycastBudget: 256
asyncUploadTimeSlice: 2
asyncUploadBufferSize: 16
resolutionScalingFixedDPIFactor: 1
excludedTargetPlatforms: []
- serializedVersion: 2
name: Very High
pixelLightCount: 3
shadows: 0
shadowResolution: 2
shadowProjection: 1
shadowCascades: 2
shadowDistance: 70
shadowNearPlaneOffset: 3
shadowCascade2Split: 0.33333334
shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667}
shadowmaskMode: 1
blendWeights: 4
textureQuality: 0
anisotropicTextures: 0
antiAliasing: 0
softParticles: 0
softVegetation: 1
realtimeReflectionProbes: 0
billboardsFaceCameraPosition: 0
vSyncCount: 1
lodBias: 1.5
maximumLODLevel: 0
particleRaycastBudget: 1024
asyncUploadTimeSlice: 2
asyncUploadBufferSize: 16
resolutionScalingFixedDPIFactor: 1
excludedTargetPlatforms: []
- serializedVersion: 2
name: Ultra
pixelLightCount: 4
shadows: 0
shadowResolution: 0
shadowProjection: 1
shadowCascades: 4
shadowDistance: 150
shadowNearPlaneOffset: 3
shadowCascade2Split: 0.33333334
shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667}
shadowmaskMode: 1
blendWeights: 4
textureQuality: 0
anisotropicTextures: 0
antiAliasing: 0
softParticles: 0
softVegetation: 1
realtimeReflectionProbes: 0
billboardsFaceCameraPosition: 0
vSyncCount: 1
lodBias: 2
maximumLODLevel: 0
particleRaycastBudget: 4096
asyncUploadTimeSlice: 2
asyncUploadBufferSize: 16
asyncUploadBufferSize: 4
resolutionScalingFixedDPIFactor: 1
excludedTargetPlatforms: []
m_PerPlatformDefaultQuality:

View file

@ -4,6 +4,6 @@
TimeManager:
m_ObjectHideFlags: 0
Fixed Timestep: 0.02
Maximum Allowed Timestep: 0.1
Maximum Allowed Timestep: 0.05
m_TimeScale: 1
Maximum Particle Timestep: 0.03

View file

@ -1,8 +1,12 @@
# bad-piggies-2.3.6
# rise-and-swine
Maintained fork of bad-piggies-original
Maintained fork of [Bad-Piggies-Original](https://github.com/BP-Innovation/Bad-Piggies-Original) (formerly known as `bad-piggies-2.3.6`)
Currently tested platforms: PC, Mac & Linux Standalone, and WebGL.
Currently tested platforms: PC, Mac & Linux Standalone, Android, and WebGL.
# Why the name?
I suspect that the original name of Bad Piggies (from before the release) is "When Pigs Fly", which happens to be the name of an episode in the final game. Rise and Swine is also an episode of Bad Piggies, which took the place of When Pigs Fly as the second episode, which is why I named this project after it.
# Building