Skip to content

Final C++ Project for Programming 1. A 2 player snake game written in C++ with the SFML Library in Visual Studio. Includes a Main Menu (Play, About, Exit).

License

Notifications You must be signed in to change notification settings

LandonTrev/TronTail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TronTail

TronTail is a 2D Snake game created by my group and I. It is a fast-paced, retro snake game where players control a growing snake that must navigate through a grid, collect food items, and avoid colliding with itself.

Getting Started

Follow these instructions to help you set up the script on you computer for testing or further development.

Prerequisites

  • Visual Studio (not visual studio code)
  • SFML library 2.6.x

How to install and use

  1. Start of by ensuring you have the library SFML installed. (https://www.sfml-dev.org/download/sfml/2.6.2/)
  2. Install Visual Studio if you havent already and create an empty C++ project
  3. To set up the SFML Environment follow this video (https://www.youtube.com/watch?v=4fcTqmT0Hhg&t=38s)
  4. Download the font here and install it (https://www.dafont.com/snake-game.font)
  5. Images for the Background and snake game should be in their respective folders already. If not download and them and make sure.
  6. Run the code. Use the arrow keys to select an option at the main menu and enter to select. Use the arrow keys to move the snake character as well

Testing

Everything works well despite a few bugs. I cant figure out with the backgrounds how to keep the resolution in good quality. I believe it has something to do with the small window the game starts in. I tried to implement a piece of code to make it fullscreen on start up but couldnt get it to work.

Built With

  • C++ 23
  • SFML (Simple And Fast Multimedia Library)

Contributing

Contributions are Welcome! If you find any issues or have suggestions for improvments, I'm all ears. Feel free to open an issue or submit a pull request.

Road Map

There are a few more things I'd like to implement into this code in the future.

-I want to implement a Game Over page after you run into yourself. It would print the number of apples you'd eaten before you ran into something and also have a retry button to start over.

-Better looking gui with more in the about section -Highscore feature

-campaign with different levels each with a different amount of obstacles in the grid

License

This project is licensed under the MIT License - see the the LICENSE file for details

Acknowledgements

About

Final C++ Project for Programming 1. A 2 player snake game written in C++ with the SFML Library in Visual Studio. Includes a Main Menu (Play, About, Exit).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published