Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>your top 3 reasons are all 100% correct and are the main reasons for using scripting languages along with your game engine.</p> <p>Personally I've only really had experience with Lua through Luabind. It's a little tricky to setup but it was worth it. What you can do with scripting languages is expose the data structures and/or functionality that you want the 'user' in this case yourself, to be able to use. Generally speaking the only game mechanics etc that can be editted would be the ones you allowed them to.</p> <p><strong>What should I use scripting in my game for? And why?</strong> Asset loading, exposing features/types, ie, for our game engine (written in c++), we had a base level, and then many different types of level inherriting from it, such as wave level, death match, etc. The user simply states in the script what type of level they need, and then chucks in the assets here too. In my demo we had;</p> <p>Level="wavelevel"</p> <p>--Level Initial number of enemies</p> <p>EnemyNumbers="3"</p> <p>--Level Total number of waves</p> <p>WaveNumbers="4"</p> <p>--Wave coefficient</p> <p>WaveCoeff="1.1"</p> <p>--Size of terrain</p> <p>TerrainSize="256"</p> <p>--Terrain file</p> <p>TerrainFile="resource/Models/mountainous.raw"</p> <p>Don't worry too much about the numbers and all of that.</p> <p>As you can see that does some asset loading as well as determining the level type</p> <p>We also gave a lot of control for the AI to scripts, in fact, the data structures were almost completely exposed to Lua.</p> <p><strong>Do I need use scripting languages if I'm working alone or with programmers as opposed to Devs?</strong></p> <p>Yes no maybe? We all prefer 'real' coding of course. If you can make your game engine abstract enough to build completely different games just with Lua, then it means you've done a great job and have designed it very well.</p> <p>The other thing you have to think about, especially if you're game engine is quite huge, and lets face it, there isn't really going to be a small one, each time you compile, it can take minutes! It's the linker that's taking time here.</p> <p><strong>What scripting language 'should' I use if I were to be making platformers, RPGs, or what-have-you?</strong></p> <p>I've only ever used Lua, so that's the only advice I can give here.</p> <p>Hope this is helpful info for you.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload