Pages

Wednesday, September 2, 2020

Today's code

Today we are going to be looking at some coding that I did to day.sorry that I am not writing a lot but I have to go to technology but I hope you like it.I have not finished yet but this is only a little bit of the coding that I did hope you like it tell me in the comments what I can improve on or something that you like about my blogs see you next time bye bye stay safe .




stage.set_background("underwater")
sprite = codesters.Sprite("applecore")
sprite.glide_to(-200, -200)
sprite = codesters.Sprite("sodacan")
sprite.glide_to(200, -200)

sprite = codesters.Sprite("fish")
sprite.set_speed(2)
sprite.move_down(150)
stage.wait(1)
sprite.say("Click on me!")

def click():
    sprite.say("Don't litter!")
    sprite.move_up(100)
    sprite.turn_right(360)
    sprite.move_down(100)
    sprite.say("Save the oceans by saving me!")
    sprite.set_x_speed(5)

sprite.event_click(click)
sprite = codesters.Sprite("butterfly")


Hope you like this one see you next time bye stay safe.

1 comment:

  1. Hey Valley,
    I really like how you showed us what your code is.
    Next time you could add a DLO and make your title a little bit more interesting. I like how you introduced your work.
    Have a good weekend (:

    ReplyDelete

To support my learning I ask you to comment as follows:
1. Something positive - Begin with a greeting. Talk about something you like about what I have shared.
2. Thoughtful - A comment that will mean something to me to let me know you read/watched or listened to what I had to say. - use any language.
3. Something helpful - Give me some ideas for next time or ask me a question.
Encourage me to make another post