/Tetris-game-project

This repository hosts the source code and assets for my latest endeavor - the development of a classic Tetris game!🌟 The game is designed with nostalgic music and feel. Give it a try and relive the nostalgia! 🎮🧩👍

Primary LanguageC++MIT LicenseMIT

Tetris-game-project

This Tetris game project is created solely for educational purposes. It is intended to serve as a learning resource for understanding game development concepts and practicing programming skills.

tetris ISO_C++_Logo Raylib_logo

Tetris Game Features

Gameplay

  • Classic Tetris gameplay with falling blocks that the player must rotate and position to create complete rows.
  • Dynamic and engaging background that changes as the game progresses, providing visual interest and immersion.
  • Interactive buttons and icons for controlling gameplay, including options for starting, pausing, and restarting the game.
  • Sound effects for rotation, block fixing, movement, and other actions, enhancing the gaming experience and providing auditory feedback to the player.

Music and Audio

  • Background music that sets the mood and enhances the gameplay experience.
  • Sound effects for various in-game actions, including block rotation, movement, and line completion.

User Interface

  • Resizable screen that adapts to different screen sizes, providing flexibility and ensuring optimal viewing and gameplay experience on various devices.

Highscore System

  • Highscore feature to track and display the highest scores achieved by players.
  • Highscores are stored externally in a .txt file, allowing players to persist their achievements across sessions.

External Dependencies

  • Developed using C++ and Raylib, a simple and easy-to-use game development library.
  • Utilizes external resources for background images, button icons, music, and sound effects to enrich the gameplay experience.

Future Enhancements

  • Planned future updates may include optimization of the code.

This Tetris game project combines classic gameplay with modern features, creating an immersive and enjoyable gaming experience for players of all ages. Feel free to explore the source code and contribute to further enhancements!


Front Control Back


How to use this template

  1. Double click on the main.code-workspace file. This will open the template in VS Code.
  2. From the Explorer Window of VS Code navigate to the src folder to view the code.
  3. Press F5 on the keyboard to compile and run the program.

How to directly play the Game

First compile and run the program or you can directly navigate to Tetris Game -> Tetris.exe

Disclaimer

This project is provided under the following terms:

  • Educational Use Only: The Tetris game and accompanying source code are created for personal educational purposes and are not intended for commercial distribution or use.
  • Resource Credits: Some resources used in this project, such as code snippets or assets, may have been sourced from external websites. Every effort has been made to ensure proper attribution and compliance with the terms of use for these resources.
  • Fair Use: Portions of this project may be derived from publicly available resources or tutorials. Where applicable, fair use principles have been adhered to, and efforts have been made to transform and adapt the material to suit the educational context of this project.

Resources (Attributions)

Icon (Tetris) - Tetris icons created by Freepik - Flaticon

License

This project is released under the MIT License. You are free to modify and distribute the code for educational purposes, subject to the terms outlined in the license file.