ButterFly Game – Java Swing Game

Project Overview
ButterFlyGame is a classic-style arcade game developed in Java using the Swing framework for the user interface. The player controls a butterfly and must navigate through moving pipe obstacles, gaining points for every successful pass through the gaps.

Core Features

  • Colorful and user-friendly Swing GUI
  • Space-bar controls for smooth butterfly flight
  • Obstacle collision detection and Game Over logic
  • Real-time score tracking and restart functionality
  • Compact structure with separate directories for audio, images, and source code

How to Play

  • Run Main.java to launch the game
  • Press space bar to keep the butterfly in the air
  • Avoid colliding with pipes
  • Each successful pass increases your score
  • Click "Restart" to try again after a Game Over

Fun Fact: Inspired by the gameplay style of Flappy Bird, this game gives a nostalgic arcade feel but with a custom-designed butterfly twist!