Skip to content

Commit

Permalink
Game design tweaking
Browse files Browse the repository at this point in the history
  • Loading branch information
AnanasikDev committed Mar 20, 2024
1 parent 71bd531 commit f6b6cd8
Show file tree
Hide file tree
Showing 6 changed files with 434 additions and 383 deletions.
4 changes: 2 additions & 2 deletions Assets/Prefabs/EnemyBall_1.asset
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ MonoBehaviour:
m_Name: EnemyBall_1
m_EditorClassIdentifier:
color: {r: 0.87169814, g: 0.37334993, b: 0.37334993, a: 1}
bounciness: 200
unpredictability: 0.2
bounciness: 350
unpredictability: 0.1
inheritance: 2
maxLives: 1
frequency: 0.3
2 changes: 1 addition & 1 deletion Assets/Prefabs/EnemyBall_2.asset
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ MonoBehaviour:
m_Name: EnemyBall_2
m_EditorClassIdentifier:
color: {r: 0.3535521, g: 0.690566, b: 0.29055887, a: 1}
bounciness: 120
bounciness: 90
unpredictability: 2
inheritance: 3
maxLives: 2
Expand Down
4 changes: 2 additions & 2 deletions Assets/Prefabs/EnemyBall_3.asset
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ MonoBehaviour:
m_Name: EnemyBall_3
m_EditorClassIdentifier:
color: {r: 0.3545776, g: 0.30619434, b: 0.8867924, a: 1}
bounciness: 145
unpredictability: 3.5
bounciness: 135
unpredictability: 3
inheritance: 1
maxLives: 3
frequency: 0.1
44 changes: 22 additions & 22 deletions Assets/Scenes/SampleScene.unity
Original file line number Diff line number Diff line change
Expand Up @@ -10120,29 +10120,29 @@ MonoBehaviour:
- serializedVersion: 3
time: 0
value: 0.5
inSlope: -0.00046339093
outSlope: -0.00046339093
inSlope: 0.00088428624
outSlope: 0.00088428624
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0.072911
outWeight: 0.162635
- serializedVersion: 3
time: 100.39147
value: 1.3189018
inSlope: 0.025014037
outSlope: 0.025014037
time: 80.101685
value: 1.0488197
inSlope: 0.017734427
outSlope: 0.017734427
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
inWeight: 0.051033847
outWeight: 0.33333334
- serializedVersion: 3
time: 149.49628
value: 1.1344701
inSlope: 0.05703196
outSlope: 0.05703196
time: 149.84105
value: 0.74664456
inSlope: 0.0022117116
outSlope: 0.0022117116
tangentMode: 0
weightedMode: 0
inWeight: 0.06544512
inWeight: 0.15885662
outWeight: 0
m_PreInfinity: 2
m_PostInfinity: 0
Expand All @@ -10160,31 +10160,31 @@ MonoBehaviour:
inWeight: 0
outWeight: 0.07308655
- serializedVersion: 3
time: 26.379711
value: 0.27327132
time: 28.365149
value: 0.25955743
inSlope: 0.001436802
outSlope: 0.001436802
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
- serializedVersion: 3
time: 128.21503
value: 1.1227735
time: 89.49713
value: 0.87069833
inSlope: 0.015105529
outSlope: 0.015105529
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
- serializedVersion: 3
time: 185.99226
value: 0.77500033
inSlope: 0.008204589
outSlope: 0.008204589
time: 187.797
value: 0.68267655
inSlope: 0.000994875
outSlope: 0.000994875
tangentMode: 0
weightedMode: 0
inWeight: 0.19434157
inWeight: 0.22734462
outWeight: 0
m_PreInfinity: 2
m_PostInfinity: 0
Expand Down
2 changes: 1 addition & 1 deletion Assets/Scripts/EnemyController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ private void Die()
GameObject child = Instantiate(gameObject, transform.position + new Vector3((Random.value-0.5f)*2, Random.value), Quaternion.identity);
var enemyController = child.GetComponent<EnemyController>();
enemyController.Init(settings, transform.localScale.x / 1.5f, livesLeft - 1, childrenNumber - 1);
Vector3 force = new Vector3(Random.Range(-settings.unpredictability, settings.unpredictability), 1) * settings.bounciness;
Vector3 force = new Vector3(Random.Range(-settings.unpredictability, settings.unpredictability), 1).normalized * settings.bounciness;
enemyController.rigidbody2d.AddForce(force);
Environment.enemySpawner.AddEntity(child);
}
Expand Down
Loading

0 comments on commit f6b6cd8

Please sign in to comment.