Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes Issue🛠️
Closes #134
Description👨💻
Aplied Changes
Introduction of Bombs: I have included bombs in the game, i.e, while the edibles appear, some bombs might also appear with a 50% probability. The maximum number of bombs that can be on the screen is limited to 5, to avoid crowding. Also, the lifespan of each bomb ranges between 1 to 6 seconds.
Updated Game Logic: To accommodate the Introductions of bombs and the lives of the player, to allow gameover condition on all the lives getting wasted, has all been implemented.
Addition of lives: The player will have a max of 3 lives when playing, on clicking a bomb one live is lost. When all 3 lives are lost, it is game over.
Inclusion of assets: Some assets, mainly, the image of the bomb, the image when a bomb explodes, and the sound played when the bomb explodes has been included.
Type of change📄
How this has been tested✅
I have applied the changes and tested them out in my local machine. I have played the game muliple times to ascertain the randomness of the appearance of the bombs, and also seen to the fact that on clicking 3 bombs the game gets over properly and without bugs.
Checklist✅
Screenshots/GIF📷
Screen-shot 1
Screen-shot 2
Screen-shot 3