Fruit Ninja Game using python














































Fruit Ninja Game using python



Description

Fruit ninja game is a game in which as the fruit is thrown onto the screen, the player swipes their finger/cursor across the screen to create a slicing motion, attempting to slice the fruit in half.


In this article, we will consider a fruit ninja game in which only watermelon and orange juggles randomly and the player has to cut the fruits using their laptop%u2019s mouse cursor.





CODE






OUTPUT






EXPLANATION

In the output above it can be seen that the two fruits bounce on the screen continuously. 

Further, whenever we cut any of the fruits it appears to be cut. Simultaneously, there is a number displayed at the top left of the screen that increments as and when the player cuts a fruit.


Comments