Skip to content

How to execute SimpleGame

Michele edited this page Oct 7, 2019 · 3 revisions

Instructions to execute SimpleGame

You must have built the engine

Once you built the engine, you would like to try or edit SimpleGame. The problem is that SimpleGame can't be executed before doing a couple of things. Read all of them here.

Necessary steps

(It's better if you attemp to execute SimpleGame both in Debug and Release mode to create the folders we're gonna use)

  • Assimp

    1. Copy the file assimp-vc140-mt.dll from external\assimp\build\code\Debug to ScrapEngine\x64\Debug;
    2. Copy the file assimp-vc140-mt.dll from assimp\build\code\Release to ScrapEngine\x64\Release.
  • OpenAL-soft

    1. Copy the file OpenAL32.dll from external\openal-soft\build\Debug to ScrapEngine\x64\Debug;
    2. Copy the file OpenAL32.dll from external\openal-soft\build\Release to ScrapEngine\x64\Release.

Steps to run the game from Visual Studio

No further steps are necessary to run the game from Visual Studio, just set SimpleGame as start project and run the solution.

Steps to run the game by double-click on the .exe

To play the game from the .exe file, things are a bit different, because Visual Studio set the .exe workspace as the Solution folder. So we need to copy the assets folder to make the .exe see them.

Copy the assets folder from ScrapEngine\assets to ScrapEngine\x64.

Now you should able to run the game clicking on the .exe file.