Files
blackhole-escape/Assets/Prefabs/CowardEnemy.prefab
iDunnoDev 62254a0332 Updated Unity Version
Added graphics options and rendering quality level settings
Added new movement patterns to the dumb enemy AI
Added chance for Coward Enemies to drop a random
Added method to correctly reset the game variables on death and win screens
Updated the UI to work on different resolutions without breaking
Moved Sprites into a sprites folder
Fixed issue where score would overflow the int because the multiplier was too high
Fixed issue where new lives gained from the score breakpoints were not being calculated correctly
Fixed issue where clicking off a menu element then trying to control the menu with the controller did not correctly reselect a menu item
Fixed issue where enemies colliding with the outer boundary too much would break the sfx and music (i assume from a buffering issue)
2022-07-23 14:43:52 +01:00

336 lines
10 KiB
Plaintext

%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &8592322547625689192
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 8968319946522057426}
- component: {fileID: 8934972357219864251}
- component: {fileID: 8592322547625689195}
- component: {fileID: 4116906065306539567}
- component: {fileID: 3375720473971376891}
- component: {fileID: 8323040296854875923}
- component: {fileID: 7971115171779822820}
- component: {fileID: 7373094857929449220}
m_Layer: 8
m_Name: CowardEnemy
m_TagString: Enemy
m_Icon: {fileID: 5132851093641282708, guid: 0000000000000000d000000000000000, type: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &8968319946522057426
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8592322547625689192}
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:
- {fileID: 3902053055530599277}
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!54 &8934972357219864251
Rigidbody:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8592322547625689192}
serializedVersion: 2
m_Mass: 1
m_Drag: 1
m_AngularDrag: 0.05
m_UseGravity: 0
m_IsKinematic: 0
m_Interpolate: 0
m_Constraints: 112
m_CollisionDetection: 0
--- !u!114 &8592322547625689195
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8592322547625689192}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 3ba55a93cceb2a445b30aa36e7374902, type: 3}
m_Name:
m_EditorClassIdentifier:
freezeMovement: 0
objectIsActive: 1
testBaseHeight: 0
objectModel: {fileID: 5076586286871808193}
startHeight: 2
startPositionVector: {x: 0, y: 0, z: 0}
turnSpeed: 50
smoothRollTime: 35
smoothThrusting: 0.1
rollAngle: -35
turnSmoothTime: 0.25
maxThrust: 10
blackHoleImmune: 1
immuneMinHeight: 4
minePrefab: {fileID: 7176418379476198113, guid: 11e96d92ef71aa84aa58912f7265b45a, type: 3}
mineSpawnChance: 20
mineSpawnCooldown: 0.5
mineDropTime: 3
mineDropCooldown: 60
residualThrustStep: 0.2
residualThrustMax: 5
residualThrustTimeTickMax: 0.5
residualThrustDecayRate: 0.5
residualThrustIdleDecayRate: 0.2
jumpForce: 50
jumpMaxTime: 0.01
cowerDistance: 10
emergencyBoostSpeed: 5
emergencyBoostCooldownSpeed: 0.5
emergencyBoostTime: 5
emergencyBoostCooldown: 20
heightChangeInterval: 10
--- !u!114 &4116906065306539567
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8592322547625689192}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 6dbe118f7a92cfc41a02a3c322b7c780, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!114 &3375720473971376891
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8592322547625689192}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 37b64cee1602fc949bd30e84a93576dc, type: 3}
m_Name:
m_EditorClassIdentifier:
blackHolePullImmunue: 0
--- !u!114 &8323040296854875923
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8592322547625689192}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 78e23ebcb41b7534081ed5e4065244d7, type: 3}
m_Name:
m_EditorClassIdentifier:
shipModel: {fileID: 5076586286871808193}
shipCore: {fileID: 5881283120638187596, guid: 4c4962b1222fb7643a594d352ed3100f, type: 3}
bounceForce: 10
coreSpawnDelayTime: 2
effectA: {fileID: 198093750711770640, guid: 64db0404c1781409d9c819adeaf45772, type: 3}
effectB: {fileID: 198093750711770640, guid: 071da6eee8fda477791955dbe7e2b171, type: 3}
shipDeathSFX: {fileID: 8300000, guid: 51cd3d16d8615574dbec9cd06c3e0bf3, type: 3}
coreSpawnedSFX: {fileID: 8300000, guid: e6a5e4fee97230048a877c48f26f56ed, type: 3}
enemyLoot:
- {fileID: 5272167010345512933, guid: 47fcb5475a22bd94fbc59366a1458652, type: 3}
- {fileID: 1690047517319332219, guid: 3ee0c3a0899ff7f49b07f4be6b5b27ba, type: 3}
- {fileID: 5058449036952964680, guid: 78adcb07f2170304c933a275edb9163c, type: 3}
enemyLootChance:
- 20
- 5
- 50
magnetizedTime: 1.5
--- !u!114 &7971115171779822820
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8592322547625689192}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 71299cd9f865e424aa252b67e86c9b86, type: 3}
m_Name:
m_EditorClassIdentifier:
enemyTypeName: 1
spawnInSFX: {fileID: 8300000, guid: 11a351e400989714a87a668507692f6b, type: 3}
spawnInVFX: {fileID: 2787684223660090299, guid: 4f88b1c9a7ca91347840706abff5b5af, type: 3}
deadEngineChance: 30
deadEngineInitialCheckTime: 180
deadEngineRecheckTime: 60
--- !u!82 &7373094857929449220
AudioSource:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8592322547625689192}
m_Enabled: 1
serializedVersion: 4
OutputAudioMixerGroup: {fileID: -4783308192066970178, guid: 821047ff923e34549a817a12778763a0, type: 2}
m_audioClip: {fileID: 0}
m_PlayOnAwake: 0
m_Volume: 1
m_Pitch: 1
Loop: 0
Mute: 0
Spatialize: 0
SpatializePostEffects: 0
Priority: 128
DopplerLevel: 1
MinDistance: 8
MaxDistance: 30
Pan2D: 0
rolloffMode: 0
BypassEffects: 0
BypassListenerEffects: 0
BypassReverbZones: 0
rolloffCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 1
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
- serializedVersion: 3
time: 1
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
panLevelCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 1
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
spreadCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
reverbZoneMixCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 1
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
--- !u!1001 &6289477455177451951
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 8968319946522057426}
m_Modifications:
- target: {fileID: 1241619350791848302, guid: 6a59c839e86b52846986712d5f9fe7b1, type: 3}
propertyPath: m_Name
value: ShipModel
objectReference: {fileID: 0}
- target: {fileID: 7020644493863881410, guid: 6a59c839e86b52846986712d5f9fe7b1, type: 3}
propertyPath: m_RootOrder
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7020644493863881410, guid: 6a59c839e86b52846986712d5f9fe7b1, type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7020644493863881410, guid: 6a59c839e86b52846986712d5f9fe7b1, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7020644493863881410, guid: 6a59c839e86b52846986712d5f9fe7b1, type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7020644493863881410, guid: 6a59c839e86b52846986712d5f9fe7b1, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7020644493863881410, guid: 6a59c839e86b52846986712d5f9fe7b1, type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7020644493863881410, guid: 6a59c839e86b52846986712d5f9fe7b1, type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7020644493863881410, guid: 6a59c839e86b52846986712d5f9fe7b1, type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7020644493863881410, guid: 6a59c839e86b52846986712d5f9fe7b1, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7020644493863881410, guid: 6a59c839e86b52846986712d5f9fe7b1, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7020644493863881410, guid: 6a59c839e86b52846986712d5f9fe7b1, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 6a59c839e86b52846986712d5f9fe7b1, type: 3}
--- !u!1 &5076586286871808193 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 1241619350791848302, guid: 6a59c839e86b52846986712d5f9fe7b1, type: 3}
m_PrefabInstance: {fileID: 6289477455177451951}
m_PrefabAsset: {fileID: 0}
--- !u!4 &3902053055530599277 stripped
Transform:
m_CorrespondingSourceObject: {fileID: 7020644493863881410, guid: 6a59c839e86b52846986712d5f9fe7b1, type: 3}
m_PrefabInstance: {fileID: 6289477455177451951}
m_PrefabAsset: {fileID: 0}