Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SDL2 mixer to requirements in README #60

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Tetris™ clone created in C++ and SDL, The project is also designed to be compi
- [Emscripten](https://emscripten.org) : to compile the program to WebAsm
- [SDL2.0 library](https://github.com/libsdl-org/SDL) :for rendering stuff on screen.
- [SDL TTF library](https://github.com/libsdl-org/SDL_ttf) : for rendering font from TrueType (.ttf) font files.
- [SDL Mixer library](https://github.com/libsdl-org/SDL_mixer) : for playing music and sounds.

## Build instructions
( This section or README.md is still under construction, you may help in improving this by opening a PR/issue regarding the same )
Expand Down Expand Up @@ -66,10 +67,10 @@ perform the following steps to build the project on your native machine :

- Just use your native C++ compiler to build and executable from all the source files (order in which they should be provided to the command should not matter in most cases )

- Make sure to link `SDL2` and `SDL2_ttf` libraries properly.
- Make sure to link `SDL2`, `SDL2_ttf` and `SDL2_mixer` libraries properly.

```shell
$ g++ -std=c++17 renderer.cpp game.cpp app.cpp main.cpp -O2 -lSDL2_ttf -lSDL2
$ g++ -std=c++17 renderer.cpp game.cpp app.cpp main.cpp -O2 -lSDL2_ttf -lSDL2_mixer -lSDL2
```

- run the built executable.
Expand Down