/SFML-FrogNFLy

Final Group Assignment for Information Engineering - II

Primary LanguageC++

๐ŸŽฎ FlyNFrog Game

This is a simple Fly and Frog game implemented in SFML. The objective of the game is to guide the fly and feed through a moving frog without hitting the water. The game keeps track of the score and the number of lives remaining.

๐Ÿ–ฅ Prerequisites

  • SFML library
  • C++ compiler

๐Ÿ’ป How to Play

  1. Run the executable file.
  2. Use the spacebar to release the ball.
  3. The frog moves faster as score increases.
  4. Guide the fly to feed the frog without touching the water.
  5. Each successful feeding to the frog increases your score.
  6. Be careful! If the fly hits the water, you lose one life.
  7. The game ends when you run out of lives.

๐Ÿ•น Controls

  • Spacebar: Release the ball

๐Ÿ“ฑ Features

  • Randomly generated fly positions at the start of the game
  • Automatic movement of the frog
  • Score tracking and display
  • Lives tracking and display
  • Game over screen with the final score
  • Restart functionality to play again

๐ŸŽžThe video of game :

Alt Text

Author : Tadiwos Andargie and Azeez Akinlade