![]() |
Rune Engine
Version 0.2.7-alpha
Documentation for how to make games using the Rune Engine.
|
Start off by declaring your header file and including your components. You'll also want to declare a constructor so that these components can be added onto the rune::GameObject.
After you have created your new rune::GameObject, go ahead and create a .cpp file (or just do this all in the header file) so that we can set up all these components we've just declared. For any of the components that have constructors you want to use, go ahead and declare these in the initialization line.
And that's all you need! Go ahead and add it to your rune::GameScene and hit play!
Starting to add new functionality to a rune::GameObject is one of the most important parts of making a game. This is accomplished in Rune through the addition of a rune::Component to your rune::GameObject. You can add a new component created by you the same as any other predefined component. This is how you would go about making your own component.