kunjgit / GameZone

This open source repository contains collection of games build on basic tech stacks in web development . Use your creativity and build your own game and contribute to the repository by making PR 🎮
https://kunjgit.github.io/GameZone/
Apache License 2.0
565 stars 823 forks source link

[New game]: Flappy Bird Game #4607

Open codewithishu opened 3 months ago

codewithishu commented 3 months ago

🎮 Game Request

Game logic and basic description

Flappy Bird is a simple, yet highly addictive side-scrolling game. The player controls a bird, attempting to fly between columns of green pipes without hitting them. The game ends if the bird collides with a pipe or the ground. Points are scored based on the number of pipes the bird successfully passes.

Game Elements Bird: The main character controlled by the player. Pipes: Obstacles that the bird must navigate through. Ground: The surface at the bottom of the screen which, if collided with, ends the game. Background: A simple static or slowly scrolling background to create a sense of movement. Game Mechanics Gravity: Constantly pulls the bird downwards. Flap: When the player taps the screen (or presses a key), the bird flaps its wings, causing it to rise. Collision Detection: Determines if the bird has hit a pipe or the ground. Score: Increases when the bird successfully passes between pipes. Game Logic The game can be broken down into several key components and steps:

Initialization:

Set up the game window. Load images and sounds. Initialize variables for the bird’s position, velocity, and the positions of pipes. Game Loop:

Update the bird’s position based on gravity and user input. Move pipes towards the bird and check for collisions. Update the score when the bird passes through pipes. Redraw the game window with updated positions and check for game over conditions.

Point down the features

Game points

Scoring System Passing Pipes:

The primary way to earn points is by successfully passing through the gap between pairs of pipes. Each time the bird successfully navigates between a pair of pipes without colliding, the score increments by one point. Score Display:

The current score is typically displayed at the top of the screen during gameplay. After the game ends, the player's score is prominently displayed, often along with the best (high) score the player has achieved in previous sessions. Point Events:

Points are awarded only when the bird completely passes a pipe (i.e., the pipe moves past the bird's x-coordinate). This ensures that the player gets a point for navigating through the gap rather than simply approaching it.

Select program in which you are contributing

GSSoC24

Code of Conduct

kunjgit commented 3 months ago

Hey @codewithishu ! Thank you for raising an issue 💗 You can self assign the issue by commenting /assign in comment 😀 Make sure you follow CODE OF CONDUCT and CONTRIBUTING GUIDELINES 🚀 Don’t Forget to ⭐ our GameZone🎮 Make sure you join our Discord🕹️

codewithishu commented 3 months ago

/assign

codewithishu commented 3 months ago

/assign

kunjgit commented 3 months ago

Hey @codewithishu ! , This issue is already assigned to @codewithishu. 💗 You can work on other issues 🚀 If there is anything wrong you can contact us on Discord🕹️👀