Skip to content

saipraveenb25/15-466-f17-base0

 
 

Repository files navigation

TennisForOne

Building

The following commands should work on their respective platforms. However the only way that is fully tested is to load the .vcxproj file into Visual Studio 2017 CE and run it from there. The cl.exe command should also work on Windows.

On Linux and OSX, the commands have been copied from Base0 readme, but have not been tested with the latest version of the TennisForOne code.

Linux

  g++ -g -Wall -Werror -o main main.cpp Draw.cpp `sdl2-config --cflags --libs` -lGL

or:

  make

OSX

  clang++ -g -Wall -Werror -o main main.cpp Draw.cpp `sdl2-config --cflags --libs`

or:

  make

Windows

Before building, clone kit-libs-win into the kit-libs-win subdirectory:

  git clone https://github.com/ixchow/kit-libs-win

Now you can:

  nmake -f Makefile.win

or:

  cl.exe /EHsc /W3 /WX /MD /Ikit-libs-win\out\include main.cpp Draw.cpp gl_shims.cpp /link /SUBSYSTEM:CONSOLE /LIBPATH:kit-libs-win\out\lib SDL2main.lib SDL2.lib OpenGL32.lib
  copy kit-libs-win\out\dist\SDL2.dll .

About

Starting code for first game assignment.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 91.9%
  • C++ 7.6%
  • Other 0.5%