Add SDL_ttf

- change .gitignore
- change README.md
This commit is contained in:
Hanse-14 2023-12-15 11:53:14 +01:00
parent 6b4bcb09a8
commit 5b581dc031
2 changed files with 8 additions and 1 deletions

1
.gitignore vendored
View File

@ -30,6 +30,7 @@ compile_commands.json
*.a *.a
*.lib *.lib
SDL2 SDL2
SDL2_ttf
# Ignore any backup files # Ignore any backup files
*~ *~

View File

@ -5,7 +5,7 @@ Development of the game Snake++ using C, C++ and SDK2 for the Software Engineeri
## Linux ## Linux
**Install tools and SDL2** **Install tools and SDL2**
```bash ```bash
pacman -S sdl2 sdl2_rrf pacman -S sdl2 sdl2_ttf
pacman -S cmake gcc pacman -S cmake gcc
``` ```
**Build** **Build**
@ -22,6 +22,12 @@ make
- Unzip the file and rename the folder to `SDL2` (avoid unnecessary subfolder) - Unzip the file and rename the folder to `SDL2` (avoid unnecessary subfolder)
- Place it in the root folder of this repository. - Place it in the root folder of this repository.
**Download SDL_ttf**
- Download `SDL2-devel-2.28.5-VC.zip` from https://github.com/libsdl-org/SDL_ttf/releases/download/release-2.20.2/SDL2_ttf-devel-2.20.2-VC.zip
- Unzip the file and rename the folder to `SDL2_ttf` (avoid unnecessary subfolder)
- Place it in the root folder of this repository.
**Install compiler** (if not available already) **Install compiler** (if not available already)
- download mingw: - download mingw:
- visit https://altushost-swe.dl.sourceforge.net/project/mingw-w64/ - visit https://altushost-swe.dl.sourceforge.net/project/mingw-w64/