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.
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.
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:
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:
Screenshots
Video:
2025-02-09.14-02-31.mp4