Swimmy Fish is a simple and entertaining game in which the player controls a fish swimming through an underwater environment. The goal is to avoid obstacles along the way. The game concept is similar to the popular Flappy Bird game.
How to Run the Game To run the game, ensure that Python and the necessary libraries are installed on your system. Then, execute the Python script swimmy_fish.py:
python swimmy_fish.py
The following library is required to run the game:
pygame To install the pygame library, use the following command:
pip install pygame
Click the left mouse button to make the fish swim upwards. The fish will automatically descend due to gravity. Guide the fish through the gaps between the obstacles to score points.
Players earn one point for each obstacle they successfully navigate through. The score is displayed in the top-right corner of the screen.
The game ends when the fish collides with an obstacle. To restart the game, simply click anywhere on the screen.
Feel free to adjust the content to fit your specific needs and add any additional information you deem necessary.