Skip to content
Snippets Groups Projects
Commit dd2698bb authored by Filip Strömbäck's avatar Filip Strömbäck
Browse files

Added example in the component system.

parent 95a847c8
Branches
Tags
No related merge requests found
Pipeline #82365 passed
......@@ -20,6 +20,10 @@ static shared_ptr<Entity> create_bullet(Entity &from) {
// Remove them when they are outside of the screen.
e->add(std::make_shared<Remove_Outside>(20.0f));
// Add a shield, just to show that it is possible.
// e->add(std::make_shared<Shield>(Tag::enemy));
// e->add(std::make_shared<Shield>(Tag::player));
return e;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment