aboutsummaryrefslogtreecommitdiff
path: root/mwe/ecs-homemade/src
diff options
context:
space:
mode:
authorMax-001 <80035972+Max-001@users.noreply.github.com>2024-10-02 16:03:19 +0200
committerMax-001 <80035972+Max-001@users.noreply.github.com>2024-10-02 16:03:19 +0200
commit7fc607bc74e0be80b1668032348459399c311898 (patch)
tree369d894edbaee0e9c5398218d8edc8c37b4d63f2 /mwe/ecs-homemade/src
parent9ef08417da5d3aada6306b70a056355071b8c3ca (diff)
Added Colider component
Diffstat (limited to 'mwe/ecs-homemade/src')
-rw-r--r--mwe/ecs-homemade/src/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/mwe/ecs-homemade/src/main.cpp b/mwe/ecs-homemade/src/main.cpp
index 6ab0adc..9e230e5 100644
--- a/mwe/ecs-homemade/src/main.cpp
+++ b/mwe/ecs-homemade/src/main.cpp
@@ -33,7 +33,8 @@ int main() {
//Add non components to entity3, entity4, entity5 and entity6
- gameObect7.AddComponent<Sprite>(); //Add only a sprite to entity 7
+ gameObect7.AddComponent<Sprite>(); //Add a sprite to entity 7
+ gameObect7.AddComponent<Colider>(30); //Add a colder to entity 7
//The entities are now initialized
//Now I will demonstrate some ways of retreiving/getting components