Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added bombs and lives to the game #136

Merged
merged 4 commits into from
Oct 27, 2023

Conversation

SoumyadevSaha
Copy link
Contributor

Fixes Issue🛠️

Closes #134

Description👨‍💻

Aplied Changes

  1. 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.

  2. 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.

  3. 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.

  4. 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📄

  • New feature (non-breaking change which adds functionality)

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✅

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added demonstration in the form of GIF/video file
  • I am an Open Source Contributor

Screenshots/GIF📷

Screen-shot 1

issue2_pr1

Screen-shot 2

issue2_pr2

Screen-shot 3

issue3_pr3

@netlify
Copy link

netlify bot commented Oct 27, 2023

Deploy Preview for click-the-edible-game ready!

Name Link
🔨 Latest commit d9bd076
🔍 Latest deploy log https://app.netlify.com/sites/click-the-edible-game/deploys/653b93239a258c0008b92f18
😎 Deploy Preview https://deploy-preview-136--click-the-edible-game.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@Rakesh9100 Rakesh9100 merged commit f705ebd into Rakesh9100:main Oct 27, 2023
4 checks passed
@Rakesh9100 Rakesh9100 added Completed 🥳 PR successfully merged and issue resolved on completion slop3.0 SLoP 3.0 Open Source Program labels Oct 27, 2023
@Rakesh9100
Copy link
Owner

Rakesh9100 commented Oct 27, 2023

Nice work!! Merged 🎉🥳 @SoumyadevSaha

@SoumyadevSaha
Copy link
Contributor Author

Nice work!! Merged 🎉🥳 @SoumyadevSaha

give @SoumyadevSaha 150 points

Thankyou @Rakesh9100 😊

@SoumyadevSaha SoumyadevSaha deleted the adding_bomb branch October 28, 2023 09:37
@SoumyadevSaha SoumyadevSaha restored the adding_bomb branch October 28, 2023 09:37
@Rakesh9100
Copy link
Owner

give @SoumyadevSaha 150 points

@Rakesh9100 Rakesh9100 changed the title Feature Enhancement: Adding bombs and lives to the game Added bombs and lives to the game Feb 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Completed 🥳 PR successfully merged and issue resolved on completion slop3.0 SLoP 3.0 Open Source Program
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add explosive bombs along with edibles in the game
2 participants