Official Flower Grove Topic

this is what i had but it was not enough flowers


so i made this but i wanted more

so i ended with this so that all on the inside are run over twice and the outside square is only run once

6 Likes

my code is here or here

5 Likes

sorry if you can not see the code i’ll start a new topic called my code for flower grove

5 Likes

i made another one in the level that is in the forest and made this


code in the other topic i started

(it is all made with strait lines)

10 Likes

cool deadpool198 that is awesome

5 Likes

Here’s one of Pender that I made.
Daniel Alan Walters 2018

03

Code
# this is one of the yellow side things
hero.toggleFlowers(False)
hero.moveXY(101, 37)
hero.toggleFlowers(True)
hero.setFlowerColor("yellow")
hero.moveXY(106, 75)
hero.moveXY(113, 73)
hero.moveXY(113, 44)
hero.moveXY(101, 37)
hero.toggleFlowers(False)
hero.moveXY(113, 73)
hero.toggleFlowers(True)

# this is half the turban
hero.setFlowerColor("white")
hero.moveXY(91, 83)
hero.moveXY(113, 73)
hero.moveXY(116, 81)
hero.moveXY(94, 90)
hero.moveXY(116, 81)
hero.moveXY(118, 91)
hero.moveXY(97, 96)
hero.moveXY(118, 91)
hero.moveXY(117, 101)
hero.moveXY(95, 103)
hero.moveXY(117, 101)
hero.moveXY(111, 112)
hero.moveXY(93, 108)
hero.moveXY(111, 112)
hero.moveXY(103, 121)
hero.moveXY(89, 112)
hero.moveXY(103, 121)
hero.moveXY(88, 123)
hero.moveXY(83, 115)
hero.moveXY(88, 123)
hero.moveXY(80, 122)
hero.moveXY(80, 118)
# this is half of the gold stone on the turban
hero.setFlowerColor("yellow")
hero.moveXY(83, 115)
hero.moveXY(89, 112)
hero.moveXY(93, 108)
hero.moveXY(95, 103)
hero.moveXY(97, 96)
hero.moveXY(94, 90)
hero.moveXY(91, 83)
hero.moveXY(86, 80)
hero.moveXY(83, 80)
hero.moveXY(80, 78)
hero.toggleFlowers(False)
hero.moveXY(80, 86)
hero.toggleFlowers(True)
# this is half of the gem
hero.setFlowerColor("blue")
hero.moveXY(84, 86)
hero.moveXY(88, 90)
hero.moveXY(90, 91)
hero.moveXY(91, 95)
hero.moveXY(92, 97)
hero.moveXY(92, 100)
hero.moveXY(91, 104)
hero.moveXY(89, 108)
hero.moveXY(83, 112)
hero.moveXY(80, 114)
hero.toggleFlowers(False)
hero.moveXY(101, 45)
hero.toggleFlowers(True)
# these are half the lips and half the nose
hero.setFlowerColor("pink")
hero.moveXY(84, 37)
hero.moveXY(80, 37)
hero.toggleFlowers(False)
hero.moveXY(80, 46)
hero.toggleFlowers(True)
hero.moveXY(83, 46)
hero.moveXY(80, 46)
hero.toggleFlowers(False)
hero.moveXY(80, 47)
hero.toggleFlowers(True)
hero.moveXY(85, 48)

hero.toggleFlowers(False)
hero.moveXY(80, 45)
hero.toggleFlowers(True)
hero.moveXY(83, 45)
hero.moveXY(80, 45)
hero.toggleFlowers(False)
hero.moveXY(80, 57)
hero.toggleFlowers(True)
hero.moveXY(81, 58)
hero.moveXY(82, 58)
hero.moveXY(83, 59)
hero.moveXY(84, 60)

# nose highlight only on one side)
hero.moveXY(80, 69)#)
# nose highlight only on one side)

hero.toggleFlowers(False)
hero.setFlowerColor("white")
# this is one eye
hero.moveXY(88, 72)
hero.toggleFlowers(True)
hero.moveXY(89, 74)
hero.moveXY(90, 74)
hero.moveXY(91, 75)
hero.moveXY(92, 75)
hero.moveXY(93, 76)
hero.moveXY(94, 76)
hero.moveXY(95, 76)
hero.moveXY(96, 76)
hero.moveXY(98, 76)


hero.moveXY(97, 74)
hero.moveXY(96, 73)
hero.moveXY(95, 72)
hero.moveXY(94, 72)
hero.moveXY(92, 71)
hero.moveXY(91, 71)
hero.moveXY(88, 70)


# this is one eyebrow
hero.toggleFlowers(False)
hero.moveXY(90, 78)
hero.toggleFlowers(True)
hero.setFlowerColor("pink")
hero.moveXY(91, 80)
hero.moveXY(92, 81)




# gap for easy recognition of the changing of sides





# every thing below is the other half of what i've done already but using an equation in a function to make a mirror image of what I already have.(except for the nose highlight which looks better just on one side)




# gap for easy recignition of the changing of sides




def cNumber(x, y):
    x = 80 - (x - 80)
    y = y
    hero.moveXY(x, y)
hero.toggleFlowers(False)
cNumber(101, 37)
hero.toggleFlowers(True)
hero.setFlowerColor("yellow")
# this is one of the yellow side things
cNumber(106, 75)
cNumber(113, 73)
cNumber(113, 44)
cNumber(101, 37)
hero.toggleFlowers(False)
cNumber(113, 73)
hero.toggleFlowers(True)
hero.setFlowerColor("white")
# this is the other half of the turban
hero.moveXY(69, 83)
hero.moveXY(47, 73)
hero.moveXY(44, 81)
hero.moveXY(66, 90)
hero.moveXY(44, 81)
hero.moveXY(42, 91)
hero.moveXY(63, 96)
hero.moveXY(42, 91)
hero.moveXY(43, 101)
hero.moveXY(65, 103)
hero.moveXY(43, 101)
hero.moveXY(49, 112)
hero.moveXY(67, 108)
hero.moveXY(49, 112)
hero.moveXY(57, 121)
hero.moveXY(71, 112)
hero.moveXY(57, 121)
hero.moveXY(72, 123)
hero.moveXY(77, 115)
hero.moveXY(72, 123)
hero.moveXY(80, 122)
hero.moveXY(80, 118)
hero.setFlowerColor("yellow")
# this is the other half of the gold stone on the turban
cNumber(83, 115)
cNumber(89, 112)
cNumber(93, 108)
cNumber(95, 103)
cNumber(97, 96)
cNumber(94, 90)
cNumber(91, 83)
cNumber(86, 80)
cNumber(83, 80)
cNumber(80, 78)
hero.toggleFlowers(False)
cNumber(80, 86)
hero.toggleFlowers(True)
# this is the other half of the gem
hero.setFlowerColor("blue")
cNumber(84, 86)
cNumber(88, 90)
cNumber(90, 91)
cNumber(91, 95)
cNumber(92, 97)
cNumber(92, 100)
cNumber(91, 104)
cNumber(89, 108)
cNumber(83, 112)
cNumber(80, 114)
hero.toggleFlowers(False)
cNumber(101, 45)
hero.toggleFlowers(True)
hero.setFlowerColor("pink")
# these are the other half of the lips and the other half of the nose
cNumber(84, 37)
cNumber(80, 37)
hero.toggleFlowers(False)
cNumber(80, 46)
hero.toggleFlowers(True)
cNumber(83, 46)
cNumber(80, 46)
hero.toggleFlowers(False)
cNumber(80, 47)
hero.toggleFlowers(True)
cNumber(85, 48)

hero.toggleFlowers(False)
cNumber(80, 45)
hero.toggleFlowers(True)
cNumber(83, 45)
cNumber(80, 45)
hero.toggleFlowers(False)
cNumber(80, 57)
hero.toggleFlowers(True)
cNumber(81, 58)
cNumber(82, 58)
cNumber(83, 59)
cNumber(84, 60)

hero.toggleFlowers(False)
hero.setFlowerColor("white")
# this is another eye
cNumber(88, 72)
hero.toggleFlowers(True)
cNumber(89, 74)
cNumber(90, 74)
cNumber(91, 75)
cNumber(92, 75)
cNumber(93, 76)
cNumber(94, 76)
cNumber(95, 76)
cNumber(96, 76)
cNumber(98, 76)


cNumber(97, 74)
cNumber(96, 73)
cNumber(95, 72)
cNumber(94, 72)
cNumber(92, 71)
cNumber(91, 71)
cNumber(88, 70)

hero.toggleFlowers(False)
# this is another eyebrow
cNumber(90, 78)
hero.toggleFlowers(True)
hero.setFlowerColor("pink")
cNumber(91, 80)
cNumber(92, 81)



# that took ages!`Preformatted text`

:grin: I love the flower ring!

join my clan:(https://codecombat.com/clans/5ae8abea9c552e00418461c5)

this did take me ages though, i wrote the code for the right half first:59
then I wrote a equation in a function, cmd copied the top code and took all the coordinates and wrote the function on each of them with the coordinates in the function.
And then Pender drew the other half of it ( using the code :wink:)

11 Likes

Nice! I guess patience pays off! (I only spend a day on my flower art projects…no wonder mine don’t look as OP as everyone else’s :joy:)

5 Likes

THE Lightning Sword

9 Likes

oo nice it kinda also looks like the composite sword in shadow fight 2 XD
com

7 Likes

XD I just noticed that!!

6 Likes

I didn’t know what XD meant until I saw it on your post and asked my brother what it was. Ha Ha :laughing: XD

5 Likes

it only took me one day too
(I HAVE NO PATIENCE)

4 Likes

Oh I just moved my hero left to right. right to left etc. XD

5 Likes

i think that yours are really good they are a lot better than mine

4 Likes

you could just find you favourite pic in this topic that has the code with it and do that

3 Likes

Yeah but I was just too lazy.

4 Likes

me to i just wanted a pic so i could show my friends

3 Likes

I don’t think that is Python.

3 Likes

I moved my hero one pixel to the left and one pixel to the right a bunch of times, and I changed it

4 Likes

It is :slight_smile: That was just the old version of Python on CodeCombat back when they used self instead of hero.

6 Likes