Last Minute R1 Fixes (#622)

* passed out seven times but here's your mr upbeat

im so tired. and r1 is right here.
but mr upbeat is better now i guess and dog ninja's bopping is fixed

* also a little bit more
This commit is contained in:
AstrlJelly 2024-01-15 08:06:38 -05:00 committed by GitHub
parent ede961fa31
commit 78e5278ea8
8 changed files with 962 additions and 902 deletions

View File

@ -26,11 +26,10 @@ Transform:
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1089093179602596564} m_GameObject: {fileID: 1089093179602596564}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0.008, y: 0, z: 0} m_LocalPosition: {x: 0.008000017, y: 9.313226e-10, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: m_Children: []
- {fileID: 8730184864405069350}
m_Father: {fileID: 1039565176908573975} m_Father: {fileID: 1039565176908573975}
m_RootOrder: 0 m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
@ -200,7 +199,6 @@ GameObject:
serializedVersion: 6 serializedVersion: 6
m_Component: m_Component:
- component: {fileID: 1584121333826078951} - component: {fileID: 1584121333826078951}
- component: {fileID: 2256168985014220240}
m_Layer: 0 m_Layer: 0
m_Name: Holder m_Name: Holder
m_TagString: Untagged m_TagString: Untagged
@ -225,27 +223,6 @@ Transform:
m_Father: {fileID: 862280508089709600} m_Father: {fileID: 862280508089709600}
m_RootOrder: 2 m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!95 &2256168985014220240
Animator:
serializedVersion: 5
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1488695648487991734}
m_Enabled: 1
m_Avatar: {fileID: 0}
m_Controller: {fileID: 9100000, guid: a5f93a456c442bc458973d17286581d9, type: 2}
m_CullingMode: 0
m_UpdateMode: 0
m_ApplyRootMotion: 0
m_LinearVelocityBlending: 0
m_StabilizeFeet: 0
m_WarningMessage:
m_HasTransformHierarchy: 1
m_AllowConstantClipSamplingOptimization: 1
m_KeepAnimatorStateOnDisable: 0
m_WriteDefaultValuesOnDisable: 0
--- !u!1 &1895376594866699655 --- !u!1 &1895376594866699655
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -790,7 +767,7 @@ GameObject:
m_Icon: {fileID: 0} m_Icon: {fileID: 0}
m_NavMeshLayer: 0 m_NavMeshLayer: 0
m_StaticEditorFlags: 0 m_StaticEditorFlags: 0
m_IsActive: 1 m_IsActive: 0
--- !u!224 &8730184864405069350 --- !u!224 &8730184864405069350
RectTransform: RectTransform:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -798,17 +775,17 @@ RectTransform:
m_PrefabInstance: {fileID: 0} m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6119064787687059058} m_GameObject: {fileID: 6119064787687059058}
m_LocalRotation: {x: -0, y: -0, z: 0.7071068, w: 0.7071068} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 4485966734002228350} m_Father: {fileID: 7248900333300803150}
m_RootOrder: 0 m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 90} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 90}
m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: -0.718, y: -0} m_AnchoredPosition: {x: -0.6750004, y: 3.33}
m_SizeDelta: {x: 1, y: 1} m_SizeDelta: {x: 1, y: 1}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!23 &4356944761482350703 --- !u!23 &4356944761482350703
@ -873,7 +850,7 @@ MonoBehaviour:
m_OnCullStateChanged: m_OnCullStateChanged:
m_PersistentCalls: m_PersistentCalls:
m_Calls: [] m_Calls: []
m_text: m_text: R
m_isRightToLeft: 0 m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: 8597c35f18a008c428fc5870aec75766, type: 2} m_fontAsset: {fileID: 11400000, guid: 8597c35f18a008c428fc5870aec75766, type: 2}
m_sharedMaterial: {fileID: 2100000, guid: fa00f193fe038984592034ad7d5c2a42, type: 2} m_sharedMaterial: {fileID: 2100000, guid: fa00f193fe038984592034ad7d5c2a42, type: 2}
@ -916,15 +893,17 @@ MonoBehaviour:
m_lineSpacingMax: 0 m_lineSpacingMax: 0
m_paragraphSpacing: 0 m_paragraphSpacing: 0
m_charWidthMaxAdj: 0 m_charWidthMaxAdj: 0
m_enableWordWrapping: 0 m_TextWrappingMode: 0
m_wordWrappingRatios: 0.4 m_wordWrappingRatios: 0.4
m_overflowMode: 0 m_overflowMode: 0
m_linkedTextComponent: {fileID: 0} m_linkedTextComponent: {fileID: 0}
parentLinkedComponent: {fileID: 0} parentLinkedComponent: {fileID: 0}
m_enableKerning: 0 m_enableKerning: 0
m_ActiveFontFeatures:
m_enableExtraPadding: 0 m_enableExtraPadding: 0
checkPaddingRequired: 0 checkPaddingRequired: 0
m_isRichText: 1 m_isRichText: 1
m_EmojiFallbackSupport: 1
m_parseCtrlCharacters: 1 m_parseCtrlCharacters: 1
m_isOrthographic: 0 m_isOrthographic: 0
m_isCullingEnabled: 0 m_isCullingEnabled: 0
@ -1150,6 +1129,7 @@ Transform:
m_Children: m_Children:
- {fileID: 8701843541313247389} - {fileID: 8701843541313247389}
- {fileID: 7821851253613277009} - {fileID: 7821851253613277009}
- {fileID: 8730184864405069350}
- {fileID: 862280508089709600} - {fileID: 862280508089709600}
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 0 m_RootOrder: 0
@ -1167,7 +1147,6 @@ MonoBehaviour:
m_Name: m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
SoundSequences: [] SoundSequences: []
EligibleHits: []
scheduledInputs: [] scheduledInputs: []
metronomeAnim: {fileID: 4547664343140929301} metronomeAnim: {fileID: 4547664343140929301}
man: {fileID: 8160414645038680372} man: {fileID: 8160414645038680372}
@ -1273,6 +1252,7 @@ GameObject:
m_Component: m_Component:
- component: {fileID: 862280508089709600} - component: {fileID: 862280508089709600}
- component: {fileID: 8160414645038680372} - component: {fileID: 8160414645038680372}
- component: {fileID: 3985421115508172561}
m_Layer: 0 m_Layer: 0
m_Name: MrUpbeat m_Name: MrUpbeat
m_TagString: Untagged m_TagString: Untagged
@ -1296,7 +1276,7 @@ Transform:
- {fileID: 4285463118267461702} - {fileID: 4285463118267461702}
- {fileID: 1584121333826078951} - {fileID: 1584121333826078951}
m_Father: {fileID: 7248900333300803150} m_Father: {fileID: 7248900333300803150}
m_RootOrder: 2 m_RootOrder: 3
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &8160414645038680372 --- !u!114 &8160414645038680372
MonoBehaviour: MonoBehaviour:
@ -1310,8 +1290,9 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: e4fa18aec69a2e949a7e2d4e33bdd2b9, type: 3} m_Script: {fileID: 11500000, guid: e4fa18aec69a2e949a7e2d4e33bdd2b9, type: 3}
m_Name: m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
anim: {fileID: 2256168985014220240} anim: {fileID: 3985421115508172561}
blipAnim: {fileID: 1614535701461294964} blipAnim: {fileID: 1614535701461294964}
antennaLight: {fileID: 4485966734002228350}
shadows: shadows:
- {fileID: 8412912829583803381} - {fileID: 8412912829583803381}
- {fileID: 2066794384027118212} - {fileID: 2066794384027118212}
@ -1320,6 +1301,29 @@ MonoBehaviour:
shouldGrow: 0 shouldGrow: 0
shouldBlip: 1 shouldBlip: 1
blipString: M blipString: M
canStep: 1
canStepFromAnim: 1
--- !u!95 &3985421115508172561
Animator:
serializedVersion: 5
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8472146464158439961}
m_Enabled: 1
m_Avatar: {fileID: 0}
m_Controller: {fileID: 9100000, guid: a5f93a456c442bc458973d17286581d9, type: 2}
m_CullingMode: 0
m_UpdateMode: 0
m_ApplyRootMotion: 0
m_LinearVelocityBlending: 0
m_StabilizeFeet: 0
m_WarningMessage:
m_HasTransformHierarchy: 1
m_AllowConstantClipSamplingOptimization: 1
m_KeepAnimatorStateOnDisable: 0
m_WriteDefaultValuesOnDisable: 0
--- !u!1 &8959999179820051615 --- !u!1 &8959999179820051615
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0

View File

@ -30,7 +30,7 @@ AnimationClip:
m_PreInfinity: 2 m_PreInfinity: 2
m_PostInfinity: 2 m_PostInfinity: 2
m_RotationOrder: 4 m_RotationOrder: 4
path: Body/FallFX path: Holder/Body/FallFX
- curve: - curve:
serializedVersion: 2 serializedVersion: 2
m_Curve: m_Curve:
@ -46,7 +46,7 @@ AnimationClip:
m_PreInfinity: 2 m_PreInfinity: 2
m_PostInfinity: 2 m_PostInfinity: 2
m_RotationOrder: 4 m_RotationOrder: 4
path: Body/FallSmear path: Holder/Body/FallSmear
- curve: - curve:
serializedVersion: 2 serializedVersion: 2
m_Curve: m_Curve:
@ -89,7 +89,7 @@ AnimationClip:
m_PreInfinity: 2 m_PreInfinity: 2
m_PostInfinity: 2 m_PostInfinity: 2
m_RotationOrder: 4 m_RotationOrder: 4
path: Head path: Holder/Head
m_ScaleCurves: [] m_ScaleCurves: []
m_FloatCurves: m_FloatCurves:
- curve: - curve:
@ -117,7 +117,7 @@ AnimationClip:
m_PostInfinity: 2 m_PostInfinity: 2
m_RotationOrder: 4 m_RotationOrder: 4
attribute: m_IsActive attribute: m_IsActive
path: Body/FallFX path: Holder/Body/FallFX
classID: 1 classID: 1
script: {fileID: 0} script: {fileID: 0}
- curve: - curve:
@ -145,7 +145,7 @@ AnimationClip:
m_PostInfinity: 2 m_PostInfinity: 2
m_RotationOrder: 4 m_RotationOrder: 4
attribute: m_IsActive attribute: m_IsActive
path: Body/FallSmear path: Holder/Body/FallSmear
classID: 1 classID: 1
script: {fileID: 0} script: {fileID: 0}
- curve: - curve:
@ -164,7 +164,7 @@ AnimationClip:
m_PostInfinity: 2 m_PostInfinity: 2
m_RotationOrder: 4 m_RotationOrder: 4
attribute: m_IsActive attribute: m_IsActive
path: Body/ShadowFall path: Holder/Body/ShadowFall
classID: 1 classID: 1
script: {fileID: 0} script: {fileID: 0}
m_PPtrCurves: m_PPtrCurves:
@ -178,7 +178,7 @@ AnimationClip:
- time: 0.1 - time: 0.1
value: {fileID: -3983884386284601651, guid: 2781bda31bd88924b9bc88f6c301b1d9, type: 3} value: {fileID: -3983884386284601651, guid: 2781bda31bd88924b9bc88f6c301b1d9, type: 3}
attribute: m_Sprite attribute: m_Sprite
path: Body path: Holder/Body
classID: 212 classID: 212
script: {fileID: 0} script: {fileID: 0}
- curve: - curve:
@ -187,7 +187,7 @@ AnimationClip:
- time: 0.1 - time: 0.1
value: {fileID: -1641719250182597347, guid: 2781bda31bd88924b9bc88f6c301b1d9, type: 3} value: {fileID: -1641719250182597347, guid: 2781bda31bd88924b9bc88f6c301b1d9, type: 3}
attribute: m_Sprite attribute: m_Sprite
path: Head path: Holder/Head
classID: 212 classID: 212
script: {fileID: 0} script: {fileID: 0}
m_SampleRate: 60 m_SampleRate: 60
@ -198,56 +198,56 @@ AnimationClip:
m_ClipBindingConstant: m_ClipBindingConstant:
genericBindings: genericBindings:
- serializedVersion: 2 - serializedVersion: 2
path: 3235357039 path: 983726004
attribute: 1 attribute: 1
script: {fileID: 0} script: {fileID: 0}
typeID: 4 typeID: 4
customType: 0 customType: 0
isPPtrCurve: 0 isPPtrCurve: 0
- serializedVersion: 2 - serializedVersion: 2
path: 4033203276 path: 2260005197
attribute: 1 attribute: 1
script: {fileID: 0} script: {fileID: 0}
typeID: 4 typeID: 4
customType: 0 customType: 0
isPPtrCurve: 0 isPPtrCurve: 0
- serializedVersion: 2 - serializedVersion: 2
path: 130111906 path: 862337961
attribute: 1 attribute: 1
script: {fileID: 0} script: {fileID: 0}
typeID: 4 typeID: 4
customType: 0 customType: 0
isPPtrCurve: 0 isPPtrCurve: 0
- serializedVersion: 2 - serializedVersion: 2
path: 3235357039 path: 983726004
attribute: 2086281974 attribute: 2086281974
script: {fileID: 0} script: {fileID: 0}
typeID: 1 typeID: 1
customType: 0 customType: 0
isPPtrCurve: 0 isPPtrCurve: 0
- serializedVersion: 2 - serializedVersion: 2
path: 4033203276 path: 2260005197
attribute: 2086281974 attribute: 2086281974
script: {fileID: 0} script: {fileID: 0}
typeID: 1 typeID: 1
customType: 0 customType: 0
isPPtrCurve: 0 isPPtrCurve: 0
- serializedVersion: 2 - serializedVersion: 2
path: 326924850 path: 1678613401
attribute: 2086281974 attribute: 2086281974
script: {fileID: 0} script: {fileID: 0}
typeID: 1 typeID: 1
customType: 0 customType: 0
isPPtrCurve: 0 isPPtrCurve: 0
- serializedVersion: 2 - serializedVersion: 2
path: 2073732236 path: 1329448583
attribute: 0 attribute: 0
script: {fileID: 0} script: {fileID: 0}
typeID: 212 typeID: 212
customType: 23 customType: 23
isPPtrCurve: 1 isPPtrCurve: 1
- serializedVersion: 2 - serializedVersion: 2
path: 130111906 path: 862337961
attribute: 0 attribute: 0
script: {fileID: 0} script: {fileID: 0}
typeID: 212 typeID: 212
@ -281,34 +281,6 @@ AnimationClip:
m_HeightFromFeet: 0 m_HeightFromFeet: 0
m_Mirror: 0 m_Mirror: 0
m_EditorCurves: m_EditorCurves:
- curve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 1
inSlope: Infinity
outSlope: Infinity
tangentMode: 103
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 0.033333335
value: 0
inSlope: Infinity
outSlope: Infinity
tangentMode: 103
weightedMode: 0
inWeight: 0
outWeight: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
attribute: m_IsActive
path: Body/FallFX
classID: 1
script: {fileID: 0}
- curve: - curve:
serializedVersion: 2 serializedVersion: 2
m_Curve: m_Curve:
@ -325,7 +297,7 @@ AnimationClip:
m_PostInfinity: 2 m_PostInfinity: 2
m_RotationOrder: 4 m_RotationOrder: 4
attribute: m_LocalPosition.x attribute: m_LocalPosition.x
path: Body/FallFX path: Holder/Body/FallFX
classID: 4 classID: 4
script: {fileID: 0} script: {fileID: 0}
- curve: - curve:
@ -344,7 +316,7 @@ AnimationClip:
m_PostInfinity: 2 m_PostInfinity: 2
m_RotationOrder: 4 m_RotationOrder: 4
attribute: m_LocalPosition.y attribute: m_LocalPosition.y
path: Body/FallFX path: Holder/Body/FallFX
classID: 4 classID: 4
script: {fileID: 0} script: {fileID: 0}
- curve: - curve:
@ -363,64 +335,7 @@ AnimationClip:
m_PostInfinity: 2 m_PostInfinity: 2
m_RotationOrder: 4 m_RotationOrder: 4
attribute: m_LocalPosition.z attribute: m_LocalPosition.z
path: Body/FallFX path: Holder/Body/FallFX
classID: 4
script: {fileID: 0}
- curve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: Infinity
outSlope: Infinity
tangentMode: 103
weightedMode: 0
inWeight: 0
outWeight: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
attribute: m_LocalPosition.x
path: Body/FallSmear
classID: 4
script: {fileID: 0}
- curve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0.76
inSlope: Infinity
outSlope: Infinity
tangentMode: 103
weightedMode: 0
inWeight: 0
outWeight: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
attribute: m_LocalPosition.y
path: Body/FallSmear
classID: 4
script: {fileID: 0}
- curve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: Infinity
outSlope: Infinity
tangentMode: 103
weightedMode: 0
inWeight: 0
outWeight: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
attribute: m_LocalPosition.z
path: Body/FallSmear
classID: 4 classID: 4
script: {fileID: 0} script: {fileID: 0}
- curve: - curve:
@ -448,7 +363,92 @@ AnimationClip:
m_PostInfinity: 2 m_PostInfinity: 2
m_RotationOrder: 4 m_RotationOrder: 4
attribute: m_IsActive attribute: m_IsActive
path: Body/FallSmear path: Holder/Body/FallFX
classID: 1
script: {fileID: 0}
- curve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: Infinity
outSlope: Infinity
tangentMode: 103
weightedMode: 0
inWeight: 0
outWeight: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
attribute: m_LocalPosition.x
path: Holder/Body/FallSmear
classID: 4
script: {fileID: 0}
- curve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0.76
inSlope: Infinity
outSlope: Infinity
tangentMode: 103
weightedMode: 0
inWeight: 0
outWeight: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
attribute: m_LocalPosition.y
path: Holder/Body/FallSmear
classID: 4
script: {fileID: 0}
- curve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: Infinity
outSlope: Infinity
tangentMode: 103
weightedMode: 0
inWeight: 0
outWeight: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
attribute: m_LocalPosition.z
path: Holder/Body/FallSmear
classID: 4
script: {fileID: 0}
- curve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 1
inSlope: Infinity
outSlope: Infinity
tangentMode: 103
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 0.033333335
value: 0
inSlope: Infinity
outSlope: Infinity
tangentMode: 103
weightedMode: 0
inWeight: 0
outWeight: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
attribute: m_IsActive
path: Holder/Body/FallSmear
classID: 1 classID: 1
script: {fileID: 0} script: {fileID: 0}
- curve: - curve:
@ -467,7 +467,7 @@ AnimationClip:
m_PostInfinity: 2 m_PostInfinity: 2
m_RotationOrder: 4 m_RotationOrder: 4
attribute: m_IsActive attribute: m_IsActive
path: Body/ShadowFall path: Holder/Body/ShadowFall
classID: 1 classID: 1
script: {fileID: 0} script: {fileID: 0}
- curve: - curve:
@ -504,7 +504,7 @@ AnimationClip:
m_PostInfinity: 2 m_PostInfinity: 2
m_RotationOrder: 4 m_RotationOrder: 4
attribute: m_LocalPosition.x attribute: m_LocalPosition.x
path: Head path: Holder/Head
classID: 4 classID: 4
script: {fileID: 0} script: {fileID: 0}
- curve: - curve:
@ -550,7 +550,7 @@ AnimationClip:
m_PostInfinity: 2 m_PostInfinity: 2
m_RotationOrder: 4 m_RotationOrder: 4
attribute: m_LocalPosition.y attribute: m_LocalPosition.y
path: Head path: Holder/Head
classID: 4 classID: 4
script: {fileID: 0} script: {fileID: 0}
- curve: - curve:
@ -569,7 +569,7 @@ AnimationClip:
m_PostInfinity: 2 m_PostInfinity: 2
m_RotationOrder: 4 m_RotationOrder: 4
attribute: m_LocalPosition.z attribute: m_LocalPosition.z
path: Head path: Holder/Head
classID: 4 classID: 4
script: {fileID: 0} script: {fileID: 0}
m_EulerEditorCurves: [] m_EulerEditorCurves: []

View File

@ -39,7 +39,7 @@ AnimationClip:
m_PreInfinity: 2 m_PreInfinity: 2
m_PostInfinity: 2 m_PostInfinity: 2
m_RotationOrder: 4 m_RotationOrder: 4
path: Head path: Holder/Head
m_ScaleCurves: [] m_ScaleCurves: []
m_FloatCurves: m_FloatCurves:
- curve: - curve:
@ -67,7 +67,7 @@ AnimationClip:
m_PostInfinity: 2 m_PostInfinity: 2
m_RotationOrder: 4 m_RotationOrder: 4
attribute: m_IsActive attribute: m_IsActive
path: Body/ShadowFall path: Holder/Body/ShadowFall
classID: 1 classID: 1
script: {fileID: 0} script: {fileID: 0}
m_PPtrCurves: m_PPtrCurves:
@ -75,7 +75,7 @@ AnimationClip:
- time: 0 - time: 0
value: {fileID: -4373096660332669510, guid: 2781bda31bd88924b9bc88f6c301b1d9, type: 3} value: {fileID: -4373096660332669510, guid: 2781bda31bd88924b9bc88f6c301b1d9, type: 3}
attribute: m_Sprite attribute: m_Sprite
path: Body path: Holder/Body
classID: 212 classID: 212
script: {fileID: 0} script: {fileID: 0}
m_SampleRate: 60 m_SampleRate: 60
@ -86,21 +86,21 @@ AnimationClip:
m_ClipBindingConstant: m_ClipBindingConstant:
genericBindings: genericBindings:
- serializedVersion: 2 - serializedVersion: 2
path: 326924850 path: 1678613401
attribute: 2086281974 attribute: 2086281974
script: {fileID: 0} script: {fileID: 0}
typeID: 1 typeID: 1
customType: 0 customType: 0
isPPtrCurve: 0 isPPtrCurve: 0
- serializedVersion: 2 - serializedVersion: 2
path: 2073732236 path: 1329448583
attribute: 0 attribute: 0
script: {fileID: 0} script: {fileID: 0}
typeID: 212 typeID: 212
customType: 23 customType: 23
isPPtrCurve: 1 isPPtrCurve: 1
- serializedVersion: 2 - serializedVersion: 2
path: 130111906 path: 862337961
attribute: 1 attribute: 1
script: {fileID: 0} script: {fileID: 0}
typeID: 4 typeID: 4
@ -129,6 +129,34 @@ AnimationClip:
m_HeightFromFeet: 0 m_HeightFromFeet: 0
m_Mirror: 0 m_Mirror: 0
m_EditorCurves: m_EditorCurves:
- curve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: Infinity
outSlope: Infinity
tangentMode: 103
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 0.016666668
value: 0
inSlope: Infinity
outSlope: Infinity
tangentMode: 103
weightedMode: 0
inWeight: 0
outWeight: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
attribute: m_IsActive
path: Holder/Body/ShadowFall
classID: 1
script: {fileID: 0}
- curve: - curve:
serializedVersion: 2 serializedVersion: 2
m_Curve: m_Curve:
@ -154,7 +182,7 @@ AnimationClip:
m_PostInfinity: 2 m_PostInfinity: 2
m_RotationOrder: 4 m_RotationOrder: 4
attribute: m_LocalPosition.x attribute: m_LocalPosition.x
path: Head path: Holder/Head
classID: 4 classID: 4
script: {fileID: 0} script: {fileID: 0}
- curve: - curve:
@ -182,7 +210,7 @@ AnimationClip:
m_PostInfinity: 2 m_PostInfinity: 2
m_RotationOrder: 4 m_RotationOrder: 4
attribute: m_LocalPosition.y attribute: m_LocalPosition.y
path: Head path: Holder/Head
classID: 4 classID: 4
script: {fileID: 0} script: {fileID: 0}
- curve: - curve:
@ -210,37 +238,9 @@ AnimationClip:
m_PostInfinity: 2 m_PostInfinity: 2
m_RotationOrder: 4 m_RotationOrder: 4
attribute: m_LocalPosition.z attribute: m_LocalPosition.z
path: Head path: Holder/Head
classID: 4 classID: 4
script: {fileID: 0} script: {fileID: 0}
- curve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: Infinity
outSlope: Infinity
tangentMode: 103
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 0.016666668
value: 0
inSlope: Infinity
outSlope: Infinity
tangentMode: 103
weightedMode: 0
inWeight: 0
outWeight: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
attribute: m_IsActive
path: Body/ShadowFall
classID: 1
script: {fileID: 0}
m_EulerEditorCurves: [] m_EulerEditorCurves: []
m_HasGenericRootTransform: 0 m_HasGenericRootTransform: 0
m_HasMotionFloatCurves: 0 m_HasMotionFloatCurves: 0

View File

@ -48,7 +48,7 @@ AnimationClip:
m_PreInfinity: 2 m_PreInfinity: 2
m_PostInfinity: 2 m_PostInfinity: 2
m_RotationOrder: 4 m_RotationOrder: 4
path: Head path: Holder/Head
m_ScaleCurves: [] m_ScaleCurves: []
m_FloatCurves: m_FloatCurves:
- curve: - curve:
@ -56,15 +56,6 @@ AnimationClip:
m_Curve: m_Curve:
- serializedVersion: 3 - serializedVersion: 3
time: 0 time: 0
value: 1
inSlope: Infinity
outSlope: Infinity
tangentMode: 103
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 0.016666668
value: 0 value: 0
inSlope: Infinity inSlope: Infinity
outSlope: Infinity outSlope: Infinity
@ -85,7 +76,7 @@ AnimationClip:
m_PostInfinity: 2 m_PostInfinity: 2
m_RotationOrder: 4 m_RotationOrder: 4
attribute: m_IsActive attribute: m_IsActive
path: Body/StepSmearHead path: Holder/Body/ShadowFall
classID: 1 classID: 1
script: {fileID: 0} script: {fileID: 0}
- curve: - curve:
@ -122,7 +113,7 @@ AnimationClip:
m_PostInfinity: 2 m_PostInfinity: 2
m_RotationOrder: 4 m_RotationOrder: 4
attribute: m_IsActive attribute: m_IsActive
path: Body/StepSmearFoot path: Holder/Body/StepSmearFoot
classID: 1 classID: 1
script: {fileID: 0} script: {fileID: 0}
- curve: - curve:
@ -130,6 +121,15 @@ AnimationClip:
m_Curve: m_Curve:
- serializedVersion: 3 - serializedVersion: 3
time: 0 time: 0
value: 1
inSlope: Infinity
outSlope: Infinity
tangentMode: 103
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 0.016666668
value: 0 value: 0
inSlope: Infinity inSlope: Infinity
outSlope: Infinity outSlope: Infinity
@ -150,7 +150,7 @@ AnimationClip:
m_PostInfinity: 2 m_PostInfinity: 2
m_RotationOrder: 4 m_RotationOrder: 4
attribute: m_IsActive attribute: m_IsActive
path: Body/ShadowFall path: Holder/Body/StepSmearHead
classID: 1 classID: 1
script: {fileID: 0} script: {fileID: 0}
m_PPtrCurves: m_PPtrCurves:
@ -162,7 +162,7 @@ AnimationClip:
- time: 0.033333335 - time: 0.033333335
value: {fileID: -4373096660332669510, guid: 2781bda31bd88924b9bc88f6c301b1d9, type: 3} value: {fileID: -4373096660332669510, guid: 2781bda31bd88924b9bc88f6c301b1d9, type: 3}
attribute: m_Sprite attribute: m_Sprite
path: Body path: Holder/Body
classID: 212 classID: 212
script: {fileID: 0} script: {fileID: 0}
m_SampleRate: 60 m_SampleRate: 60
@ -173,35 +173,35 @@ AnimationClip:
m_ClipBindingConstant: m_ClipBindingConstant:
genericBindings: genericBindings:
- serializedVersion: 2 - serializedVersion: 2
path: 130111906 path: 862337961
attribute: 1 attribute: 1
script: {fileID: 0} script: {fileID: 0}
typeID: 4 typeID: 4
customType: 0 customType: 0
isPPtrCurve: 0 isPPtrCurve: 0
- serializedVersion: 2 - serializedVersion: 2
path: 2429381691 path: 1678613401
attribute: 2086281974 attribute: 2086281974
script: {fileID: 0} script: {fileID: 0}
typeID: 1 typeID: 1
customType: 0 customType: 0
isPPtrCurve: 0 isPPtrCurve: 0
- serializedVersion: 2 - serializedVersion: 2
path: 4273054516 path: 1274778309
attribute: 2086281974 attribute: 2086281974
script: {fileID: 0} script: {fileID: 0}
typeID: 1 typeID: 1
customType: 0 customType: 0
isPPtrCurve: 0 isPPtrCurve: 0
- serializedVersion: 2 - serializedVersion: 2
path: 326924850 path: 629628362
attribute: 2086281974 attribute: 2086281974
script: {fileID: 0} script: {fileID: 0}
typeID: 1 typeID: 1
customType: 0 customType: 0
isPPtrCurve: 0 isPPtrCurve: 0
- serializedVersion: 2 - serializedVersion: 2
path: 2073732236 path: 1329448583
attribute: 0 attribute: 0
script: {fileID: 0} script: {fileID: 0}
typeID: 212 typeID: 212
@ -232,6 +232,108 @@ AnimationClip:
m_HeightFromFeet: 0 m_HeightFromFeet: 0
m_Mirror: 0 m_Mirror: 0
m_EditorCurves: m_EditorCurves:
- curve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: Infinity
outSlope: Infinity
tangentMode: 103
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 0.050000004
value: 0
inSlope: Infinity
outSlope: Infinity
tangentMode: 103
weightedMode: 0
inWeight: 0
outWeight: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
attribute: m_IsActive
path: Holder/Body/ShadowFall
classID: 1
script: {fileID: 0}
- curve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 1
inSlope: Infinity
outSlope: Infinity
tangentMode: 103
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 0.016666668
value: 0
inSlope: Infinity
outSlope: Infinity
tangentMode: 103
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 0.050000004
value: 0
inSlope: Infinity
outSlope: Infinity
tangentMode: 103
weightedMode: 0
inWeight: 0
outWeight: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
attribute: m_IsActive
path: Holder/Body/StepSmearFoot
classID: 1
script: {fileID: 0}
- curve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 1
inSlope: Infinity
outSlope: Infinity
tangentMode: 103
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 0.016666668
value: 0
inSlope: Infinity
outSlope: Infinity
tangentMode: 103
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 0.050000004
value: 0
inSlope: Infinity
outSlope: Infinity
tangentMode: 103
weightedMode: 0
inWeight: 0
outWeight: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
attribute: m_IsActive
path: Holder/Body/StepSmearHead
classID: 1
script: {fileID: 0}
- curve: - curve:
serializedVersion: 2 serializedVersion: 2
m_Curve: m_Curve:
@ -266,7 +368,7 @@ AnimationClip:
m_PostInfinity: 2 m_PostInfinity: 2
m_RotationOrder: 4 m_RotationOrder: 4
attribute: m_LocalPosition.x attribute: m_LocalPosition.x
path: Head path: Holder/Head
classID: 4 classID: 4
script: {fileID: 0} script: {fileID: 0}
- curve: - curve:
@ -303,7 +405,7 @@ AnimationClip:
m_PostInfinity: 2 m_PostInfinity: 2
m_RotationOrder: 4 m_RotationOrder: 4
attribute: m_LocalPosition.y attribute: m_LocalPosition.y
path: Head path: Holder/Head
classID: 4 classID: 4
script: {fileID: 0} script: {fileID: 0}
- curve: - curve:
@ -340,112 +442,24 @@ AnimationClip:
m_PostInfinity: 2 m_PostInfinity: 2
m_RotationOrder: 4 m_RotationOrder: 4
attribute: m_LocalPosition.z attribute: m_LocalPosition.z
path: Head path: Holder/Head
classID: 4 classID: 4
script: {fileID: 0} script: {fileID: 0}
- curve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 1
inSlope: Infinity
outSlope: Infinity
tangentMode: 103
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 0.016666668
value: 0
inSlope: Infinity
outSlope: Infinity
tangentMode: 103
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 0.050000004
value: 0
inSlope: Infinity
outSlope: Infinity
tangentMode: 103
weightedMode: 0
inWeight: 0
outWeight: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
attribute: m_IsActive
path: Body/StepSmearHead
classID: 1
script: {fileID: 0}
- curve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 1
inSlope: Infinity
outSlope: Infinity
tangentMode: 103
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 0.016666668
value: 0
inSlope: Infinity
outSlope: Infinity
tangentMode: 103
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 0.050000004
value: 0
inSlope: Infinity
outSlope: Infinity
tangentMode: 103
weightedMode: 0
inWeight: 0
outWeight: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
attribute: m_IsActive
path: Body/StepSmearFoot
classID: 1
script: {fileID: 0}
- curve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: Infinity
outSlope: Infinity
tangentMode: 103
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 0.050000004
value: 0
inSlope: Infinity
outSlope: Infinity
tangentMode: 103
weightedMode: 0
inWeight: 0
outWeight: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
attribute: m_IsActive
path: Body/ShadowFall
classID: 1
script: {fileID: 0}
m_EulerEditorCurves: [] m_EulerEditorCurves: []
m_HasGenericRootTransform: 0 m_HasGenericRootTransform: 0
m_HasMotionFloatCurves: 0 m_HasMotionFloatCurves: 0
m_Events: [] m_Events:
- time: 0
functionName: ToggleStepping
data:
objectReferenceParameter: {fileID: 0}
floatParameter: 0
intParameter: 0
messageOptions: 0
- time: 0.033333335
functionName: ToggleStepping
data:
objectReferenceParameter: {fileID: 0}
floatParameter: 0
intParameter: 1
messageOptions: 0

View File

@ -215,9 +215,10 @@ namespace HeavenStudio.Games
public override void OnBeatPulse(double beat) public override void OnBeatPulse(double beat)
{ {
if (!BeatIsInBopRegion(beat)) return; if (BeatIsInBopRegion(beat) && DogAnim.IsAnimationNotPlaying() || DogAnim.IsPlayingAnimationNames("Idle")) {
DogAnim.DoScaledAnimationAsync("Bop", 0.5f); DogAnim.DoScaledAnimationAsync("Bop", 0.5f);
} }
}
private void Update() private void Update()
{ {

View File

@ -30,7 +30,11 @@ namespace HeavenStudio.Games.Loaders
{ {
preFunction = delegate { preFunction = delegate {
var e = eventCaller.currentEntity; var e = eventCaller.currentEntity;
MrUpbeat.Ding(e.beat, e["toggle"], e["stopBlipping"], e["playDing"]); if (GameManager.instance.currentGame == "mrUpbeat") {
MrUpbeat.instance.Ding(e.beat, e["toggle"], e["stopBlipping"], e["playDing"]);
} else {
MrUpbeat.DingSfx(e.beat, e["toggle"], e["playDing"]);
}
}, },
defaultLength = 0.5f, defaultLength = 0.5f,
parameters = new List<Param>() parameters = new List<Param>()
@ -173,6 +177,8 @@ namespace HeavenStudio.Games
public override void OnGameSwitch(double beat) public override void OnGameSwitch(double beat)
{ {
List<RiqEntity> prevEntities = GameManager.instance.Beatmap.Entities.FindAll(c => c.beat <= beat && c.datamodel.Split(0) == "mrUpbeat");
if (beat >= startBlippingBeat) { if (beat >= startBlippingBeat) {
double tempBeat = ((beat % 1 == 0.5) ? Mathf.Floor((float)beat) : Mathf.Round((float)beat)) + (startBlippingBeat % 1); double tempBeat = ((beat % 1 == 0.5) ? Mathf.Floor((float)beat) : Mathf.Round((float)beat)) + (startBlippingBeat % 1);
BeatAction.New(instance, new List<BeatAction.Action>() { BeatAction.New(instance, new List<BeatAction.Action>() {
@ -182,7 +188,6 @@ namespace HeavenStudio.Games
} }
// init background color/blip color stuff by getting the last of each of those blocks // init background color/blip color stuff by getting the last of each of those blocks
List<RiqEntity> prevEntities = GameManager.instance.Beatmap.Entities.FindAll(c => c.beat <= beat && c.datamodel.Split(0) == "mrUpbeat");
var bgColorEntity = prevEntities.FindLast(x => x.datamodel.Split(1) == "changeBG" && x.beat <= beat); var bgColorEntity = prevEntities.FindLast(x => x.datamodel.Split(1) == "changeBG" && x.beat <= beat);
var upbeatColorEntity = prevEntities.FindLast(x => x.datamodel.Split(1) == "upbeatColors" && x.beat <= beat); var upbeatColorEntity = prevEntities.FindLast(x => x.datamodel.Split(1) == "upbeatColors" && x.beat <= beat);
@ -205,57 +210,76 @@ namespace HeavenStudio.Games
{ {
var cond = Conductor.instance; var cond = Conductor.instance;
if (cond.isPlaying && !cond.isPaused) { if (cond.isPlaying && !cond.isPaused) {
if (cond.songPositionInBeatsAsDouble >= startSteppingBeat) { var songPos = cond.songPositionInBeatsAsDouble;
if (songPos >= startSteppingBeat - 2) {
man.canStep = true;
}
if (songPos >= startSteppingBeat) {
RecursiveStepping(startSteppingBeat); RecursiveStepping(startSteppingBeat);
startSteppingBeat = double.MaxValue; startSteppingBeat = double.MaxValue;
} }
if (cond.songPositionInBeats >= startBlippingBeat) { if (songPos >= startBlippingBeat) {
man.RecursiveBlipping(startBlippingBeat); man.RecursiveBlipping(startBlippingBeat);
startBlippingBeat = double.MaxValue; startBlippingBeat = double.MaxValue;
} }
} }
} }
public static void Ding(double beat, bool applause, bool stopBlipping, bool playDing) public void Ding(double beat, bool applause, bool stopBlipping, bool playDing)
{ {
BeatAction.New(instance, new List<BeatAction.Action>() { BeatAction.New(instance, new List<BeatAction.Action>() {
new BeatAction.Action(beat - 0.5, delegate { new BeatAction.Action(beat - 0.5, delegate {
instance.stopStepping = true; stopStepping = true;
if (stopBlipping) instance.stopBlipping = true; if (stopBlipping) this.stopBlipping = true;
}),
new BeatAction.Action(beat, delegate {
man.canStep = false;
}), }),
new BeatAction.Action(beat + 0.5, delegate { new BeatAction.Action(beat + 0.5, delegate {
instance.stopStepping = false; stopStepping = false;
}), }),
}); });
DingSfx(beat, applause, playDing);
}
public static void DingSfx(double beat, bool applause, bool playDing)
{
if (playDing) SoundByte.PlayOneShotGame("mrUpbeat/ding", beat: beat, forcePlay: true); if (playDing) SoundByte.PlayOneShotGame("mrUpbeat/ding", beat: beat, forcePlay: true);
if (applause) SoundByte.PlayOneShot("applause", beat: beat); if (applause) SoundByte.PlayOneShot("applause", beat: beat);
} }
public static void PrePrepare(double beat, float length, bool forceOffbeat) public static void PrePrepare(double beat, float length, bool mrDownbeat)
{ {
bool isGame = GameManager.instance.currentGame == "mrUpbeat"; bool isGame = GameManager.instance.currentGame == "mrUpbeat";
if (forceOffbeat) { if (!mrDownbeat) {
beat = Mathf.Floor((float)beat) + 0.5;
length = Mathf.Round(length);
}
startBlippingBeat = beat; startBlippingBeat = beat;
startSteppingBeat = beat + length - 0.5f; startSteppingBeat = beat + length - 0.5f;
if (!isGame) Blipping(beat, length); if (!isGame) Blipping(beat, length);
} else {
startBlippingBeat = Mathf.Floor((float)beat) + 0.5;
startSteppingBeat = Mathf.Floor((float)beat) + Mathf.Round(length);
if (!isGame) Blipping(Mathf.Floor((float)beat) + 0.5f, length);
} }
private void ScheduleStep(double beat)
{
PlayerActionEvent input = ScheduleInput(beat, 0.5f, InputAction_BasicPress, Success, Miss, Nothing);
input.IsHittable = () => man.canStep && man.canStepFromAnim && man.FacingCorrectly();
} }
private void RecursiveStepping(double beat) private void RecursiveStepping(double beat)
{ {
if (stopStepping) { if (stopStepping) {
stopStepping = false; stopStepping = false;
return; return;
} }
string dir = (stepIterate % 2 == 1) ? "Right" : "Left"; string dir = (stepIterate % 2 == 1) ? "Right" : "Left";
metronomeAnim.DoScaledAnimationAsync("MetronomeGo" + dir, 0.5f); metronomeAnim.DoScaledAnimationAsync("MetronomeGo" + dir, 0.5f);
SoundByte.PlayOneShotGame("mrUpbeat/metronome" + dir); SoundByte.PlayOneShotGame("mrUpbeat/metronome" + dir);
ScheduleInput(beat, 0.5f, InputAction_BasicPress, Success, Miss, Nothing); ScheduleStep(beat);
BeatAction.New(this, new List<BeatAction.Action>() { BeatAction.New(this, new List<BeatAction.Action>() {
new(beat + 1, delegate { RecursiveStepping(beat + 1); }) new(beat + 1, delegate { RecursiveStepping(beat + 1); })
}); });
@ -267,7 +291,7 @@ namespace HeavenStudio.Games
var actions = new List<BeatAction.Action>(); var actions = new List<BeatAction.Action>();
for (int i = 0; i < length; i++) for (int i = 0; i < length; i++)
{ {
ScheduleInput(beat + i, 0.5f, InputAction_BasicPress, Success, Miss, Nothing); ScheduleStep(beat);
actions.Add(new BeatAction.Action(beat + i, delegate { actions.Add(new BeatAction.Action(beat + i, delegate {
string dir = (stepIterate % 2 == 1) ? "Right" : "Left"; string dir = (stepIterate % 2 == 1) ? "Right" : "Left";
metronomeAnim.DoScaledAnimationAsync("MetronomeGo" + dir, 0.5f); metronomeAnim.DoScaledAnimationAsync("MetronomeGo" + dir, 0.5f);
@ -283,7 +307,7 @@ namespace HeavenStudio.Games
RiqEntity gameSwitch = GameManager.instance.Beatmap.Entities.Find(c => c.beat > beat && c.datamodel == "gameManager/switchGame/mrUpbeat"); RiqEntity gameSwitch = GameManager.instance.Beatmap.Entities.Find(c => c.beat > beat && c.datamodel == "gameManager/switchGame/mrUpbeat");
if (gameSwitch.beat <= beat || gameSwitch.beat >= beat + length + 1) return; if (gameSwitch.beat <= beat || gameSwitch.beat >= beat + length + 1) return;
List<MultiSound.Sound> inactiveBlips = new List<MultiSound.Sound>(); List<MultiSound.Sound> inactiveBlips = new();
for (int i = 0; i < gameSwitch.beat - beat; i++) { for (int i = 0; i < gameSwitch.beat - beat; i++) {
inactiveBlips.Add(new MultiSound.Sound("mrUpbeat/blip", beat + i)); inactiveBlips.Add(new MultiSound.Sound("mrUpbeat/blip", beat + i));
} }
@ -294,7 +318,7 @@ namespace HeavenStudio.Games
public void Success(PlayerActionEvent caller, float state) public void Success(PlayerActionEvent caller, float state)
{ {
man.Step(); man.Step();
if (state >= 1f || state <= -1f) SoundByte.PlayOneShot("nearMiss"); if (state is >= 1f or <= -1f) SoundByte.PlayOneShot("nearMiss");
} }
public void Miss(PlayerActionEvent caller) public void Miss(PlayerActionEvent caller)

View File

@ -11,6 +11,7 @@ namespace HeavenStudio.Games.Scripts_MrUpbeat
[Header("References")] [Header("References")]
[SerializeField] Animator anim; [SerializeField] Animator anim;
[SerializeField] Animator blipAnim; [SerializeField] Animator blipAnim;
[SerializeField] Transform antennaLight;
[SerializeField] GameObject[] shadows; [SerializeField] GameObject[] shadows;
[SerializeField] TMP_Text blipText; [SerializeField] TMP_Text blipText;
@ -18,19 +19,24 @@ namespace HeavenStudio.Games.Scripts_MrUpbeat
public bool shouldGrow; public bool shouldGrow;
public bool shouldBlip = true; public bool shouldBlip = true;
public string blipString = "M"; public string blipString = "M";
public bool canStep = false; // just disabled when you normally couldn't step, which is anything less than 2 beats before you would start stepping and any time after the Ding!
public bool canStepFromAnim = true; // disabled when stepping, then reenabled in the animation events. you can step JUST BARELY before the animation ends in fever
static MrUpbeat game; private static MrUpbeat game;
void Awake() void Awake()
{ {
game = MrUpbeat.instance; game = MrUpbeat.instance;
canStep = false;
} }
void Update() void Update()
{ {
blipText.transform.localScale = Vector3.one; blipText.transform.localPosition = new Vector3(antennaLight.position.x, antennaLight.position.y + 0.7f);
if (PlayerInput.GetIsAction(MrUpbeat.InputAction_BasicPress) && !game.IsExpectingInputNow(MrUpbeat.InputAction_BasicPress)) { if (PlayerInput.GetIsAction(MrUpbeat.InputAction_BasicPress) && !game.IsExpectingInputNow(MrUpbeat.InputAction_BasicPress)
&& canStep && canStepFromAnim) {
Step(true); Step(true);
} }
} }
@ -42,27 +48,29 @@ namespace HeavenStudio.Games.Scripts_MrUpbeat
return; return;
} }
if (shouldBlip) { if (shouldBlip) {
Blipping(beat); Blipping();
} }
BeatAction.New(this, new List<BeatAction.Action>() { BeatAction.New(this, new List<BeatAction.Action>() {
new BeatAction.Action(beat + 1, delegate { RecursiveBlipping(beat + 1); }) new BeatAction.Action(beat + 1, delegate { RecursiveBlipping(beat + 1); })
}); });
} }
public void Blipping(double beat) public void Blipping()
{ {
SoundByte.PlayOneShotGame("mrUpbeat/blip"); SoundByte.PlayOneShotGame("mrUpbeat/blip");
blipAnim.Play("Blip" + (blipSize + 1), 0, 0); blipAnim.Play("Blip" + (blipSize + 1), 0, 0);
blipText.text = (blipSize == 4 && blipString != "") ? blipString : ""; blipText.gameObject.SetActive(blipSize >= 4);
blipText.text = blipString != "" ? blipString : "";
if (shouldGrow && blipSize < 4) blipSize++; if (shouldGrow && blipSize < 4) blipSize++;
} }
public void Step(bool isInput = false) public void Step(bool isInput = false)
{ {
if (isInput || ((game.stepIterate % 2 == 0) == IsMirrored())) { if (isInput || FacingCorrectly()) {
shadows[0].SetActive(IsMirrored()); shadows[0].SetActive(transform.localScale.x < 0);
shadows[1].SetActive(!IsMirrored()); shadows[1].SetActive(transform.localScale.x > 0);
transform.localScale = new Vector3((IsMirrored() ? 1 : -1), 1, 1); Flip();
} }
anim.DoScaledAnimationAsync("Step", 0.5f); anim.DoScaledAnimationAsync("Step", 0.5f);
@ -71,16 +79,25 @@ namespace HeavenStudio.Games.Scripts_MrUpbeat
public void Fall() public void Fall()
{ {
anim.DoScaledAnimationAsync((game.stepIterate % 2 == 0) == IsMirrored() ? "FallR" : "FallL", 1f); anim.DoScaledAnimationAsync(FacingCorrectly() ? "FallR" : "FallL", 1f);
SoundByte.PlayOneShot("miss"); SoundByte.PlayOneShot("miss");
shadows[0].SetActive(false); shadows[0].SetActive(false);
shadows[1].SetActive(false); shadows[1].SetActive(false);
transform.localScale = new Vector3((IsMirrored() ? 1 : -1), 1, 1); Flip();
} }
bool IsMirrored() void Flip() {
var scale = transform.localScale;
transform.localScale = new Vector3(-scale.x, scale.y, scale.z);
}
public bool FacingCorrectly() => (game.stepIterate % 2 == 0) == (transform.localScale.x < 0);
// animation event
public void ToggleStepping(int canStep) // why do unity animation events not support booleans??? this is a 1 for true or 0 for false
{ {
return transform.localScale != Vector3.one; canStepFromAnim = canStep == 1;
} }
} }
} }