CE Component
Component system
Example
// Object
ce_init_components();
transform_component = ce_add_component(id, transform_component);
mesh_component = ce_add_component(id, mesh_component);
// Renderer
var _renderable = ce_objects_with_component(true, transform_component,
mesh_component);
for (var i = ds_list_size(_renderable) - 1; i >= 0; --i)
{
with (_renderable[| i])
{
// ...
}
}
ds_list_destroy(_renderable);
Installation
Using Catalyst, the open-source package manager for GameMaker Studio 2:
catalyst require slagtand-org/ce-component
Related
This library is a part of project CE. For more information, please visit the project's repository: https://github.com/slagtand-org/ce