1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-12-17 19:48:06 +00:00

Asteroids in 3D

This commit is contained in:
Zeno Rogue
2019-03-30 20:06:35 +01:00
parent 6d87b282c3
commit 55492e229b
4 changed files with 15 additions and 4 deletions

View File

@@ -2318,6 +2318,7 @@ void procedural_shapes() {
for(int i=0; i<8; i++) {
asteroid_size[i] = scalefactor * 0.1 * pow(2, (i-1) * 1. / DIM);
if(DIM == 3) asteroid_size[i] *= 4;
bshape(shAsteroid[i], PPR::PARTICLE);
for(int t=0; t<12; t++)
hpcpush(xspinpush0(M_PI * t / 6, asteroid_size[i] * (1 - randd() * .2)));