Added basic "wormhole" behaviour

Going into the star transports you to random coordinates in the world.
This commit is contained in:
Barra Ó Catháin 2023-03-21 13:35:07 +00:00
parent 7c22fdeefb
commit 4fe780c1e8
1 changed files with 2 additions and 1 deletions

View File

@ -42,7 +42,8 @@ static inline void calculateGravity(xyVector * starPosition, ship * shipUnderGra
}
else
{
gravityAcceleration = 1;
shipUnderGravity->position.xComponent = random() % 4000;
shipUnderGravity->position.yComponent = random() % 4000;
}
}
else