mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-11-27 08:23:08 +00:00
Asteroids in 3D
This commit is contained in:
1 parent
6d87b282c3
commit
55492e229b
4 files changed
+15
-4
No files matched your search
@@ -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)));
|
||||
|
||||
Reference in new issue
Block a user