Save me from Cactus

Students Projects

Electronics

Arduino

Save me from Cactus

Save me from Cactus

Created By

  • Yadnya Surjekar

    Yadnya Surjekar

    I am Yadnya Surejkar. I am 10 years old. I study in 5th grade. I am interested in Robotics, Coding, Cricket and reading books. My favourite app that I made in Mechatron Robotics is BMI Index Calculator. I am incredibly happy to be a part of Mechatron Robotics.

About This Project

Let us have a look at an interesting ‘Save me from Cactus’ game. You have to save the dog from the Cactus. Press the space key to jump and the left and right keys to move forward and backward. But be careful as you move further, Cactus will start moving with more speed. If they touch you, you will die and the game will be over. Enjoy……!!!!! 

In this project, we have used cactus sprite which has multiple costumes. The cactus will keep on switching the costumes every time it touches the edge and start moving again. ‘If then’ and ‘key pressed’ commands are used to check which button is pressed. “Change x by” and “change y by” commands are used to make the dog jump and to move it back and forth.   

Project Link

Share