Skip to content

Commit

Permalink
Spawn de inimigos segmentado por dificuldade, sistema de spawn mais c…
Browse files Browse the repository at this point in the history
…ompleto
  • Loading branch information
LucasVinicius314 committed Oct 27, 2022
1 parent 6a8cc1d commit 3d35e12
Show file tree
Hide file tree
Showing 7 changed files with 360 additions and 79 deletions.
164 changes: 163 additions & 1 deletion Assets/Prefabs/Canvas.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -3557,6 +3557,86 @@ MonoBehaviour:
m_VerticalOverflow: 0
m_LineSpacing: 1
m_Text: Dano
--- !u!1 &5786165326313048569
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 9129343121021219635}
- component: {fileID: 3850002207610289737}
- component: {fileID: 6943966996809970594}
m_Layer: 0
m_Name: Difficulty
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &9129343121021219635
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5786165326313048569}
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_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 6541826974359309613}
m_RootOrder: 7
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &3850002207610289737
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5786165326313048569}
m_CullTransparentMesh: 1
--- !u!114 &6943966996809970594
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5786165326313048569}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_FontData:
m_Font: {fileID: 12800000, guid: 0e446559229638f448d0706b0656bbe0, type: 3}
m_FontSize: 12
m_FontStyle: 0
m_BestFit: 0
m_MinSize: 1
m_MaxSize: 40
m_Alignment: 5
m_AlignByGeometry: 0
m_RichText: 1
m_HorizontalOverflow: 0
m_VerticalOverflow: 0
m_LineSpacing: 1
m_Text: 0
--- !u!1 &5941958435114552132
GameObject:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -3670,6 +3750,86 @@ RectTransform:
m_AnchoredPosition: {x: -5, y: 0}
m_SizeDelta: {x: -20, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &6624794674392374493
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 846873939859871888}
- component: {fileID: 2762014832840752568}
- component: {fileID: 4684092489768213349}
m_Layer: 0
m_Name: Text
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &846873939859871888
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6624794674392374493}
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_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 6541826974359309613}
m_RootOrder: 6
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &2762014832840752568
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6624794674392374493}
m_CullTransparentMesh: 1
--- !u!114 &4684092489768213349
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6624794674392374493}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_FontData:
m_Font: {fileID: 12800000, guid: 0e446559229638f448d0706b0656bbe0, type: 3}
m_FontSize: 12
m_FontStyle: 0
m_BestFit: 0
m_MinSize: 1
m_MaxSize: 40
m_Alignment: 3
m_AlignByGeometry: 0
m_RichText: 1
m_HorizontalOverflow: 0
m_VerticalOverflow: 0
m_LineSpacing: 1
m_Text: Dificuldade atual
--- !u!1 &7334273576904498236
GameObject:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -3940,13 +4100,15 @@ RectTransform:
- {fileID: 7463554454055162917}
- {fileID: 7482012678611493145}
- {fileID: 4213524155332047350}
- {fileID: 846873939859871888}
- {fileID: 9129343121021219635}
m_Father: {fileID: 2932101239374365858}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 80, y: -200}
m_SizeDelta: {x: 180, y: 180}
m_SizeDelta: {x: 180, y: 240}
m_Pivot: {x: 0, y: 1}
--- !u!222 &8980498674201781340
CanvasRenderer:
Expand Down
85 changes: 80 additions & 5 deletions Assets/Scenes/MainScene.unity
Original file line number Diff line number Diff line change
Expand Up @@ -700,22 +700,45 @@ MonoBehaviour:
- {fileID: 4026393600238520495, guid: 4f847d9983c9b47469670e627d94626e, type: 3}
enemySpawnSettings:
isEnemySpawnEnabled: 1
difficultyIndexWeight: 1
difficultyCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: -0.017335435
value: 0.99400204
inSlope: 0
outSlope: 0
tangentMode: 136
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
- serializedVersion: 3
time: 16.033
value: 10.165251
inSlope: 0.54586494
outSlope: 0.54586494
tangentMode: 0
weightedMode: 0
inWeight: 0.15172148
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
spawnBatchSize: 2
spawnInterval: 10
maxEnemiesAlive: 5
bossPrefab: {fileID: 2422363816341469345, guid: d1a345f2a0f822246a75854118660aab, type: 3}
enemyPrefabs:
- {fileID: 2422363816341469345, guid: 878f06b5ada303f47b84bdd84f0d4917, type: 3}
- {fileID: 2422363816341469345, guid: d8fc18198181de64a9748ac34ed8bbd3, type: 3}
- {fileID: 2422363816341469345, guid: d1a345f2a0f822246a75854118660aab, type: 3}
enemyDropSettings:
enableDrops: 1
enemyDrops:
- prefab: {fileID: 3578579234224482949, guid: 69c28c34c6fbeeb4b91ecb764913c032, type: 3}
chance: 0.11
- prefab: {fileID: 4227791301383778845, guid: e5b6e2820f4646d44bf2868c20e6048e, type: 3}
chance: 0.071
chance: 0.25
- prefab: {fileID: 6724353180413059161, guid: f1a5ddd8653b52941b34911e403e9c05, type: 3}
chance: 0.069
chance: 0.24
isNavMeshBaked: 0
currentRoom: {fileID: 0}
--- !u!114 &1524951598
Expand Down Expand Up @@ -1089,6 +1112,10 @@ PrefabInstance:
propertyPath: m_Mesh
value:
objectReference: {fileID: 764316535}
- target: {fileID: 4026393600420885624, guid: b9519a0483ddad14d827540255bc2c9f, type: 3}
propertyPath: m_VersionIndex
value: 5318
objectReference: {fileID: 0}
- target: {fileID: 4026393600420885628, guid: b9519a0483ddad14d827540255bc2c9f, type: 3}
propertyPath: m_Mesh
value:
Expand Down Expand Up @@ -1305,6 +1332,30 @@ PrefabInstance:
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 846873939859871888, guid: 3b586217a958dcd42976ca69ca9e3ed3, type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 846873939859871888, guid: 3b586217a958dcd42976ca69ca9e3ed3, type: 3}
propertyPath: m_AnchorMin.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 846873939859871888, guid: 3b586217a958dcd42976ca69ca9e3ed3, type: 3}
propertyPath: m_SizeDelta.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 846873939859871888, guid: 3b586217a958dcd42976ca69ca9e3ed3, type: 3}
propertyPath: m_SizeDelta.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 846873939859871888, guid: 3b586217a958dcd42976ca69ca9e3ed3, type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 846873939859871888, guid: 3b586217a958dcd42976ca69ca9e3ed3, type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 887981261800075050, guid: 3b586217a958dcd42976ca69ca9e3ed3, type: 3}
propertyPath: m_AnchorMax.y
value: 0
Expand Down Expand Up @@ -1945,6 +1996,30 @@ PrefabInstance:
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 9129343121021219635, guid: 3b586217a958dcd42976ca69ca9e3ed3, type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 9129343121021219635, guid: 3b586217a958dcd42976ca69ca9e3ed3, type: 3}
propertyPath: m_AnchorMin.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 9129343121021219635, guid: 3b586217a958dcd42976ca69ca9e3ed3, type: 3}
propertyPath: m_SizeDelta.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 9129343121021219635, guid: 3b586217a958dcd42976ca69ca9e3ed3, type: 3}
propertyPath: m_SizeDelta.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 9129343121021219635, guid: 3b586217a958dcd42976ca69ca9e3ed3, type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 9129343121021219635, guid: 3b586217a958dcd42976ca69ca9e3ed3, type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 9148812110294212001, guid: 3b586217a958dcd42976ca69ca9e3ed3, type: 3}
propertyPath: m_AnchorMax.y
value: 0
Expand Down
Loading

0 comments on commit 3d35e12

Please sign in to comment.