Official Flower Grove Topic


#56

cool flower art:grinning:


#57

I made that screensaver which is on every computer where the thing hits the edge of the screen and changes color:

code
self.toggleFlowers(True)
newVector = Vector(1, 1)
colors = ['pink', 'red', 'yellow', 'blue', 'purple', 'white', 'random']
currentColor = None
choice = 0
loop:
    if not self.isPathClear(self.pos, {'x':self.pos.x, 'y':self.pos.y+2}):
        newVector = Vector.add(newVector, Vector(0,-2))
        choice += 1
    elif not self.isPathClear(self.pos, {'x':self.pos.x, 'y':self.pos.y-2}):
        newVector = Vector.add(newVector, Vector(0,2))
        choice += 1
    if not self.isPathClear(self.pos, {'x':self.pos.x + 2, 'y':self.pos.y}):
        newVector = Vector.add(newVector, Vector(-2,0))
        choice += 1
    elif not self.isPathClear(self.pos, {'x':self.pos.x - 2, 'y':self.pos.y}):
        newVector = Vector.add(newVector, Vector(2,0))
        choice += 1
    if currentColor is not colors[choice%len(colors)]:
        currentColor = colors[choice%len(colors)]
        self.setFlowerColor(currentColor)
    moveTo = Vector.add(newVector, self.pos)
    self.move(moveTo)

#58

Incredible, can you send me the code, please? I want to know how to define such a function.My email address:630116613@qq.com


#59

Incredible, can you send me the code, please? I want to know how to define such a function.My email address:630116613@qq.com


#60

This was written below his post:

If you want to see the code, go to the post: [Mountain Flower Grove] Flower Text Box

You need to:

  1. Click on the link
  2. Click on the little triangle where it says Message Flower Box Code v1.0 NEW!!!

#61

my initial thought was to do random as well, but i couldn’t get it to work in python.


#62

A continuous line / ripple
theta = 2cos5r


#63

Thats so cool.:heart_eyes::open_mouth::thumbsup:!!! I probably cant do stuff like that (yet)…


#64

Drawing icon
source


#65

its say SUCCESS
yaeh baby!


#66

if anyone need code to make this masterpiece, sorry it’s copyrighted. No link will be given


#67

The Blood Skull. Hellenar Asfalothe Pavaríel, coding techniques and the Ring of Flowers, March 2017.

First time trying to draw something. Took a lot of planning. No complex functions used as shown below - just moveXY.

Other variations:
Weeping Skull. Replace “red” with “blue”. Simple.
Golden Skull. Replace “red” with “yellow”, and eliminate lines 26-33 and 42-49 (of the whole deal - comments and all).

SCREENSHOT OF CODECOMBAT - Y U NO DISPLAY SPEECH BUBBLES???

My code! Be prepared to be reading this for about an hour. I use Python. Also this was from a while back, before I joined this forum, and before the "hero" update, so it still shows "self" instead of "hero". Just a side note. ^_^
# This level is a place for making flower art.
# The real goal is to experiment and have fun!
# If you draw something with at least 1000 flowers, you will "succeed" at the level.
# Or, if you choose to make a little life in the dead-looking mountains...
self.say("Hmm. This place is looking pretty dull...")
self.say("AHA!!!")
self.say("I'll plant a field of flowers here!")
self.say("After all, as long as I have this ring on I can plant flowers literally everywhere.")
self.say("Let's get to it!")
# I just have this habit of 1) thinking aloud, and 2) explaining why something is about to happen.  ^_^
self.setFlowerColor("white")
self.toggleFlowers(False)
self.moveXY(85, 70)
self.toggleFlowers(True)
self.moveXY(82, 67)
self.moveXY(85, 78)
self.moveXY(88, 67)
self.moveXY(85, 70)
self.toggleFlowers(False)
self.moveXY(76, 81)
self.toggleFlowers(True)
self.moveXY(71, 86)
self.moveXY(76, 91)
self.moveXY(81, 86)
self.moveXY(76, 81)
self.setFlowerColor("red")
self.moveXY(self.pos.x, self.pos.y - 25)
self.moveXY(self.pos.x - 1, self.pos.y)
self.moveXY(self.pos.x, self.pos.y + 26)
self.toggleFlowers(False)
self.moveXY(self.pos.x + 2, self.pos.y)
self.toggleFlowers(True)
self.moveXY(self.pos.x, self.pos.y - 26)
self.toggleFlowers(False)
self.moveXY(94, 81)
self.toggleFlowers(True)
self.setFlowerColor("white")
self.moveXY(89, 86)
self.moveXY(94, 91)
self.moveXY(99, 86)
self.moveXY(94, 81)
self.setFlowerColor("red")
self.moveXY(self.pos.x, self.pos.y - 25)
self.moveXY(self.pos.x - 1, self.pos.y)
self.moveXY(self.pos.x, self.pos.y + 26)
self.toggleFlowers(False)
self.moveXY(self.pos.x + 2, self.pos.y)
self.toggleFlowers(True)
self.moveXY(self.pos.x, self.pos.y - 26)
self.toggleFlowers(False)
self.moveXY(72, 73)
self.setFlowerColor("white")
self.toggleFlowers(True)
self.moveXY(66, 90)
self.moveXY(85, 108)
self.moveXY(104, 90)
self.moveXY(98, 73)
self.moveXY(98, 56)
self.moveXY(72, 56)
self.moveXY(72, 73)
self.toggleFlowers(False)
self.moveXY(85, 56)
self.toggleFlowers(True)
self.setFlowerColor("red")
self.moveXY(self.pos.x - 36, self.pos.y - 1)
for i in range(1.5):
    self.moveXY(self.pos.x + 72, self.pos.y - 1)
    self.moveXY(self.pos.x - 72, self.pos.y - 1)
# When you make an amazing work of art and no one's there to admire it, so you summon a soldier just because...
self.summon("soldier")
self.say("How do you like it?")

#69

Maybe try using Pender with the Ring of Speed so that you have enough time?


#70

Here’s some random art I made in Forest Flower Grove.

Code in case someone want to clear a Flower Grove level cheaply (I don't care)
hero.setFlowerColor("random")
hero.toggleFlowers(False)
i = 0
hero.toggleFlowers(True)
while i < 10:
    hero.moveXY(hero.pos.x + 30, hero.pos.y)
    hero.moveXY(hero.pos.x, hero.pos.y - 1)
    hero.moveXY(hero.pos.x - 30, hero.pos.y)
    hero.moveXY(hero.pos.x, hero.pos.y - 1)
    i += 1

#71

How - just how - is this not a thousand flowers???
I used a warrior plus the softened leather boots…Can you please enable the Ring of Speed for this level? I was originally planning on doing some fire but I ran out of time. Level says “Ran Out Of Time” too… :cry::sob:

Dragon Head. Hellenar Asfalothe Pavaríel, coding techniques and the Ring of Flowers, April 2017.

My code in case anyone wants to recreate this. Please use a wizard and add some fire effects too, or you will run out of time.
# This level is a place for making flower art.
# The real goal is to experiment and have fun!
# If you draw something with at least 1000 flowers, you will "succeed" at the level.
self.setFlowerColor("red")
self.toggleFlowers(False)
self.moveXY(66, 78)
self.toggleFlowers(True)
self.moveXY(63, 73)
self.moveXY(65, 68)
self.moveXY(68, 71)
self.moveXY(78, 72)
self.moveXY(71, 64)
self.moveXY(70, 65)
self.moveXY(70, 62)
self.moveXY(79, 66)
self.moveXY(84, 63)
self.setFlowerColor("yellow")
self.moveXY(87, 54)
self.moveXY(82, 28)
self.toggleFlowers(False)
self.moveXY(82, 65)
self.toggleFlowers(True)
self.moveXY(83, 54)
self.moveXY(74, 28)
self.toggleFlowers(False)
self.moveXY(81, 52)
self.toggleFlowers(True)
self.moveXY(86, 54)
self.toggleFlowers(False)
self.moveXY(80, 46)
self.toggleFlowers(True)
self.moveXY(85, 45)
self.toggleFlowers(False)
self.moveXY(77, 38)
self.toggleFlowers(True)
self.moveXY(83, 34)
self.toggleFlowers(False)
self.moveXY(71, 64)
self.setFlowerColor("pink")
self.toggleFlowers(True)
self.moveXY(74, 72)
self.toggleFlowers(False)
self.setFlowerColor("red")
self.moveXY(66, 78)
self.toggleFlowers(True)
self.moveXY(67, 76)
self.moveXY(77, 81)
self.moveXY(81, 87)
self.moveXY(84, 88)
self.moveXY(88, 93)
self.moveXY(90, 92)
self.moveXY(90, 90)
self.setFlowerColor("white")
self.moveXY(94, 104)
self.moveXY(94, 121)
self.moveXY(92, 106)
self.moveXY(88, 93)
self.toggleFlowers(False)
self.setFlowerColor("red")
self.moveXY(90, 90)
self.toggleFlowers(True)
self.moveXY(105, 95)
self.moveXY(93, 88)
self.moveXY(106, 87)
self.moveXY(95, 85)
self.moveXY(105, 79)
self.moveXY(96, 81)
self.moveXY(103, 75)
self.moveXY(94, 77)
self.moveXY(95, 75)
self.toggleFlowers(False)
self.moveXY(104, 95)
self.setFlowerColor("pink")
self.toggleFlowers(True)
self.moveXY(105, 88)
self.toggleFlowers(False)
self.moveXY(105, 87)
self.toggleFlowers(True)
self.moveXY(104, 81)
self.toggleFlowers(False)
self.moveXY(103, 80)
self.toggleFlowers(True)
self.moveXY(102, 77)
self.toggleFlowers(False)
self.setFlowerColor("red")
self.moveXY(83, 88)
self.toggleFlowers(True)
self.moveXY(85, 94)
self.moveXY(88, 92)
self.toggleFlowers(False)
self.setFlowerColor("white")
self.moveXY(91, 102)
self.toggleFlowers(True)
self.moveXY(89, 122)
self.moveXY(89, 105)
self.moveXY(83, 88)
self.toggleFlowers(False)
self.setFlowerColor("red")
self.moveXY(100, 76)
self.toggleFlowers(True)
self.moveXY(102, 62)
self.moveXY(98, 28)
self.toggleFlowers(False)
self.setFlowerColor("white")
self.moveXY(82, 78)
self.toggleFlowers(True)
self.moveXY(85, 82)
self.moveXY(90, 83)
self.moveXY(89, 79)
self.moveXY(82, 78)
self.toggleFlowers(False)
self.moveXY(90, 91)
self.setFlowerColor("red")
self.toggleFlowers(True)
self.moveXY(100, 97)
self.moveXY(98, 93)
self.toggleFlowers(False)
self.setFlowerColor("pink")
self.moveXY(100, 97)
self.toggleFlowers(True)
self.moveXY(102, 95)

#72

In the end I was forced to write “H” in the corner…

Dragon Head with “H”. Revised edition of the above.
I just tacked this onto the end:

self.toggleFlowers(False)
self.moveXY(30, 104)
self.toggleFlowers(True)
self.moveXY(30, 84)
self.toggleFlowers(False)
self.moveXY(40, 104)
self.toggleFlowers(True)
self.moveXY(40, 84)
self.toggleFlowers(False)
self.moveXY(30, 94)
self.toggleFlowers(True)
self.moveXY(40, 94)

And I was good to go. :joy::stuck_out_tongue_winking_eye::slight_smile:


#73

I would like to ask if the hero.jumpTo({“x”: x, “y”: y}) method stops placement of flowers while you are in the air.


#74

ring of speed is not allowed. :disappointed::confused::confounded::unamused::worried::angry::rage:


#75

I know…Definitely wish they could include it.
Suggestion: Keep the “Ring of Flowers” locked inside the inventory rather than locking the other rings outside of it.


#76

Maybe they could create a second flower grove that lets you use the ring of speed. I wish that there was one all of my creations take to long. I would need the ring of speed to complete it.