Skip to content
This repository was archived by the owner on May 27, 2023. It is now read-only.

Commit c77bedf

Browse files
Earlier red asteroids
1 parent 16f9b45 commit c77bedf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/main/java/info/zthings/geem/entities/Asteroid.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public Asteroid(float x, float z) {
1515
this.position = new Vector3(x, .5F, z);
1616

1717
float rc = .0000125F;
18-
hard = Math.random() < rc * (z - 1500);
18+
hard = Math.random() < rc * (z - 1200);
1919

2020
model.materials.get(0).set(ColorAttribute.createDiffuse(hard ? Color.FIREBRICK : Color.GRAY));
2121
model.transform.scale(.025F, .025F, .025F);
@@ -29,7 +29,7 @@ public void update(float dt) {
2929

3030
public boolean hit() {
3131
if (hard) {
32-
model.materials.get(0).set(ColorAttribute.createDiffuse(Color.DARK_GRAY));
32+
model.materials.get(0).set(ColorAttribute.createDiffuse(Color.GRAY));
3333
hard = false;
3434
return false;
3535
} else {

0 commit comments

Comments
 (0)