Dev-Mint icon indicating copy to clipboard operation
Dev-Mint copied to clipboard

Flappy Block Game

Open meAnkit18 opened this issue 10 months ago • 2 comments

Description:

This PR adds a Flappy Block Game, a fun and interactive game where players control a block that must navigate through obstacles. The game mechanics are inspired by Flappy Bird, featuring simple physics-based movement and collision detection.

  • [x] IWOC2025 Participant
  • [x] Contributor

Closes: #69

Changes Added:

Implemented game logic with jumping mechanics. Added collision detection to track when the block hits obstacles. Designed a score system that increases as the player progresses. Included game restart functionality after a game-over event. Created a minimalistic UI with smooth animations.

Type of change

What sort of change have you made:

  • [ ] Bug fix (non-breaking change which fixes an issue)
  • [x] New feature (non-breaking change which adds functionality)
  • [ ] Code style update (formatting, local variables)
  • [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • [ ] This change requires a documentation update

How to Test:

Clone the repository and switch to this branch. Run the game using index.html (or the necessary script). Use the spacebar (or tap/click) to make the block jump. Avoid obstacles and try to score as high as possible. Verify that the game restarts properly after a collision.

Checklist:

  • [x] My code follows the guidelines of this project.
  • [x] I have performed a self-review of my own code.
  • [x] I have commented my code, particularly wherever it was hard to understand.
  • [ ] I have made corresponding changes to the documentation.
  • [ ] My changes generate no new warnings.
  • [ ] I have added tests that prove my fix is effective or that my feature works.
  • [ ] Any dependent changes have been merged and published in downstream modules.

Screenshots

Screenshot (69)

Video:

https://github.com/user-attachments/assets/2e65258c-9e72-4122-afb7-729102abd3eb

meAnkit18 avatar Feb 10 '25 11:02 meAnkit18

Add "Screenshots" folder with images and video of the workability application to get reviewed. @meAnkit18

prathimacode-hub avatar Feb 14 '25 05:02 prathimacode-hub

What happened? @meAnkit18

prathimacode-hub avatar Feb 21 '25 16:02 prathimacode-hub