Play Home Contribute Github Join Us! Discourse Staff Members Github Contribution Guides Team

[SOLVED] Mountain Flower Grove hlp

here is my code

def drawCircle(x, y, size):
    angle = 0
    hero.toggleFlowers(False)
    while angle <= Math.PI * 2:
        newX = x + (size * Math.cos(angle))
        newY = y + (size * Math.sin(angle))
        hero.moveXY(newX, newY)
        hero.toggleFlowers(True)
        angle += 0.2

def drawSquare(x, y, size):
    hero.toggleFlowers(False)
    cornerOffset = size / 2
    hero.moveXY(x - cornerOffset, y - cornerOffset)
    hero.toggleFlowers(True)
    hero.moveXY(x + cornerOffset, y - cornerOffset)
    hero.moveXY(x + cornerOffset, y + cornerOffset)
    hero.moveXY(x - cornerOffset, y + cornerOffset)
    hero.moveXY(x - cornerOffset, y - cornerOffset)
redX = {"x": 28, "y": 36}
whiteX = {"x": 44, "y": 36}
hero.setFlowerColor("random")
drawCircle(28, 36, 12)
hero.setFlowerColor("random")
drawSquare(44, 36, 12)
hero.setFlowerColor("random")
drawCircle(82, 72, 40)

im trying to draw a circle then a square then a relly big circle at the middle

1 Like

@AnSeDra @dedreous (20chars)

What do the comments say about the size of the first circle and of the square? (Hint: it is with 2 smaller than your current size)

Andrei

i know i just needed more flowers

Here change the color of the flowers between the 2 shapes.

Andrei

And if it is the level in what you need to use 1000 flowers, try to draw a lot of shapes in order to succed.

Andrei

1 Like

it is the one where you need 1000

Them use this advice (I belived that it was the one where you earn the boss star 2)

Andrei

yes it was give me a minute to get a lot of circles and squares

i completed it! and i just did the same code over and over to stack but it counts! thanks

1 Like

No problem! And congratulations for completing the level! :partying_face:

Andrei

1 Like

This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.