Commit 3230962e authored by MartiniMoe's avatar MartiniMoe
Browse files

Fix flower positioning

parent a5ba30e9
......@@ -22,8 +22,8 @@ func generate_solar_system():
var planetstring = GameManager.generate_random_planet_string()
var planet_radius = planetstring.length() * 15
var planet = pl_planet.instance()
planet.surface = planetstring
var x = planet_radius + last_radius + (2 * planet.pitdepth) + rand_range(100, 300) + last_position.x
var y = sin(planet_radius) * last_radius *2
......@@ -35,7 +35,7 @@ func generate_solar_system():
GameManager.current_planet = planet
if (i == GameManager.number_of_planets-1):
var angle = rand_range(0, 2*PI)
$TheFlower.position = planet_origin + planet_radius * Vector2(cos(angle), sin(angle))
$TheFlower.position = planet_origin + (planet_radius + 60) * Vector2(cos(angle), sin(angle))
$TheFlower.set_rotation(angle + PI/2)
$Planets.add_child(planet)
last_position = planet.position
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment