Skip to content

Conversation

@PresenceOP-Coder
Copy link
Contributor

Description

This pull request implements the barrier movement, collision detection, and scoring mechanics for the Flappy Bird game.
Changes include:

  • Smooth and continuous barrier movement from right to left (0.05 units per frame)
  • Automatic barrier repositioning when off-screen (x < -1.5 → x = 1.5)
  • Dual barrier setup with proper spacing (barrierx1, barrierx2)
  • Collision detection between the bird and barriers
  • Scoring system that increments when barriers pass the bird
  • Real-time state updates integrated with the main game loop

Semver Changes

  • Patch (bug fix, no new features)
  • Minor (new features, no breaking changes)
  • Major (breaking changes)

Issues

Closes #7

Checklist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Fix the barrier logic

1 participant