-
Notifications
You must be signed in to change notification settings - Fork 10
Basic components
Most of the "basic engine usage" Wiki is based on the SimpleGame code, so there will be examples referring to that code.
This page assumes that you have already read "basic engine usage (objects & calls)".
As said before, a Component it's a kind of object that's possessed by a GameObject.
First, you must create a Component calling a method of the ComponentsManager, then, you can add it to a GameObject calling add_component(...)
. Usually is better if is the GameObject that build and keep the Component pointer, so it can destroy it when no longer needed.
Remember that a Component must be deleted by the ComponentsManager calling the right method. For an example, see how SimpleGame delete the Crates.
- Audio
- Mesh
- Physics
This documentation describe only a small part of the engine, since it's not made to be used by a large amount of people.
If you would like to know more about a part of the engine, how to do something, or if a part of the documentation is not correct/out of date, please open an issue and tell me.
Thank you for reading the ScrapEngine Wiki!
Getting started
Engine structure
Using the Engine