Microsoft Windows

This guide explains the process involved in creating projects when using Tier 2 on the Microsoft Windows platform. AppGameKit Studio currently supports Microsoft Visual Studio 2015 and Microsoft Visual Studio 2017, which is available to download from here: https://visualstudio.microsoft.com

Libraries and include files

The template projects and any of your own custom projects are dependent on several library and include files. Their install locations are -

If necessary you can launch AGKStudio, then go to the Tools menu and select the option to Install Additional Files. This option allows you to install the C++ Tier 2 files to a location of your choice, instead of referencing them from the default location.

Templates

Several templates are included that provide a starting point for your applications. These can be found within - \The Game Creators\AGKStudio\Tier 2\apps. The key templates are -

All of these projects are set up with relative links to the AGK libraries and include files and are ready to compile. Making new projects outside this location or moving the existing projects to another location will result in you needing to update the library and include links within the project settings to ensure the app compiles.

Make a copy of the appropriate project and place it within the apps folder, then open the project within Visual Studio. Attempt to compile the project by going to the Build menu and selecting Build Solution. If all goes well, a message will appear in the Output window showing Build succeeded. Any failure at this point may be due to an issue with the platform toolset, that can be fixed by entering the project settings, going to the general section and selecting an available platform toolset.

The project will consist of three main files - core.cpp, template.cpp and template.h. Core.cpp is the starting point for your application as a whole, which in most cases can be ignored and is only relevant for more advanced users. Template.h contains a class declaration for your app and template.cpp contains the definition, with three functions already defined - Begin, Loop and End. Begin is the entry point for your application and is used for initial setup. Loop will be called every cycle and should be the location of your logic etc. Finally End is called when the app closes down and can be used to free up resources etc.