Pong game in three dimensions write in C using SDL2 and OpenGL 3, recreation of the pong 3d game by Liquid Media (www.liquid.se/pong).
This software depends on:
- SDL2 lib
- Freetype2 lib
- Glew
- OpenGL libraries (3.2)
- Install CMake and dependencies SDL2, Freetype2 and Glew using system package manager.
By example, for Debian based systems:
# apt-get install cmake libsdl2-dev libglew-dev libfreetype6-dev
- Clone repository and prepare files to compile
mkdir build
cd build
cmake ..
- Compile
cmake --build .
- Run with
./pong3D
in build directory.
-
Open mingw64 terminal, not msys terminal. Mingw64 terminal is on msys2 directory with name mingw64.exe or name MSYS2 MinGW 64-bit
-
Install git on MSYS and clone respository:
pacman -S git
- Install make, cmake, mingw64-gcc and dependencies for this program, using pacman package manager.
pacman -S mingw-w64-x86_64-make mingw-w64-x86_64-cmake mingw-w64-x86_64-gcc mingw-w64-x86_64-SDL2 mingw-w64-x86_64-glew mingw-w64-x86_64-freetype
- Build with this steps:
cd pong3d
mkdir build
cd build
cmake ..
cmake --build .
- Run with
./pong3D.exe
- Download and install Visual Studio 2017 Community Make Sure that NuGet is selected when install.
- Open ${projectDir}\build\windows\vs2017\Pong3D.sln
- Select solution, open context menu, retarget SDK Version if neccesary and select Recompile.
- Execute.
Pong3d is licensed under the MIT license. (http://opensource.org/licenses/MIT)