Merge pull request #15 from TriantaTV/development

Development
This commit is contained in:
TriantaTV 2023-02-26 19:57:40 -06:00 committed by GitHub
commit 548392e025
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 29 additions and 2 deletions

View File

@ -2,7 +2,10 @@ INC := -I include
STD := -std=c++11
SFML := -lsfml-graphics -lsfml-window -lsfml-system
all: compile link
all: dirs compile link
dirs:
mkdir bin build
compile:
g++ $(INC) $(STD) -c -o build/main.o src/main.cpp
@ -11,4 +14,7 @@ compile:
g++ $(INC) $(STD) -c -o build/SnakeFood.o src/SnakeFood.cpp
link:
g++ build/*.o -o bin/SnakePlusPlus.out $(SFML)
g++ build/*.o -o bin/SnakePlusPlus $(SFML)
clean:
rm bin/*.o build/*.out

21
README.md Normal file
View File

@ -0,0 +1,21 @@
# SnakePlusPlus
A version of Snake made in C++ and using SFML
## Controls
-----------
- Use the arrow keys to move the Snake
- Use the escape key to close the game
## Compiling the game
------------------
Prerequisites
- C++11
- [SFML](https://github.com/SFML/SFML)
Clone the repository and compile it using:
git clone https://github.com/TriantaTV/snakeplusplus.git
make
The game is output into the `bin` folder, simply run the game and enjoy!