Chapter 5. C++ and Compiling Your Own Game Code
When discussing coding versus scripting, you know that scripting gives you the possibility to implement a lot of functionality without changing code. As you already learned in the previous chapter, you can easily add new entities and implement the behaviour in Lua. You can manipulate AI, script your UI, or use the Flow Graph to create game logic. But you are always limited to the functionality that is exposed to Lua/Flow Graph. Also, Lua is always slower in performance than C++.
With C++ there are no limitations, but be aware, if you create a bug in your script you might not get the expected result—a bug in C++ can easily crash the whole game!
In this chapter, you will learn how to use Visual Studio Express Edition to compile and debug CryENGINE 3. Further, you will learn how to expose new functions to Lua by writing code with C++.
In this chapter, we shall:
Install Visual C++ Express Edition
Compile game code and run CryENGINE 3 with your compiled...