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

Official Flower Grove Topic

it looks like the terria blade from the game terria

I love those creations that have no clear resemblance. It puts users to use their creativity to figure out what it mean to them.

I agree with you here i mean i love using my imagination though i usaly think about anime or video games insted of using my imagination

1 Like

A post was merged into an existing topic: Post your new levels here!

# size - size of the shape (radius, side length)
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}

# Pick a color.
hero.setFlowerColor("random")
# Draw a size 10 circle at the redX.
drawCircle(28,36,10)
# Change the color!
hero.setFlowerColor("random")
# Draw a size 10 square at the whiteX.
drawSquare(44,36,10)
# Now experiment with drawing whatever you want!
drawCircle(32,23,15)
while True:
    feeblemindedpeasant = hero.findFriends()[0]
    
    if feeblemindedpeasant:
        hero.attack(feeblemindedpeasant)
        
    pet.trick()