Added basic "wormhole" behaviour
Going into the star transports you to random coordinates in the world.
This commit is contained in:
parent
7c22fdeefb
commit
4fe780c1e8
|
@ -42,7 +42,8 @@ static inline void calculateGravity(xyVector * starPosition, ship * shipUnderGra
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
gravityAcceleration = 1;
|
shipUnderGravity->position.xComponent = random() % 4000;
|
||||||
|
shipUnderGravity->position.yComponent = random() % 4000;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue