Skip to content

Compiling on Windows

Addy edited this page Apr 12, 2022 · 4 revisions

I have been using Visual Studio 2017 as my toolchain, even tough I've actually been using Visual 2019 as my editor/IDE. I've yet to figure out how to get conan to play nicely with Visual Studio 2019, but since VS2019 can load and use VS2017 solution files without a problem, this method works fine.

The OpenAL Libraries need to be installed for sound files to load on Windows.

Instructions

  • Download the source code
git clone https://github.com/lulzapps/ttvg.git
  • Create and cd into a build directory:
mkdir build 
cd build
  • Initialize CMake:
cmake .. "-GVisual Studio 16 2019 Win64" -DCMAKE_BUILD_TYPE=Debug

If all goes well you should have a ttvg.sln in the build folder. This is a Visual Studio solution file that can be loaded and you're ready to start coding.

How to Play

Once the game has been built and you try to run it, then you might notice that it crashes. This is because you must tell the game where to find all of the assets (i.e. images, sound files, etc) Eventually installers will install the resource files to appropriate locations where the executable will be able to find them automatically. For now you must manually tell the game where the resources are with the --resources or -r command line parameter. For example:

tooter -r c:\source\ttvg\resources

The path specificied should be the resources path in this repo on your local system.

Clone this wiki locally